@mnaoumov/obsidian-lib 10.11.0 → 11.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -0
- package/components/all-windows-status-bar-item-component/package.json +6 -0
- package/components/shared-component-pool-component/package.json +6 -0
- package/components/worker-component/package.json +6 -0
- package/components/worker-pool-component/package.json +6 -0
- package/components/workspace-layout-state-component/package.json +6 -0
- package/dist/lib/cjs/__merged.cjs +477 -285
- package/dist/lib/cjs/__merged.d.cts +26 -10
- package/dist/lib/cjs/anchored-suggest.cjs +1 -1
- package/dist/lib/cjs/app.cjs +2 -2
- package/dist/lib/cjs/async-with-notice.cjs +4 -4
- package/dist/lib/cjs/attachment-path.cjs +9 -9
- package/dist/lib/cjs/attachment-path.d.cts +3 -3
- package/dist/lib/cjs/attachment-unit-folder.cjs +2 -2
- package/dist/lib/cjs/backlink-index.cjs +5 -5
- package/dist/lib/cjs/backlink.cjs +7 -7
- package/dist/lib/cjs/bases-view-registrar.cjs +1 -1
- package/dist/lib/cjs/broken-link-candidates.cjs +1 -1
- package/dist/lib/cjs/bug-report-diagnostics.cjs +222 -0
- package/dist/lib/cjs/bug-report-diagnostics.d.cts +186 -0
- package/dist/lib/cjs/bug-report.cjs +38 -12
- package/dist/lib/cjs/bug-report.d.cts +65 -0
- package/dist/lib/cjs/bulk-operation-progress.cjs +1 -1
- package/dist/lib/cjs/bulk-operation.cjs +2 -2
- package/dist/lib/cjs/callout.cjs +6 -6
- package/dist/lib/cjs/canvas.cjs +11 -9
- package/dist/lib/cjs/canvas.d.cts +13 -0
- package/dist/lib/cjs/case-insensitive-file-index.cjs +3 -3
- package/dist/lib/cjs/code-block-render-handoff.cjs +5 -5
- package/dist/lib/cjs/codemirror/editor-mode-extension.cjs +4 -4
- package/dist/lib/cjs/codemirror/incremental-parse-state-field.cjs +2 -2
- package/dist/lib/cjs/codemirror/index.cjs +7 -7
- package/dist/lib/cjs/codemirror/inline-token-widgets.cjs +5 -5
- package/dist/lib/cjs/codemirror/markdown-editor-views.cjs +2 -2
- package/dist/lib/cjs/codemirror/settings-facet.cjs +1 -1
- package/dist/lib/cjs/command-handlers/abstract-file-command-handler.cjs +17 -17
- package/dist/lib/cjs/command-handlers/abstract-file-command-handler.d.cts +13 -13
- package/dist/lib/cjs/command-handlers/command-handler-component.cjs +2 -2
- package/dist/lib/cjs/command-handlers/command-handler.cjs +2 -2
- package/dist/lib/cjs/command-handlers/editor-command-handler.cjs +10 -10
- package/dist/lib/cjs/command-handlers/editor-command-handler.d.cts +7 -7
- package/dist/lib/cjs/command-handlers/file-command-handler.cjs +3 -3
- package/dist/lib/cjs/command-handlers/folder-command-handler.cjs +3 -3
- package/dist/lib/cjs/command-handlers/global-command-handler.cjs +2 -2
- package/dist/lib/cjs/command-handlers/index.cjs +15 -15
- package/dist/lib/cjs/command-handlers/open-bug-report-command-handler.cjs +95 -4
- package/dist/lib/cjs/command-handlers/open-bug-report-command-handler.d.cts +34 -2
- package/dist/lib/cjs/command-handlers/open-demo-vault-command-handler.cjs +2 -2
- package/dist/lib/cjs/command-handlers/open-discussion-command-handler.cjs +2 -2
- package/dist/lib/cjs/command-handlers/open-feature-request-command-handler.cjs +2 -2
- package/dist/lib/cjs/command-handlers/open-git-hub-command-handler.cjs +1 -1
- package/dist/lib/cjs/command-handlers/open-settings-command-handler.cjs +2 -2
- package/dist/lib/cjs/command-handlers/undo-bulk-operation-command-handler.cjs +2 -2
- package/dist/lib/cjs/command-handlers/unlock-active-note-command-handler.cjs +1 -1
- package/dist/lib/cjs/community-plugins.cjs +3 -3
- package/dist/lib/cjs/components/abort-signal-component.cjs +2 -2
- package/dist/lib/cjs/components/all-windows-event-component.cjs +5 -5
- package/dist/lib/cjs/components/all-windows-status-bar-item-component.cjs +245 -0
- package/dist/lib/cjs/components/all-windows-status-bar-item-component.d.cts +146 -0
- package/dist/lib/cjs/components/async-error-handler-component.cjs +5 -5
- package/dist/lib/cjs/components/async-events-component.cjs +1 -1
- package/dist/lib/cjs/components/bulk-operation-commit-component.cjs +12 -12
- package/dist/lib/cjs/components/case-insensitive-file-index-component.cjs +2 -2
- package/dist/lib/cjs/components/component-ex.cjs +21 -11
- package/dist/lib/cjs/components/component-ex.d.cts +11 -0
- package/dist/lib/cjs/components/console-debug-component.cjs +2 -2
- package/dist/lib/cjs/components/core-plugin-toggle-component.cjs +2 -2
- package/dist/lib/cjs/components/disposable-component.cjs +2 -2
- package/dist/lib/cjs/components/embed-extensions-component.cjs +21 -4
- package/dist/lib/cjs/components/embed-extensions-component.d.cts +8 -0
- package/dist/lib/cjs/components/embeddable-markdown-editor-component.cjs +24 -10
- package/dist/lib/cjs/components/embeddable-markdown-editor-component.d.cts +9 -0
- package/dist/lib/cjs/components/file-explorer-root-menu-component.cjs +7 -7
- package/dist/lib/cjs/components/generate-markdown-link-default-params-component.cjs +2 -2
- package/dist/lib/cjs/components/incremental-file-index-component.cjs +4 -4
- package/dist/lib/cjs/components/index.cjs +54 -39
- package/dist/lib/cjs/components/index.d.cts +5 -0
- package/dist/lib/cjs/components/layout-ready-component.cjs +3 -3
- package/dist/lib/cjs/components/menu-event-registrar-component.cjs +2 -2
- package/dist/lib/cjs/components/monkey-around-component.cjs +3 -3
- package/dist/lib/cjs/components/notebook-navigator-menu-event-registrar-component.cjs +5 -5
- package/dist/lib/cjs/components/plugin-context-component.cjs +5 -5
- package/dist/lib/cjs/components/plugin-gate-component.cjs +69 -36
- package/dist/lib/cjs/components/plugin-gate-component.d.cts +36 -13
- package/dist/lib/cjs/components/plugin-notice-component.cjs +39 -33
- package/dist/lib/cjs/components/plugin-notice-component.d.cts +4 -3
- package/dist/lib/cjs/components/plugin-settings-component.cjs +119 -18
- package/dist/lib/cjs/components/plugin-settings-component.d.cts +35 -5
- package/dist/lib/cjs/components/plugin-settings-tab-component.cjs +2 -2
- package/dist/lib/cjs/components/plugin-suggestion-component.cjs +8 -8
- package/dist/lib/cjs/components/pointer-position-component.cjs +2 -2
- package/dist/lib/cjs/components/reconfigurable-editor-extension-component.cjs +3 -3
- package/dist/lib/cjs/components/registry-component.cjs +2 -2
- package/dist/lib/cjs/components/release-notes-component.cjs +6 -6
- package/dist/lib/cjs/components/rename-delete-handler-component.cjs +25 -25
- package/dist/lib/cjs/components/rmdir-guard-component.cjs +2 -2
- package/dist/lib/cjs/components/settings-facet-component.cjs +1 -1
- package/dist/lib/cjs/components/settings-migration-component.cjs +5 -5
- package/dist/lib/cjs/components/shared-component-pool-component.cjs +368 -0
- package/dist/lib/cjs/components/shared-component-pool-component.d.cts +129 -0
- package/dist/lib/cjs/components/style-sheet-component.cjs +3 -3
- package/dist/lib/cjs/components/syntax-highlighting-component.cjs +3 -3
- package/dist/lib/cjs/components/templates-language-component.cjs +1 -1
- package/dist/lib/cjs/components/worker-component.cjs +363 -0
- package/dist/lib/cjs/components/worker-component.d.cts +156 -0
- package/dist/lib/cjs/components/worker-pool-component.cjs +185 -0
- package/dist/lib/cjs/components/worker-pool-component.d.cts +102 -0
- package/dist/lib/cjs/components/workspace-layout-state-component.cjs +495 -0
- package/dist/lib/cjs/components/workspace-layout-state-component.d.cts +239 -0
- package/dist/lib/cjs/constructors/get-dom-events-handlers-constructor.cjs +5 -5
- package/dist/lib/cjs/constructors/index.cjs +1 -1
- package/dist/lib/cjs/css-class.cjs +5 -1
- package/dist/lib/cjs/css-class.d.cts +16 -0
- package/dist/lib/cjs/data-handler.cjs +264 -6
- package/dist/lib/cjs/data-handler.d.cts +219 -2
- package/dist/lib/cjs/data-stores/data-store-locations.cjs +82 -24
- package/dist/lib/cjs/data-stores/data-store-locations.d.cts +15 -0
- package/dist/lib/cjs/data-stores/data-store-replica.cjs +33 -5
- package/dist/lib/cjs/data-stores/data-store-seeds.cjs +6 -6
- package/dist/lib/cjs/data-stores/data-store-seeds.d.cts +2 -2
- package/dist/lib/cjs/data-stores/data-store-transport.cjs +81 -8
- package/dist/lib/cjs/data-stores/data-store-transport.d.cts +30 -1
- package/dist/lib/cjs/data-stores/index.cjs +6 -6
- package/dist/lib/cjs/data-stores/local-data-store.cjs +74 -10
- package/dist/lib/cjs/data-stores/local-data-store.d.cts +58 -1
- package/dist/lib/cjs/data-stores/shared-data-store.cjs +76 -19
- package/dist/lib/cjs/data-stores/shared-data-store.d.cts +18 -1
- package/dist/lib/cjs/dataview-link.cjs +2 -2
- package/dist/lib/cjs/dataview.cjs +27 -7
- package/dist/lib/cjs/dataview.d.cts +14 -0
- package/dist/lib/cjs/debug.cjs +3 -3
- package/dist/lib/cjs/demo-vault-helper.cjs +34 -6
- package/dist/lib/cjs/demo-vault-helper.d.cts +6 -2
- package/dist/lib/cjs/desktop-bulk-operation-git.cjs +10 -10
- package/dist/lib/cjs/desktop-demo-vault-opener.cjs +13 -13
- package/dist/lib/cjs/desktop-git-runner.cjs +4 -14
- package/dist/lib/cjs/desktop-git-runner.d.cts +8 -2
- package/dist/lib/cjs/desktop-operating-system.cjs +1 -1
- package/dist/lib/cjs/desktop-request-url-stream.cjs +8 -14
- package/dist/lib/cjs/desktop-trusted-input.cjs +2 -2
- package/dist/lib/cjs/disposable.cjs +150 -0
- package/dist/lib/cjs/disposable.d.cts +39 -0
- package/dist/lib/cjs/editor-extension-registrar.cjs +1 -1
- package/dist/lib/cjs/editor-suggest-registrar.cjs +2 -2
- package/dist/lib/cjs/editor-suggest.cjs +1 -1
- package/dist/lib/cjs/editor.cjs +6 -6
- package/dist/lib/cjs/events.cjs +2 -2
- package/dist/lib/cjs/extensions-registrar.cjs +1 -1
- package/dist/lib/cjs/feature-request.cjs +1 -1
- package/dist/lib/cjs/file-change.cjs +10 -10
- package/dist/lib/cjs/file-explorer.cjs +2 -2
- package/dist/lib/cjs/file-manager.cjs +5 -5
- package/dist/lib/cjs/file-system.cjs +10 -10
- package/dist/lib/cjs/folder-note.cjs +4 -4
- package/dist/lib/cjs/frontmatter-formatting.cjs +7 -6
- package/dist/lib/cjs/frontmatter-link-cache-with-offsets.cjs +1 -1
- package/dist/lib/cjs/frontmatter.cjs +5 -5
- package/dist/lib/cjs/generated-during-build.cjs +2 -2
- package/dist/lib/cjs/git-rename-history.cjs +1 -1
- package/dist/lib/cjs/git-rename-history.d.cts +2 -2
- package/dist/lib/cjs/hotkey.cjs +1 -1
- package/dist/lib/cjs/hover-link-source-registrar.cjs +1 -1
- package/dist/lib/cjs/html-element.cjs +2 -2
- package/dist/lib/cjs/i18n/custom-type-options.cjs +1 -1
- package/dist/lib/cjs/i18n/default-translations.cjs +1 -1
- package/dist/lib/cjs/i18n/i18n.cjs +7 -7
- package/dist/lib/cjs/i18n/index.cjs +4 -4
- package/dist/lib/cjs/i18n/locales/en.cjs +27 -1
- package/dist/lib/cjs/i18n/locales/en.d.cts +26 -0
- package/dist/lib/cjs/i18n/locales/index.cjs +2 -2
- package/dist/lib/cjs/i18n/locales/translations-map.cjs +1 -1
- package/dist/lib/cjs/i18n/locales/translations-map.d.cts +26 -0
- package/dist/lib/cjs/index.cjs +147 -126
- package/dist/lib/cjs/index.d.cts +7 -0
- package/dist/lib/cjs/inline-token-renderer.cjs +2 -2
- package/dist/lib/cjs/is-in-obsidian.cjs +1 -1
- package/dist/lib/cjs/library-styles.cjs +3 -3
- package/dist/lib/cjs/link-and-tag-input-suggest.cjs +2 -2
- package/dist/lib/cjs/link.cjs +76 -56
- package/dist/lib/cjs/link.d.cts +20 -14
- package/dist/lib/cjs/logger.cjs +4 -4
- package/dist/lib/cjs/loop.cjs +10 -16
- package/dist/lib/cjs/markdown-code-block-processor-registrar.cjs +17 -2
- package/dist/lib/cjs/markdown-code-block-processor-registrar.d.cts +7 -0
- package/dist/lib/cjs/markdown-code-block-processor.cjs +13 -13
- package/dist/lib/cjs/markdown-post-processor-registrar.cjs +2 -2
- package/dist/lib/cjs/markdown-view.cjs +191 -3
- package/dist/lib/cjs/markdown-view.d.cts +48 -1
- package/dist/lib/cjs/markdown.cjs +12 -12
- package/dist/lib/cjs/metadata-cache.cjs +23 -23
- package/dist/lib/cjs/metadata-cache.d.cts +5 -4
- package/dist/lib/cjs/misplaced-attachment.cjs +297 -0
- package/dist/lib/cjs/misplaced-attachment.d.cts +228 -0
- package/dist/lib/cjs/mobile-app-info.cjs +1 -1
- package/dist/lib/cjs/modals/alert.cjs +4 -4
- package/dist/lib/cjs/modals/code-block-builder.cjs +7 -7
- package/dist/lib/cjs/modals/confirm.cjs +4 -4
- package/dist/lib/cjs/modals/copy-text-manually.cjs +181 -0
- package/dist/lib/cjs/modals/copy-text-manually.d.cts +38 -0
- package/dist/lib/cjs/modals/index.cjs +17 -11
- package/dist/lib/cjs/modals/index.d.cts +2 -0
- package/dist/lib/cjs/modals/minimizable-modal.cjs +6 -6
- package/dist/lib/cjs/modals/modal-command-builder.cjs +3 -3
- package/dist/lib/cjs/modals/modal.cjs +3 -3
- package/dist/lib/cjs/modals/prompt.cjs +10 -10
- package/dist/lib/cjs/modals/prompt.d.cts +1 -1
- package/dist/lib/cjs/modals/review-bug-report-diagnostics.cjs +202 -0
- package/dist/lib/cjs/modals/review-bug-report-diagnostics.d.cts +30 -0
- package/dist/lib/cjs/modals/select-item.cjs +6 -6
- package/dist/lib/cjs/modals/select-option.cjs +3 -3
- package/dist/lib/cjs/modals/suggest-modal-command-builder.cjs +1 -1
- package/dist/lib/cjs/note-priority.cjs +2 -2
- package/dist/lib/cjs/notebook-navigator.cjs +12 -2
- package/dist/lib/cjs/notebook-navigator.d.cts +6 -0
- package/dist/lib/cjs/obsidian-lib-state.cjs +1 -1
- package/dist/lib/cjs/obsidian-protocol-handler-registrar.cjs +1 -1
- package/dist/lib/cjs/obsidian-settings.cjs +1 -1
- package/dist/lib/cjs/obsidian-word-characters.cjs +1 -1
- package/dist/lib/cjs/parse-link.cjs +14 -14
- package/dist/lib/cjs/path-compatibility.cjs +368 -0
- package/dist/lib/cjs/path-compatibility.d.cts +263 -0
- package/dist/lib/cjs/path-settings.cjs +3 -3
- package/dist/lib/cjs/pdf.cjs +2 -2
- package/dist/lib/cjs/plugin/index.cjs +18 -12
- package/dist/lib/cjs/plugin/index.d.cts +2 -0
- package/dist/lib/cjs/plugin/plugin-api.cjs +21 -12
- package/dist/lib/cjs/plugin/plugin-api.d.cts +5 -1
- package/dist/lib/cjs/plugin/plugin-async-cleanup.cjs +6 -3
- package/dist/lib/cjs/plugin/plugin-async-cleanup.d.cts +5 -0
- package/dist/lib/cjs/plugin/plugin-context.cjs +10 -9
- package/dist/lib/cjs/plugin/plugin-event-source.cjs +1 -1
- package/dist/lib/cjs/plugin/plugin-event-source.d.cts +4 -4
- package/dist/lib/cjs/plugin/plugin-install-state.cjs +49 -4
- package/dist/lib/cjs/plugin/plugin-install-state.d.cts +30 -0
- package/dist/lib/cjs/plugin/plugin-instance.cjs +450 -0
- package/dist/lib/cjs/plugin/plugin-instance.d.cts +258 -0
- package/dist/lib/cjs/plugin/plugin-lifecycle-events.cjs +1 -1
- package/dist/lib/cjs/plugin/plugin-lifecycle-events.d.cts +6 -4
- package/dist/lib/cjs/plugin/plugin-settings-tab.cjs +15 -15
- package/dist/lib/cjs/plugin/plugin.cjs +133 -34
- package/dist/lib/cjs/plugin/plugin.d.cts +35 -5
- package/dist/lib/cjs/plugin/settings-migration-api.cjs +1 -1
- package/dist/lib/cjs/plugin/third-party-plugin.cjs +231 -0
- package/dist/lib/cjs/plugin/third-party-plugin.d.cts +244 -0
- package/dist/lib/cjs/plugin-cli-handler-registrar.cjs +2 -2
- package/dist/lib/cjs/popovers/field-popover.cjs +4 -4
- package/dist/lib/cjs/popovers/index.cjs +3 -3
- package/dist/lib/cjs/popovers/popover-anchor.cjs +1 -1
- package/dist/lib/cjs/popovers/popover.cjs +5 -5
- package/dist/lib/cjs/queue.cjs +8 -8
- package/dist/lib/cjs/react/app-context.cjs +3 -3
- package/dist/lib/cjs/react/index.cjs +1 -1
- package/dist/lib/cjs/reference-definition.cjs +1 -1
- package/dist/lib/cjs/reference.cjs +3 -3
- package/dist/lib/cjs/release-asset.cjs +5 -5
- package/dist/lib/cjs/rendered-markdown.cjs +4 -4
- package/dist/lib/cjs/request-url.cjs +4 -4
- package/dist/lib/cjs/resource-lock.cjs +46 -42
- package/dist/lib/cjs/resource-lock.d.cts +8 -7
- package/dist/lib/cjs/resource-url.cjs +3 -3
- package/dist/lib/cjs/ribbon-icon-registrar.cjs +1 -1
- package/dist/lib/cjs/setting-components/checkbox-component.cjs +3 -3
- package/dist/lib/cjs/setting-components/code-highlighter-component.cjs +7 -7
- package/dist/lib/cjs/setting-components/date-component.cjs +4 -4
- package/dist/lib/cjs/setting-components/date-time-component.cjs +4 -4
- package/dist/lib/cjs/setting-components/email-component.cjs +2 -2
- package/dist/lib/cjs/setting-components/file-component.cjs +2 -2
- package/dist/lib/cjs/setting-components/folder-list-component.cjs +3 -3
- package/dist/lib/cjs/setting-components/hotkey-component.cjs +5 -5
- package/dist/lib/cjs/setting-components/index.cjs +30 -30
- package/dist/lib/cjs/setting-components/list-component.cjs +5 -5
- package/dist/lib/cjs/setting-components/month-component.cjs +4 -4
- package/dist/lib/cjs/setting-components/multiple-dropdown-component.cjs +3 -3
- package/dist/lib/cjs/setting-components/multiple-email-component.cjs +2 -2
- package/dist/lib/cjs/setting-components/multiple-file-component.cjs +3 -3
- package/dist/lib/cjs/setting-components/multiple-text-component.cjs +9 -6
- package/dist/lib/cjs/setting-components/multiple-text-component.d.cts +4 -1
- package/dist/lib/cjs/setting-components/number-component.cjs +2 -2
- package/dist/lib/cjs/setting-components/password-component.cjs +2 -2
- package/dist/lib/cjs/setting-components/setting-component-wrapper.cjs +3 -3
- package/dist/lib/cjs/setting-components/tag-list-component.cjs +4 -4
- package/dist/lib/cjs/setting-components/telephone-component.cjs +2 -2
- package/dist/lib/cjs/setting-components/text-based-component.cjs +1 -1
- package/dist/lib/cjs/setting-components/time-component.cjs +3 -3
- package/dist/lib/cjs/setting-components/tri-state-checkbox-component.cjs +3 -3
- package/dist/lib/cjs/setting-components/typed-dropdown-component.cjs +3 -3
- package/dist/lib/cjs/setting-components/typed-multiple-dropdown-component.cjs +4 -4
- package/dist/lib/cjs/setting-components/typed-range-text-component.cjs +1 -1
- package/dist/lib/cjs/setting-components/typed-text-component.cjs +3 -3
- package/dist/lib/cjs/setting-components/url-component.cjs +2 -2
- package/dist/lib/cjs/setting-components/validator-component.cjs +4 -4
- package/dist/lib/cjs/setting-components/week-component.cjs +4 -4
- package/dist/lib/cjs/setting-ex.cjs +26 -26
- package/dist/lib/cjs/setting-group-ex.cjs +2 -2
- package/dist/lib/cjs/settings-recovery.cjs +217 -0
- package/dist/lib/cjs/settings-recovery.d.cts +178 -0
- package/dist/lib/cjs/settings-tabs.cjs +5 -5
- package/dist/lib/cjs/status-bar-item-registrar.cjs +1 -1
- package/dist/lib/cjs/templater.cjs +14 -4
- package/dist/lib/cjs/templater.d.cts +6 -0
- package/dist/lib/cjs/transformers/duration-transformer.cjs +2 -2
- package/dist/lib/cjs/transformers/index.cjs +1 -1
- package/dist/lib/cjs/trusted-input.cjs +1 -1
- package/dist/lib/cjs/validation.cjs +4 -4
- package/dist/lib/cjs/vault-delete.cjs +6 -6
- package/dist/lib/cjs/vault-transaction.cjs +5 -5
- package/dist/lib/cjs/vault.cjs +12 -12
- package/dist/lib/cjs/view-registrar.cjs +1 -1
- package/dist/lib/cjs/virtual-file.cjs +16 -14
- package/dist/lib/cjs/virtual-file.d.cts +2 -1
- package/dist/lib/cjs/wasm.cjs +119 -0
- package/dist/lib/cjs/wasm.d.cts +54 -0
- package/dist/lib/cjs/worker-protocol.cjs +209 -0
- package/dist/lib/cjs/worker-protocol.d.cts +282 -0
- package/dist/lib/cjs/workspace.cjs +1 -1
- package/dist/lib/esm/__merged.d.mts +26 -10
- package/dist/lib/esm/__merged.mjs +215 -5
- package/dist/lib/esm/app.mjs +2 -2
- package/dist/lib/esm/attachment-path.d.mts +3 -3
- package/dist/lib/esm/attachment-path.mjs +2 -2
- package/dist/lib/esm/backlink-index.mjs +2 -2
- package/dist/lib/esm/bug-report-diagnostics.d.mts +186 -0
- package/dist/lib/esm/bug-report-diagnostics.mjs +127 -0
- package/dist/lib/esm/bug-report.d.mts +65 -0
- package/dist/lib/esm/bug-report.mjs +33 -10
- package/dist/lib/esm/canvas.d.mts +13 -0
- package/dist/lib/esm/canvas.mjs +6 -5
- package/dist/lib/esm/command-handlers/abstract-file-command-handler.d.mts +13 -13
- package/dist/lib/esm/command-handlers/abstract-file-command-handler.mjs +14 -14
- package/dist/lib/esm/command-handlers/editor-command-handler.d.mts +7 -7
- package/dist/lib/esm/command-handlers/editor-command-handler.mjs +8 -8
- package/dist/lib/esm/command-handlers/open-bug-report-command-handler.d.mts +34 -2
- package/dist/lib/esm/command-handlers/open-bug-report-command-handler.mjs +99 -3
- package/dist/lib/esm/components/all-windows-status-bar-item-component.d.mts +146 -0
- package/dist/lib/esm/components/all-windows-status-bar-item-component.mjs +154 -0
- package/dist/lib/esm/components/component-ex.d.mts +11 -0
- package/dist/lib/esm/components/component-ex.mjs +19 -6
- package/dist/lib/esm/components/disposable-component.mjs +1 -1
- package/dist/lib/esm/components/embed-extensions-component.d.mts +8 -0
- package/dist/lib/esm/components/embed-extensions-component.mjs +20 -3
- package/dist/lib/esm/components/embeddable-markdown-editor-component.d.mts +9 -0
- package/dist/lib/esm/components/embeddable-markdown-editor-component.mjs +16 -2
- package/dist/lib/esm/components/index.d.mts +5 -0
- package/dist/lib/esm/components/index.mjs +12 -2
- package/dist/lib/esm/components/plugin-gate-component.d.mts +36 -13
- package/dist/lib/esm/components/plugin-gate-component.mjs +61 -26
- package/dist/lib/esm/components/plugin-notice-component.d.mts +4 -3
- package/dist/lib/esm/components/plugin-notice-component.mjs +30 -21
- package/dist/lib/esm/components/plugin-settings-component.d.mts +35 -5
- package/dist/lib/esm/components/plugin-settings-component.mjs +105 -4
- package/dist/lib/esm/components/rename-delete-handler-component.mjs +2 -2
- package/dist/lib/esm/components/shared-component-pool-component.d.mts +129 -0
- package/dist/lib/esm/components/shared-component-pool-component.mjs +280 -0
- package/dist/lib/esm/components/worker-component.d.mts +156 -0
- package/dist/lib/esm/components/worker-component.mjs +279 -0
- package/dist/lib/esm/components/worker-pool-component.d.mts +102 -0
- package/dist/lib/esm/components/worker-pool-component.mjs +95 -0
- package/dist/lib/esm/components/workspace-layout-state-component.d.mts +239 -0
- package/dist/lib/esm/components/workspace-layout-state-component.mjs +404 -0
- package/dist/lib/esm/css-class.d.mts +16 -0
- package/dist/lib/esm/css-class.mjs +5 -1
- package/dist/lib/esm/data-handler.d.mts +219 -2
- package/dist/lib/esm/data-handler.mjs +262 -5
- package/dist/lib/esm/data-stores/data-store-locations.d.mts +15 -0
- package/dist/lib/esm/data-stores/data-store-locations.mjs +80 -22
- package/dist/lib/esm/data-stores/data-store-replica.mjs +33 -5
- package/dist/lib/esm/data-stores/data-store-seeds.d.mts +2 -2
- package/dist/lib/esm/data-stores/data-store-seeds.mjs +4 -4
- package/dist/lib/esm/data-stores/data-store-transport.d.mts +30 -1
- package/dist/lib/esm/data-stores/data-store-transport.mjs +78 -5
- package/dist/lib/esm/data-stores/local-data-store.d.mts +58 -1
- package/dist/lib/esm/data-stores/local-data-store.mjs +71 -9
- package/dist/lib/esm/data-stores/shared-data-store.d.mts +18 -1
- package/dist/lib/esm/data-stores/shared-data-store.mjs +72 -15
- package/dist/lib/esm/dataview.d.mts +14 -0
- package/dist/lib/esm/dataview.mjs +19 -1
- package/dist/lib/esm/demo-vault-helper.d.mts +6 -2
- package/dist/lib/esm/demo-vault-helper.mjs +29 -1
- package/dist/lib/esm/desktop-demo-vault-opener.mjs +1 -1
- package/dist/lib/esm/desktop-git-runner.d.mts +8 -2
- package/dist/lib/esm/desktop-git-runner.mjs +3 -3
- package/dist/lib/esm/desktop-request-url-stream.mjs +4 -10
- package/dist/lib/esm/disposable.d.mts +39 -0
- package/dist/lib/esm/disposable.mjs +64 -0
- package/dist/lib/esm/file-system.mjs +2 -2
- package/dist/lib/esm/frontmatter-formatting.mjs +2 -1
- package/dist/lib/esm/generated-during-build.mjs +2 -2
- package/dist/lib/esm/git-rename-history.d.mts +2 -2
- package/dist/lib/esm/git-rename-history.mjs +1 -1
- package/dist/lib/esm/i18n/locales/en.d.mts +26 -0
- package/dist/lib/esm/i18n/locales/en.mjs +27 -1
- package/dist/lib/esm/i18n/locales/translations-map.d.mts +26 -0
- package/dist/lib/esm/index.d.mts +7 -0
- package/dist/lib/esm/index.mjs +15 -1
- package/dist/lib/esm/link.d.mts +20 -14
- package/dist/lib/esm/link.mjs +57 -38
- package/dist/lib/esm/loop.mjs +2 -8
- package/dist/lib/esm/markdown-code-block-processor-registrar.d.mts +7 -0
- package/dist/lib/esm/markdown-code-block-processor-registrar.mjs +16 -1
- package/dist/lib/esm/markdown-view.d.mts +48 -1
- package/dist/lib/esm/markdown-view.mjs +192 -2
- package/dist/lib/esm/metadata-cache.d.mts +5 -4
- package/dist/lib/esm/metadata-cache.mjs +6 -6
- package/dist/lib/esm/misplaced-attachment.d.mts +228 -0
- package/dist/lib/esm/misplaced-attachment.mjs +212 -0
- package/dist/lib/esm/modals/copy-text-manually.d.mts +38 -0
- package/dist/lib/esm/modals/copy-text-manually.mjs +99 -0
- package/dist/lib/esm/modals/index.d.mts +2 -0
- package/dist/lib/esm/modals/index.mjs +5 -1
- package/dist/lib/esm/modals/prompt.d.mts +1 -1
- package/dist/lib/esm/modals/prompt.mjs +1 -1
- package/dist/lib/esm/modals/review-bug-report-diagnostics.d.mts +30 -0
- package/dist/lib/esm/modals/review-bug-report-diagnostics.mjs +120 -0
- package/dist/lib/esm/notebook-navigator.d.mts +6 -0
- package/dist/lib/esm/notebook-navigator.mjs +11 -2
- package/dist/lib/esm/parse-link.mjs +4 -4
- package/dist/lib/esm/path-compatibility.d.mts +263 -0
- package/dist/lib/esm/path-compatibility.mjs +277 -0
- package/dist/lib/esm/plugin/index.d.mts +2 -0
- package/dist/lib/esm/plugin/index.mjs +6 -2
- package/dist/lib/esm/plugin/plugin-api.d.mts +5 -1
- package/dist/lib/esm/plugin/plugin-api.mjs +13 -4
- package/dist/lib/esm/plugin/plugin-async-cleanup.d.mts +5 -0
- package/dist/lib/esm/plugin/plugin-async-cleanup.mjs +3 -1
- package/dist/lib/esm/plugin/plugin-context.mjs +2 -1
- package/dist/lib/esm/plugin/plugin-event-source.d.mts +4 -4
- package/dist/lib/esm/plugin/plugin-event-source.mjs +1 -1
- package/dist/lib/esm/plugin/plugin-install-state.d.mts +30 -0
- package/dist/lib/esm/plugin/plugin-install-state.mjs +44 -1
- package/dist/lib/esm/plugin/plugin-instance.d.mts +258 -0
- package/dist/lib/esm/plugin/plugin-instance.mjs +367 -0
- package/dist/lib/esm/plugin/plugin-lifecycle-events.d.mts +6 -4
- package/dist/lib/esm/plugin/plugin-lifecycle-events.mjs +1 -1
- package/dist/lib/esm/plugin/plugin.d.mts +35 -5
- package/dist/lib/esm/plugin/plugin.mjs +118 -9
- package/dist/lib/esm/plugin/third-party-plugin.d.mts +244 -0
- package/dist/lib/esm/plugin/third-party-plugin.mjs +147 -0
- package/dist/lib/esm/release-asset.mjs +1 -1
- package/dist/lib/esm/resource-lock.d.mts +8 -7
- package/dist/lib/esm/resource-lock.mjs +31 -26
- package/dist/lib/esm/setting-components/multiple-text-component.d.mts +4 -1
- package/dist/lib/esm/setting-components/multiple-text-component.mjs +6 -3
- package/dist/lib/esm/settings-recovery.d.mts +178 -0
- package/dist/lib/esm/settings-recovery.mjs +125 -0
- package/dist/lib/esm/settings-tabs.mjs +2 -2
- package/dist/lib/esm/templater.d.mts +6 -0
- package/dist/lib/esm/templater.mjs +11 -2
- package/dist/lib/esm/vault.mjs +1 -1
- package/dist/lib/esm/virtual-file.d.mts +2 -1
- package/dist/lib/esm/virtual-file.mjs +7 -5
- package/dist/lib/esm/wasm.d.mts +54 -0
- package/dist/lib/esm/wasm.mjs +30 -0
- package/dist/lib/esm/worker-protocol.d.mts +282 -0
- package/dist/lib/esm/worker-protocol.mjs +113 -0
- package/dist/styles.css +16 -1
- package/modals/copy-text-manually/package.json +6 -0
- package/modals/review-bug-report-diagnostics/package.json +6 -0
- package/package.json +10 -8
- package/plugin/plugin-instance/package.json +6 -0
- package/plugin/third-party-plugin/package.json +6 -0
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
/// <reference path="./library-references.d.cts" />
|
|
2
|
+
/// <reference lib="dom" />
|
|
3
|
+
/// <reference lib="dom.iterable" />
|
|
4
|
+
/**
|
|
5
|
+
* @file
|
|
6
|
+
*
|
|
7
|
+
* The message protocol between `WorkerComponent` on the main thread and {@link exposeWorkerApi} inside a worker.
|
|
8
|
+
*
|
|
9
|
+
* This module imports nothing, so a worker entry point bundled by `@mnaoumov/obsidian-dev-toolkit`'s `workers` feature
|
|
10
|
+
* can import it: a worker has no `obsidian` module and no Node builtins. Its message shapes are a wire format between
|
|
11
|
+
* the plugin's main bundle and its worker bundle, which may come from different copies of this library, so fields are
|
|
12
|
+
* only ever added and a change of meaning moves to a new {@link WORKER_PROTOCOL} value.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* The tag every message of this protocol carries. Messages without it are ignored on both sides, so a worker can
|
|
16
|
+
* exchange its own messages too.
|
|
17
|
+
*/
|
|
18
|
+
export declare const WORKER_PROTOCOL = "obsidian-lib-worker-v1";
|
|
19
|
+
/**
|
|
20
|
+
* An error reduced to plain data, because an `Error` loses its class across the worker boundary.
|
|
21
|
+
*/
|
|
22
|
+
export interface SerializedWorkerError {
|
|
23
|
+
/**
|
|
24
|
+
* The error message.
|
|
25
|
+
*/
|
|
26
|
+
readonly message: string;
|
|
27
|
+
/**
|
|
28
|
+
* The error name.
|
|
29
|
+
*/
|
|
30
|
+
readonly name: string;
|
|
31
|
+
/**
|
|
32
|
+
* The stack in the worker, when there was one.
|
|
33
|
+
*/
|
|
34
|
+
readonly stack?: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* A result marked to transfer some of its objects rather than copy them. Build it with {@link withTransfer}.
|
|
38
|
+
*
|
|
39
|
+
* @typeParam TValue - The value type.
|
|
40
|
+
*/
|
|
41
|
+
export interface TransferredValue<TValue> {
|
|
42
|
+
/**
|
|
43
|
+
* The marker that identifies the wrapper structurally, so a wrapper built by another copy of this library is
|
|
44
|
+
* recognized too.
|
|
45
|
+
*/
|
|
46
|
+
readonly __obsidianLibTransferredValue: true;
|
|
47
|
+
/**
|
|
48
|
+
* The objects to transfer.
|
|
49
|
+
*/
|
|
50
|
+
readonly transfer: readonly Transferable[];
|
|
51
|
+
/**
|
|
52
|
+
* The value.
|
|
53
|
+
*/
|
|
54
|
+
readonly value: TValue;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* A value split from its transfer list, ready to post.
|
|
58
|
+
*/
|
|
59
|
+
export interface UnwrappedTransferredValue {
|
|
60
|
+
/**
|
|
61
|
+
* The objects to transfer.
|
|
62
|
+
*/
|
|
63
|
+
readonly transfer: Transferable[];
|
|
64
|
+
/**
|
|
65
|
+
* The value to post.
|
|
66
|
+
*/
|
|
67
|
+
readonly value: unknown;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* An API a worker exposes: an object whose every member is a function.
|
|
71
|
+
*
|
|
72
|
+
* @typeParam TApi - The API type.
|
|
73
|
+
*/
|
|
74
|
+
export type WorkerApi<TApi> = {
|
|
75
|
+
readonly [TMethod in keyof TApi]: (...parameters: never[]) => unknown;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* The handlers implementing a {@link WorkerApi}, with the {@link WorkerCallContext} as `this`.
|
|
79
|
+
*
|
|
80
|
+
* Each handler takes the method's arguments and returns its result, or a promise of it, or the result wrapped by
|
|
81
|
+
* {@link withTransfer} to transfer buffers back instead of copying them. Declare the handlers as methods or `function`
|
|
82
|
+
* expressions, not arrow functions, when they need `this`.
|
|
83
|
+
*
|
|
84
|
+
* @typeParam TApi - The API type.
|
|
85
|
+
*/
|
|
86
|
+
export type WorkerApiHandlers<TApi extends WorkerApi<TApi>> = {
|
|
87
|
+
readonly [TMethod in keyof TApi]: (this: WorkerCallContext, ...parameters: Parameters<TApi[TMethod]>) => WorkerHandlerResult<Awaited<ReturnType<TApi[TMethod]>>>;
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* The context of one call, passed to a handler as `this`.
|
|
91
|
+
*/
|
|
92
|
+
export interface WorkerCallContext {
|
|
93
|
+
/**
|
|
94
|
+
* Aborted when the caller cancels the call. A long handler checks it between steps; nothing interrupts a synchronous
|
|
95
|
+
* loop, so a job that cannot check it is stopped only by terminating the worker.
|
|
96
|
+
*/
|
|
97
|
+
readonly abortSignal: AbortSignal;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* A call from the main thread.
|
|
101
|
+
*/
|
|
102
|
+
export interface WorkerCallMessage {
|
|
103
|
+
/**
|
|
104
|
+
* The method's arguments.
|
|
105
|
+
*/
|
|
106
|
+
readonly arguments: readonly unknown[];
|
|
107
|
+
/**
|
|
108
|
+
* The call id, unique per `WorkerComponent`.
|
|
109
|
+
*/
|
|
110
|
+
readonly id: number;
|
|
111
|
+
/**
|
|
112
|
+
* The message kind.
|
|
113
|
+
*/
|
|
114
|
+
readonly kind: 'call';
|
|
115
|
+
/**
|
|
116
|
+
* The method name.
|
|
117
|
+
*/
|
|
118
|
+
readonly method: string;
|
|
119
|
+
/**
|
|
120
|
+
* The protocol tag.
|
|
121
|
+
*/
|
|
122
|
+
readonly protocol: typeof WORKER_PROTOCOL;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* A cancellation of a call from the main thread.
|
|
126
|
+
*/
|
|
127
|
+
export interface WorkerCancelMessage {
|
|
128
|
+
/**
|
|
129
|
+
* The id of the call to cancel.
|
|
130
|
+
*/
|
|
131
|
+
readonly id: number;
|
|
132
|
+
/**
|
|
133
|
+
* The message kind.
|
|
134
|
+
*/
|
|
135
|
+
readonly kind: 'cancel';
|
|
136
|
+
/**
|
|
137
|
+
* The protocol tag.
|
|
138
|
+
*/
|
|
139
|
+
readonly protocol: typeof WORKER_PROTOCOL;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* A failed call, answered by the worker.
|
|
143
|
+
*/
|
|
144
|
+
export interface WorkerErrorMessage {
|
|
145
|
+
/**
|
|
146
|
+
* The error, reduced to plain data.
|
|
147
|
+
*/
|
|
148
|
+
readonly error: SerializedWorkerError;
|
|
149
|
+
/**
|
|
150
|
+
* The id of the call.
|
|
151
|
+
*/
|
|
152
|
+
readonly id: number;
|
|
153
|
+
/**
|
|
154
|
+
* The message kind.
|
|
155
|
+
*/
|
|
156
|
+
readonly kind: 'error';
|
|
157
|
+
/**
|
|
158
|
+
* The protocol tag.
|
|
159
|
+
*/
|
|
160
|
+
readonly protocol: typeof WORKER_PROTOCOL;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* What a handler may return.
|
|
164
|
+
*
|
|
165
|
+
* @typeParam TResult - The method's result type.
|
|
166
|
+
*/
|
|
167
|
+
export type WorkerHandlerResult<TResult> = Promise<TransferredValue<TResult> | TResult> | TransferredValue<TResult> | TResult;
|
|
168
|
+
/**
|
|
169
|
+
* The port a worker talks through: the worker's global scope, or a test double.
|
|
170
|
+
*/
|
|
171
|
+
export interface WorkerMessagePort {
|
|
172
|
+
/**
|
|
173
|
+
* Subscribes to messages.
|
|
174
|
+
*
|
|
175
|
+
* @param type - Always `message`.
|
|
176
|
+
* @param listener - The listener.
|
|
177
|
+
*/
|
|
178
|
+
readonly addEventListener: (type: 'message', listener: ($event: MessageEvent<unknown>) => void) => void;
|
|
179
|
+
/**
|
|
180
|
+
* Posts a message.
|
|
181
|
+
*
|
|
182
|
+
* @param message - The message.
|
|
183
|
+
* @param transfer - The objects to transfer.
|
|
184
|
+
*/
|
|
185
|
+
readonly postMessage: (message: unknown, transfer: Transferable[]) => void;
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Any message sent to the worker.
|
|
189
|
+
*/
|
|
190
|
+
export type WorkerRequestMessage = WorkerCallMessage | WorkerCancelMessage;
|
|
191
|
+
/**
|
|
192
|
+
* Any message sent by the worker.
|
|
193
|
+
*/
|
|
194
|
+
export type WorkerResponseMessage = WorkerErrorMessage | WorkerResultMessage;
|
|
195
|
+
/**
|
|
196
|
+
* A successful call, answered by the worker.
|
|
197
|
+
*/
|
|
198
|
+
export interface WorkerResultMessage {
|
|
199
|
+
/**
|
|
200
|
+
* The id of the call.
|
|
201
|
+
*/
|
|
202
|
+
readonly id: number;
|
|
203
|
+
/**
|
|
204
|
+
* The message kind.
|
|
205
|
+
*/
|
|
206
|
+
readonly kind: 'result';
|
|
207
|
+
/**
|
|
208
|
+
* The protocol tag.
|
|
209
|
+
*/
|
|
210
|
+
readonly protocol: typeof WORKER_PROTOCOL;
|
|
211
|
+
/**
|
|
212
|
+
* The result.
|
|
213
|
+
*/
|
|
214
|
+
readonly value: unknown;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Exposes handlers to the main thread. Call it once, at the top level of a worker entry point.
|
|
218
|
+
*
|
|
219
|
+
* A handler that throws or rejects answers with a {@link SerializedWorkerError}, which the caller receives as a
|
|
220
|
+
* `WorkerCallError`. An unknown method answers with an error too, so a caller never waits for nothing.
|
|
221
|
+
*
|
|
222
|
+
* @typeParam TApi - The API type.
|
|
223
|
+
* @param handlers - The handlers.
|
|
224
|
+
* @param port - The port to talk through. Defaults to the worker's global scope.
|
|
225
|
+
*/
|
|
226
|
+
export declare function exposeWorkerApi<TApi extends WorkerApi<TApi>>(handlers: WorkerApiHandlers<TApi>, port?: WorkerMessagePort): void;
|
|
227
|
+
/**
|
|
228
|
+
* Calls one handler by name, as the worker does. `WorkerComponent` uses it for its main-thread fallback, so both paths
|
|
229
|
+
* behave alike.
|
|
230
|
+
*
|
|
231
|
+
* @param handlers - The handlers.
|
|
232
|
+
* @param method - The method name.
|
|
233
|
+
* @param callArguments - The arguments.
|
|
234
|
+
* @param context - The call context.
|
|
235
|
+
* @returns The result, or a {@link TransferredValue} wrapping it.
|
|
236
|
+
*/
|
|
237
|
+
export declare function invokeWorkerHandler(handlers: object, method: string, callArguments: readonly unknown[], context: WorkerCallContext): Promise<unknown>;
|
|
238
|
+
/**
|
|
239
|
+
* Tells whether a value is a {@link TransferredValue}.
|
|
240
|
+
*
|
|
241
|
+
* @param value - The value.
|
|
242
|
+
* @returns Whether it is one.
|
|
243
|
+
*/
|
|
244
|
+
export declare function isTransferredValue(value: unknown): value is TransferredValue<unknown>;
|
|
245
|
+
/**
|
|
246
|
+
* Tells whether a message is a request of this protocol.
|
|
247
|
+
*
|
|
248
|
+
* @param message - The message.
|
|
249
|
+
* @returns Whether it is one.
|
|
250
|
+
*/
|
|
251
|
+
export declare function isWorkerRequestMessage(message: unknown): message is WorkerRequestMessage;
|
|
252
|
+
/**
|
|
253
|
+
* Tells whether a message is a response of this protocol.
|
|
254
|
+
*
|
|
255
|
+
* @param message - The message.
|
|
256
|
+
* @returns Whether it is one.
|
|
257
|
+
*/
|
|
258
|
+
export declare function isWorkerResponseMessage(message: unknown): message is WorkerResponseMessage;
|
|
259
|
+
/**
|
|
260
|
+
* Reduces a thrown value to plain data.
|
|
261
|
+
*
|
|
262
|
+
* @param error - The thrown value.
|
|
263
|
+
* @returns The serialized error.
|
|
264
|
+
*/
|
|
265
|
+
export declare function serializeWorkerError(error: unknown): SerializedWorkerError;
|
|
266
|
+
/**
|
|
267
|
+
* Splits a result into the value to post and the objects to transfer.
|
|
268
|
+
*
|
|
269
|
+
* @param result - A result, possibly wrapped by {@link withTransfer}.
|
|
270
|
+
* @returns The value and its transfer list.
|
|
271
|
+
*/
|
|
272
|
+
export declare function unwrapTransferredValue(result: unknown): UnwrappedTransferredValue;
|
|
273
|
+
/**
|
|
274
|
+
* Marks a result to transfer some of its objects (an `ArrayBuffer`, a `MessagePort`, an `OffscreenCanvas`...) instead
|
|
275
|
+
* of copying them. A transferred object is unusable on the sending side afterwards.
|
|
276
|
+
*
|
|
277
|
+
* @typeParam TValue - The value type.
|
|
278
|
+
* @param value - The value.
|
|
279
|
+
* @param transfer - The objects inside it to transfer.
|
|
280
|
+
* @returns The wrapped value.
|
|
281
|
+
*/
|
|
282
|
+
export declare function withTransfer<TValue>(value: TValue, transfer: readonly Transferable[]): TransferredValue<TValue>;
|
|
@@ -122,7 +122,7 @@ __export(workspace_exports, {
|
|
|
122
122
|
switchToWindow: () => switchToWindow
|
|
123
123
|
});
|
|
124
124
|
module.exports = __toCommonJS(workspace_exports);
|
|
125
|
-
var import_disposable = require(
|
|
125
|
+
var import_disposable = require("@mnaoumov/typescript-lib/disposable");
|
|
126
126
|
async function ensureLayoutReady(app) {
|
|
127
127
|
await new Promise((resolve) => {
|
|
128
128
|
app.workspace.onLayoutReady(resolve);
|
|
@@ -9,11 +9,12 @@ export { getIndexedBacklinksForFile, iterateReferencesAffectedByRename } from '.
|
|
|
9
9
|
export { renderBacklinksTable, renderDelayedBacklinks, renderDelayedBacklinksForFolder } from './backlink.mjs';
|
|
10
10
|
export { PluginBasesViewRegistrar } from './bases-view-registrar.mjs';
|
|
11
11
|
export { BrokenLinkCandidateFinder, BrokenLinkEvidenceKind, getParentPath, getPathMapping } from './broken-link-candidates.mjs';
|
|
12
|
-
export {
|
|
12
|
+
export { BugReportLogBuffer, createSettingsDiagnosticSection, DEFAULT_BUG_REPORT_LOG_MAX_ENTRIES, DEFAULT_BUG_REPORT_LOG_MAX_ENTRY_LENGTH, formatBugReportDiagnostics, getMarkdownFence, REDACTED_VALUE, redactSettings } from './bug-report-diagnostics.mjs';
|
|
13
|
+
export { BUG_REPORT_ISSUE_FORM_TEMPLATE, BUG_REPORT_PASTE_INSTRUCTIONS, BugReportIssueFormFieldId, buildBugReportIssueFormLink, DEFAULT_BUG_REPORT_MAX_URL_LENGTH, formatBugReportEnvironment, getBugReportEnvironment, getBugReportIssueFormUrl, getGitHubIssueFormUrl } from './bug-report.mjs';
|
|
13
14
|
export { BULK_OPERATION_HOLD_INTERVAL_IN_MILLISECONDS, holdBulkOperationWhile, registerBulkOperationProgressListener, reportBulkOperationProgress } from './bulk-operation-progress.mjs';
|
|
14
15
|
export { buildBeforeOperationCommitSubject, buildOperationCommitMessage, BULK_OPERATION_LOCK_FILE_NAME, BULK_OPERATION_LOCK_STALE_AFTER_IN_MILLISECONDS, formatOperationId, getNextOperationId, isBulkOperationLock, isBulkOperationLockStale, OPERATION_TRAILER_KEY, parseBulkOperationCommit, parseOperationNumber, PLUGIN_TRAILER_KEY } from './bulk-operation.mjs';
|
|
15
16
|
export { CalloutMode, renderCallout, wrapForCallout } from './callout.mjs';
|
|
16
|
-
export { getCanvasReferences } from './canvas.mjs';
|
|
17
|
+
export { getCanvasReferences, getCanvasReferencesFromContent } from './canvas.mjs';
|
|
17
18
|
export { CaseInsensitiveFileIndex, getCaseInsensitiveFileIndex, setCaseInsensitiveFileIndex, unsetCaseInsensitiveFileIndex } from './case-insensitive-file-index.mjs';
|
|
18
19
|
export { createCodeBlockRegExp } from './code-block-reg-exp.mjs';
|
|
19
20
|
export { captureCodeBlockFocus, claimCodeBlockRenderHandoff, CODE_BLOCK_RENDER_HANDOFF_LIFETIME_IN_MILLISECONDS, recordCodeBlockRenderHandoff, restoreCodeBlockFocus } from './code-block-render-handoff.mjs';
|
|
@@ -42,6 +43,7 @@ export { PluginCommandRegistrar } from './command-registrar.mjs';
|
|
|
42
43
|
export { configureCommunityPlugin, ConfigureCommunityPluginResult, disableCommunityPlugin, enableCommunityPlugin, getCommunityPluginRepo, getLatestReleaseVersion, installCommunityPlugin, installConfigureEnableCommunityPlugin, PluginEnableRefusedError, searchCommunityPlugins, toggleEnableCommunityPlugin, toggleInstallCommunityPlugin, uninstallCommunityPlugin, updateCommunityPlugin, UpdateCommunityPluginResult } from './community-plugins.mjs';
|
|
43
44
|
export { AbortSignalComponent } from './components/abort-signal-component.mjs';
|
|
44
45
|
export { AllWindowsEventComponent, forEachWindow, registerBodyClass } from './components/all-windows-event-component.mjs';
|
|
46
|
+
export { AllWindowsStatusBarItemComponent, getPluginStatusBarItemCssClass, registerAllWindowsStatusBarItem, WINDOW_STATUS_BAR_CSS_CLASS } from './components/all-windows-status-bar-item-component.mjs';
|
|
45
47
|
export { AsyncErrorHandlerComponent } from './components/async-error-handler-component.mjs';
|
|
46
48
|
export { registerAsyncEvent } from './components/async-events-component.mjs';
|
|
47
49
|
export { BulkOperationCommitComponent } from './components/bulk-operation-commit-component.mjs';
|
|
@@ -73,20 +75,24 @@ export { EmptyFolderBehavior, RenameDeleteHandlerComponent } from './components/
|
|
|
73
75
|
export { NOT_EMPTY_DIRECTORY_ERROR_CODE, RmdirGuardComponent } from './components/rmdir-guard-component.mjs';
|
|
74
76
|
export { SettingsFacetComponent } from './components/settings-facet-component.mjs';
|
|
75
77
|
export { SettingsMigrationComponent } from './components/settings-migration-component.mjs';
|
|
78
|
+
export { SharedComponentPoolComponent } from './components/shared-component-pool-component.mjs';
|
|
76
79
|
export { registerStyle, StyleSheetComponent } from './components/style-sheet-component.mjs';
|
|
77
80
|
export { SyntaxHighlightingComponent } from './components/syntax-highlighting-component.mjs';
|
|
78
81
|
export { TemplatesLanguageComponent } from './components/templates-language-component.mjs';
|
|
82
|
+
export { WorkerCallError, WorkerComponent } from './components/worker-component.mjs';
|
|
83
|
+
export { getDefaultWorkerPoolSize, MAX_DEFAULT_WORKER_POOL_SIZE, WorkerPoolComponent } from './components/worker-pool-component.mjs';
|
|
84
|
+
export { parseWorkspaceLayoutStateRecord, serializeWorkspaceLayoutStateRecord, WORKSPACE_LAYOUT_STATE_LAYOUT_KEY, WorkspaceLayoutStateComponent } from './components/workspace-layout-state-component.mjs';
|
|
79
85
|
export { getDomEventsHandlersConstructor } from './constructors/get-dom-events-handlers-constructor.mjs';
|
|
80
86
|
export { CssClass } from './css-class.mjs';
|
|
81
|
-
export { PluginDataHandler } from './data-handler.mjs';
|
|
87
|
+
export { DEFAULT_PLUGIN_DATA_MAX_SIZE_IN_BYTES, PluginDataHandler, PluginDataOperation, PluginDataParseError, PluginDataSizeLimitExceededError } from './data-handler.mjs';
|
|
82
88
|
export { DataStoreLocations } from './data-stores/data-store-locations.mjs';
|
|
83
89
|
export { DataStoreReplica, isDataStoreJsonValue, isDataStoreOperation } from './data-stores/data-store-replica.mjs';
|
|
84
90
|
export { DataStoreSeeds, validateDataStoreSeed } from './data-stores/data-store-seeds.mjs';
|
|
85
91
|
export { DataStoreTransport } from './data-stores/data-store-transport.mjs';
|
|
86
|
-
export { LocalDataStore } from './data-stores/local-data-store.mjs';
|
|
92
|
+
export { LocalDataStore, LocalDataStoreClosedError, LocalDataStoreCloseReason } from './data-stores/local-data-store.mjs';
|
|
87
93
|
export { SharedDataStore } from './data-stores/shared-data-store.mjs';
|
|
88
94
|
export { fixTitle, makeLinkWithPath } from './dataview-link.mjs';
|
|
89
|
-
export { getRenderedContainer, insertCodeBlock, reloadCurrentFileCache, renderIframe, renderPaginatedList, renderPaginatedTable } from './dataview.mjs';
|
|
95
|
+
export { DATAVIEW_PLUGIN_ADAPTER, DATAVIEW_PLUGIN_ID, getRenderedContainer, insertCodeBlock, reloadCurrentFileCache, renderIframe, renderPaginatedList, renderPaginatedTable } from './dataview.mjs';
|
|
90
96
|
export { getObsidianLibDebugger, showInitialDebugMessage } from './debug.mjs';
|
|
91
97
|
export { bootstrapDemoVault } from './demo-vault-helper.mjs';
|
|
92
98
|
export { getDemoVaultArchiveFileName, getDemoVaultFolderName } from './demo-vault-naming.mjs';
|
|
@@ -95,6 +101,7 @@ export { openDemoVault } from './desktop-demo-vault-opener.mjs';
|
|
|
95
101
|
export { createDesktopGitRunner } from './desktop-git-runner.mjs';
|
|
96
102
|
export { getDesktopOperatingSystem } from './desktop-operating-system.mjs';
|
|
97
103
|
export { openDesktopRequestUrlStream } from './desktop-request-url-stream.mjs';
|
|
104
|
+
export { registerAsyncDisposable, registerDisposable } from './disposable.mjs';
|
|
98
105
|
export { PluginEditorExtensionRegistrar } from './editor-extension-registrar.mjs';
|
|
99
106
|
export { PluginEditorSuggestRegistrar } from './editor-suggest-registrar.mjs';
|
|
100
107
|
export { CommandEditorSuggest, prioritizeEditorSuggest } from './editor-suggest.mjs';
|
|
@@ -132,40 +139,46 @@ export { loop } from './loop.mjs';
|
|
|
132
139
|
export { PluginMarkdownCodeBlockProcessorRegistrar } from './markdown-code-block-processor-registrar.mjs';
|
|
133
140
|
export { getCodeBlockMarkdownInfo, insertAfterCodeBlock, insertBeforeCodeBlock, removeCodeBlock, replaceCodeBlock } from './markdown-code-block-processor.mjs';
|
|
134
141
|
export { PluginMarkdownPostProcessorRegistrar } from './markdown-post-processor-registrar.mjs';
|
|
135
|
-
export { getFullContentHtml } from './markdown-view.mjs';
|
|
142
|
+
export { getFullContentHtml, rerenderPreviews } from './markdown-view.mjs';
|
|
136
143
|
export { fullRender, markdownToHtml, registerLinkHandlers, renderExternalLink, renderInternalLink } from './markdown.mjs';
|
|
137
144
|
export { addSingleChoiceMenuItems } from './menu.mjs';
|
|
138
145
|
export { ADVANCED_METADATA_CACHE_PLUGIN_ID, BACKLINK_CACHE_PLUGIN_ID, CachedMetadataExFeature, ensureMetadataCacheReady, getBacklinksForFileOrPath, getBacklinksForFileSafe, getCacheSafe, getFrontmatterSafe, getReferences, hasBacklinkCachePlugin, isCachedMetadataEx, parseMetadata, registerFileCacheForNonExistingFile, registerFiles, unregisterFileCacheForNonExistingFile, unregisterFiles } from './metadata-cache.mjs';
|
|
146
|
+
export { ExternalAttachmentLinkMode, getAttachmentPlacement, MisplacedAttachmentIndex, recordAttachmentPlacement } from './misplaced-attachment.mjs';
|
|
139
147
|
export { getMobileAppInfo } from './mobile-app-info.mjs';
|
|
140
148
|
export { alert } from './modals/alert.mjs';
|
|
141
149
|
export { formatCodeBlock, showCodeBlockBuilder } from './modals/code-block-builder.mjs';
|
|
142
150
|
export { confirm } from './modals/confirm.mjs';
|
|
151
|
+
export { copyTextManually } from './modals/copy-text-manually.mjs';
|
|
143
152
|
export { MinimizableModal } from './modals/minimizable-modal.mjs';
|
|
144
153
|
export { ModalCommandBuilder, ModalCommandsRenderMode } from './modals/modal-command-builder.mjs';
|
|
145
154
|
export { ModalBase, showModal } from './modals/modal.mjs';
|
|
146
155
|
export { prompt } from './modals/prompt.mjs';
|
|
156
|
+
export { reviewBugReportDiagnostics } from './modals/review-bug-report-diagnostics.mjs';
|
|
147
157
|
export { selectItem } from './modals/select-item.mjs';
|
|
148
158
|
export { selectOption } from './modals/select-option.mjs';
|
|
149
159
|
export { SuggestModalCommandBuilder } from './modals/suggest-modal-command-builder.mjs';
|
|
150
160
|
export { filterHighestPriorityNotePaths, findNoPriorityWinnerReason, findNotePriorityRank, NO_PRIORITY_MATCH, NoPriorityWinnerReason, pickHighestPriorityNotePath } from './note-priority.mjs';
|
|
151
|
-
export { NOTEBOOK_NAVIGATOR_MENU_SOURCE, NOTEBOOK_NAVIGATOR_PLUGIN_ID, resolveNotebookNavigatorApi } from './notebook-navigator.mjs';
|
|
161
|
+
export { NOTEBOOK_NAVIGATOR_MENU_SOURCE, NOTEBOOK_NAVIGATOR_PLUGIN_ADAPTER, NOTEBOOK_NAVIGATOR_PLUGIN_ID, resolveNotebookNavigatorApi } from './notebook-navigator.mjs';
|
|
152
162
|
export { getObsidianLibState, resetObsidianLibState } from './obsidian-lib-state.mjs';
|
|
153
163
|
export { PluginObsidianProtocolHandlerRegistrar } from './obsidian-protocol-handler-registrar.mjs';
|
|
154
164
|
export { getNewLinkFormat, isSpellcheckEnabled, isSpellcheckEnabledForMode, shouldUseWikilinks, SpellcheckMode } from './obsidian-settings.mjs';
|
|
155
165
|
export { canonicalizeObsidianText, createObsidianMentionRegExp, getObsidianNameTokens, isObsidianWordCharacter, tokenizeObsidianWords } from './obsidian-word-characters.mjs';
|
|
156
166
|
export { escapeAlias, isParseLinkFrontmatterReference, isParseLinkReference, parseFrontmatterLinks, parseLink, parseLinks, toParseLinkReference, unescapeAlias } from './parse-link.mjs';
|
|
167
|
+
export { findPathCompatibilityViolations, getCurrentPathCompatibilityPlatform, getForbiddenCharacterReplacementValidationMessage, isUnicodeNormalized, measure, PATH_COMPATIBILITY_PLATFORM_LABELS, PATH_COMPATIBILITY_PLATFORMS, PathCompatibilityPlatform, PathCompatibilityViolationType, repairName } from './path-compatibility.mjs';
|
|
157
168
|
export { PathSettings, pathsValidator } from './path-settings.mjs';
|
|
158
169
|
export { printToPdf } from './pdf.mjs';
|
|
159
170
|
export { PluginCliHandlerRegistrar } from './plugin-cli-handler-registrar.mjs';
|
|
160
171
|
export { findPluginApi, getValidatePluginApiPayloadsDebugSwitch, PluginApiPayloadKind, PluginApiRevokedError, PluginApiUnavailabilityReason, PluginApiUnavailableError, PluginApiValidationError, publishPluginApi, watchPluginApi } from './plugin/plugin-api.mjs';
|
|
161
|
-
export { DEFAULT_PLUGIN_ASYNC_CLEANUP_TIMEOUT_IN_MILLISECONDS, didPluginAsyncCleanupsSettle, hasPendingPluginAsyncCleanups, PLUGIN_ASYNC_CLEANUPS_STATE_KEY, registerPluginAsyncCleanup, trackPluginAsyncCleanup } from './plugin/plugin-async-cleanup.mjs';
|
|
172
|
+
export { DEFAULT_PLUGIN_ASYNC_CLEANUP_NOTICE_DELAY_IN_MILLISECONDS, DEFAULT_PLUGIN_ASYNC_CLEANUP_TIMEOUT_IN_MILLISECONDS, didPluginAsyncCleanupsSettle, hasPendingPluginAsyncCleanups, PLUGIN_ASYNC_CLEANUPS_STATE_KEY, registerPluginAsyncCleanup, trackPluginAsyncCleanup } from './plugin/plugin-async-cleanup.mjs';
|
|
162
173
|
export { addPluginCssClasses, initDebugController, initPluginContext } from './plugin/plugin-context.mjs';
|
|
163
174
|
export { PluginEventSourceImpl } from './plugin/plugin-event-source.mjs';
|
|
164
|
-
export { getInstalledPluginState, getInstalledPluginVersion, installAndEnablePlugin, InstalledPluginState, updatePlugin } from './plugin/plugin-install-state.mjs';
|
|
175
|
+
export { comparePluginVersionWithMinimum, getInstalledPluginState, getInstalledPluginVersion, installAndEnablePlugin, InstalledPluginState, PluginVersionComparison, updatePlugin } from './plugin/plugin-install-state.mjs';
|
|
176
|
+
export { getLoadedPlugin, getPluginAvailability, PluginAvailability, PluginInstanceUnavailableError, PLUGINS_CHANGED_EVENT_NAME, requirePlugin, waitForPlugin } from './plugin/plugin-instance.mjs';
|
|
165
177
|
export { PLUGIN_LOADED_EVENT_NAME, PLUGIN_UNLOADED_EVENT_NAME, triggerPluginLifecycleEvent } from './plugin/plugin-lifecycle-events.mjs';
|
|
166
178
|
export { PluginSettingsTabBase, SAVE_TO_FILE_CONTEXT } from './plugin/plugin-settings-tab.mjs';
|
|
167
179
|
export { PluginBase, reloadPlugin, showErrorAndDisablePlugin } from './plugin/plugin.mjs';
|
|
168
180
|
export { getSettingsMigrationApiContract } from './plugin/settings-migration-api.mjs';
|
|
181
|
+
export { createThirdPartyPluginDependency, getThirdPartyPluginApi, getThirdPartyPluginAvailability, isThirdPartyPluginDependency, requireThirdPartyPluginApi, waitForThirdPartyPluginApi, watchThirdPartyPluginApi } from './plugin/third-party-plugin.mjs';
|
|
169
182
|
export { editFieldsInPopover } from './popovers/field-popover.mjs';
|
|
170
183
|
export { createAnchorFromDocumentCenter, createAnchorFromElement, createAnchorFromPoint, createAnchorFromSelection } from './popovers/popover-anchor.mjs';
|
|
171
184
|
export { showPopover } from './popovers/popover.mjs';
|
|
@@ -213,9 +226,10 @@ export { WeekComponent } from './setting-components/week-component.mjs';
|
|
|
213
226
|
export { adoptSettingEx, SettingEx } from './setting-ex.mjs';
|
|
214
227
|
export { SettingGroupEx } from './setting-group-ex.mjs';
|
|
215
228
|
export { openSettingTab } from './settings-modal.mjs';
|
|
229
|
+
export { DEFAULT_MAX_SETTINGS_RECOVERY_COPIES, isSettingsRecoveryCopy, LocalSettingsRecoveryStore, SETTINGS_RECOVERY_STORE_ID, SettingsRecoveryReason } from './settings-recovery.mjs';
|
|
216
230
|
export { SettingsTabs } from './settings-tabs.mjs';
|
|
217
231
|
export { PluginStatusBarItemRegistrar } from './status-bar-item-registrar.mjs';
|
|
218
|
-
export { getTemplaterFunctions, getTemplaterRenderTargetFile, parseTemplate, requireTemplaterApi, resolveTemplaterApi, TEMPLATER_PLUGIN_ID, TemplaterActiveFileProvider, TemplaterRunMode, TemplaterUnavailabilityReason, TemplaterUnavailableError } from './templater.mjs';
|
|
232
|
+
export { getTemplaterFunctions, getTemplaterRenderTargetFile, parseTemplate, requireTemplaterApi, resolveTemplaterApi, TEMPLATER_PLUGIN_ADAPTER, TEMPLATER_PLUGIN_ID, TemplaterActiveFileProvider, TemplaterRunMode, TemplaterUnavailabilityReason, TemplaterUnavailableError } from './templater.mjs';
|
|
219
233
|
export { DurationTransformer } from './transformers/duration-transformer.mjs';
|
|
220
234
|
export { clickElement, clickMouse, hoverElement, moveMouse, pressKey, typeIntoEditor, unhoverElement } from './trusted-input.mjs';
|
|
221
235
|
export { ANDROID_UNSAFE_PATH_CHARS, getFileNameValidationMessage, getOsAndObsidianUnsafePathCharsRegExp, getOsUnsafePathCharsRegExp, getPathValidationMessage, hasWindowsTrailingChars, isValidationMessageHolder, isWindowsReservedName, OBSIDIAN_UNSAFE_FILENAME_CHARS, trimWindowsTrailingChars, UNIX_UNSAFE_PATH_CHARS, WINDOWS_UNSAFE_PATH_CHARS } from './validation.mjs';
|
|
@@ -224,6 +238,8 @@ export { VaultTransaction } from './vault-transaction.mjs';
|
|
|
224
238
|
export { cleanupEmptyFolders, copySafe, createFolderSafe, CreateFolderSafeResult, createTemporaryFile, createTemporaryFolder, deleteEmptyFolder, deleteEmptyFolderHierarchy, getAbstractFilePathSafe, getAvailablePath, getFilePathSafe, getFolderPathSafe, getMarkdownFilesSorted, getNoteFilesSorted, getOrCreateAbstractFileSafe, getOrCreateFileSafe, getOrCreateFolderSafe, getSafeRenamePath, InvokeFileActionSafeResult, invokeWithFileSystemLock, isChild, isChildOrSelf, isEmptyFolder, listSafe, process, readSafe, renameSafe, saveNote, trashSafe } from './vault.mjs';
|
|
225
239
|
export { PluginViewRegistrar } from './view-registrar.mjs';
|
|
226
240
|
export { registerVirtualFile } from './virtual-file.mjs';
|
|
241
|
+
export { compileWasmModule, instantiateWasmModule } from './wasm.mjs';
|
|
242
|
+
export { exposeWorkerApi, invokeWorkerHandler, isTransferredValue, isWorkerRequestMessage, isWorkerResponseMessage, serializeWorkerError, unwrapTransferredValue, withTransfer, WORKER_PROTOCOL } from './worker-protocol.mjs';
|
|
227
243
|
export { ensureLayoutReady, getAllContainers, getAllDomWindows, getMainWindow, switchToMainWindow, switchToWindow } from './workspace.mjs';
|
|
228
244
|
export { abortSignalAny, abortSignalNever, abortSignalTimeout, getSharedAbortController, getSharedAbortSignal, INFINITE_TIMEOUT, onAbort, ResettableAbortController, waitForAbort } from '@mnaoumov/typescript-lib/abort-controller';
|
|
229
245
|
export { createAggregateError } from '@mnaoumov/typescript-lib/aggregate-error';
|