obsidian-dev-utils 65.0.0 → 66.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/CHANGELOG.md +36 -8
- package/dist/dev/main.js +4892 -4807
- package/dist/lib/cjs/async-events.cjs +15 -18
- package/dist/lib/cjs/async-events.d.cts +19 -19
- package/dist/lib/cjs/async.cjs +1 -1
- package/dist/lib/cjs/async.d.cts +9 -8
- package/dist/lib/cjs/function.cjs +1 -1
- package/dist/lib/cjs/function.d.cts +43 -3
- package/dist/lib/cjs/library.cjs +1 -1
- package/dist/lib/cjs/obsidian/@types/dataview/typings/obsidian-ex.d.cts +1 -1
- package/dist/lib/cjs/obsidian/async-with-notice.cjs +1 -1
- package/dist/lib/cjs/obsidian/async-with-notice.d.cts +2 -2
- package/dist/lib/cjs/obsidian/{plugin/components → components}/abort-signal-component.cjs +4 -4
- package/dist/lib/cjs/obsidian/{plugin/components → components}/abort-signal-component.d.cts +2 -2
- package/dist/lib/cjs/obsidian/components/all-windows-event-component.cjs +201 -0
- package/dist/lib/{esm/obsidian/components/all-windows-event-handler.d.mts → cjs/obsidian/components/all-windows-event-component.d.cts} +6 -7
- package/dist/lib/cjs/obsidian/components/async-component.cjs +3 -2
- package/dist/lib/cjs/obsidian/components/async-component.d.cts +2 -1
- package/dist/lib/cjs/obsidian/{plugin/components → components}/async-error-handler-component.cjs +5 -5
- package/dist/lib/cjs/obsidian/{plugin/components → components}/async-error-handler-component.d.cts +2 -2
- package/dist/lib/cjs/obsidian/components/async-events-component.cjs +3 -2
- package/dist/lib/cjs/obsidian/components/async-events-component.d.cts +2 -1
- package/dist/lib/cjs/obsidian/{plugin/components → components}/console-debug-component.cjs +4 -4
- package/dist/lib/cjs/obsidian/{plugin/components → components}/console-debug-component.d.cts +2 -2
- package/dist/lib/cjs/obsidian/components/disposable-component.cjs +160 -0
- package/dist/lib/cjs/obsidian/components/disposable-component.d.cts +34 -0
- package/dist/lib/cjs/obsidian/{plugin/components → components}/i18n-component.cjs +4 -4
- package/dist/lib/cjs/obsidian/{plugin/components → components}/i18n-component.d.cts +2 -2
- package/dist/lib/cjs/obsidian/components/index.cjs +40 -7
- package/dist/lib/cjs/obsidian/components/index.d.cts +13 -2
- package/dist/lib/cjs/obsidian/components/layout-ready-component.cjs +185 -0
- package/dist/lib/cjs/obsidian/components/layout-ready-component.d.cts +47 -0
- package/dist/lib/cjs/obsidian/components/menu-event-registrar-component.cjs +172 -0
- package/dist/lib/cjs/obsidian/components/menu-event-registrar-component.d.cts +41 -0
- package/dist/lib/cjs/obsidian/components/monkey-around-component.cjs +197 -0
- package/dist/lib/cjs/obsidian/components/monkey-around-component.d.cts +113 -0
- package/dist/lib/cjs/obsidian/{plugin/components → components}/plugin-context-component.cjs +6 -6
- package/dist/lib/cjs/obsidian/{plugin/components → components}/plugin-context-component.d.cts +2 -2
- package/dist/lib/cjs/obsidian/{plugin/components → components}/plugin-notice-component.cjs +3 -2
- package/dist/lib/cjs/obsidian/{plugin/components → components}/plugin-notice-component.d.cts +2 -2
- package/dist/lib/cjs/obsidian/components/plugin-settings-component.cjs +534 -0
- package/dist/lib/cjs/obsidian/{plugin/components → components}/plugin-settings-component.d.cts +6 -21
- package/dist/lib/cjs/obsidian/{plugin/components → components}/plugin-settings-tab-component.cjs +3 -2
- package/dist/lib/cjs/obsidian/{plugin/components → components}/plugin-settings-tab-component.d.cts +5 -5
- package/dist/lib/cjs/obsidian/constructors/getDomEventsHandlersConstructor.cjs +20 -16
- package/dist/lib/cjs/obsidian/dataview.cjs +1 -1
- package/dist/lib/cjs/obsidian/dataview.d.cts +1 -1
- package/dist/lib/cjs/obsidian/index.cjs +7 -4
- package/dist/lib/cjs/obsidian/index.d.cts +2 -1
- package/dist/lib/cjs/obsidian/loop.cjs +1 -1
- package/dist/lib/cjs/obsidian/loop.d.cts +2 -2
- package/dist/lib/cjs/obsidian/markdown.cjs +13 -7
- package/dist/lib/cjs/obsidian/menu-event-registrar.cjs +1 -50
- package/dist/lib/cjs/obsidian/menu-event-registrar.d.cts +1 -35
- package/dist/lib/cjs/obsidian/modals/prompt.cjs +1 -1
- package/dist/lib/cjs/obsidian/modals/prompt.d.cts +1 -1
- package/dist/lib/cjs/obsidian/modals/select-item.cjs +1 -1
- package/dist/lib/cjs/obsidian/modals/select-item.d.cts +1 -1
- package/dist/lib/cjs/obsidian/path-settings.cjs +239 -0
- package/dist/lib/cjs/obsidian/plugin/index.cjs +1 -7
- package/dist/lib/cjs/obsidian/plugin/index.d.cts +0 -2
- package/dist/lib/cjs/obsidian/plugin/plugin-settings-tab.cjs +4 -4
- package/dist/lib/cjs/obsidian/plugin/plugin-settings-tab.d.cts +5 -5
- package/dist/lib/cjs/obsidian/plugin/plugin.cjs +40 -34
- package/dist/lib/cjs/obsidian/plugin/plugin.d.cts +16 -13
- package/dist/lib/cjs/obsidian/queue.cjs +1 -1
- package/dist/lib/cjs/obsidian/queue.d.cts +2 -2
- package/dist/lib/cjs/obsidian/rename-delete-handler.cjs +19 -12
- package/dist/lib/cjs/obsidian/setting-components/checkbox-component.cjs +209 -0
- package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/checkbox-component.d.cts +1 -1
- package/dist/lib/cjs/obsidian/setting-components/code-highlighter-component.cjs +356 -0
- package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/code-highlighter-component.d.cts +1 -1
- package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/date-component.cjs +3 -3
- package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/date-time-component.cjs +3 -3
- package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/email-component.cjs +2 -2
- package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/file-component.cjs +2 -2
- package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/index.cjs +1 -1
- package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/month-component.cjs +3 -3
- package/dist/lib/cjs/obsidian/setting-components/multiple-dropdown-component.cjs +241 -0
- package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/multiple-dropdown-component.d.cts +1 -1
- package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/multiple-email-component.cjs +2 -2
- package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/multiple-file-component.cjs +3 -3
- package/dist/lib/cjs/obsidian/setting-components/multiple-text-component.cjs +254 -0
- package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/multiple-text-component.d.cts +1 -1
- package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/number-component.cjs +2 -2
- package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/password-component.cjs +2 -2
- package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/setting-component-wrapper.cjs +4 -4
- package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/telephone-component.cjs +2 -2
- package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/text-based-component.cjs +1 -1
- package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/time-component.cjs +2 -2
- package/dist/lib/cjs/obsidian/setting-components/tri-state-checkbox-component.cjs +210 -0
- package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/tri-state-checkbox-component.d.cts +1 -1
- package/dist/lib/cjs/obsidian/setting-components/typed-dropdown-component.cjs +247 -0
- package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/typed-dropdown-component.d.cts +1 -1
- package/dist/lib/cjs/obsidian/setting-components/typed-multiple-dropdown-component.cjs +249 -0
- package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/typed-multiple-dropdown-component.d.cts +1 -1
- package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/typed-range-text-component.cjs +1 -1
- package/dist/lib/cjs/obsidian/setting-components/typed-text-component.cjs +224 -0
- package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/typed-text-component.d.cts +2 -2
- package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/url-component.cjs +2 -2
- package/dist/lib/cjs/obsidian/setting-components/validator-component.cjs +226 -0
- package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/validator-component.d.cts +1 -1
- package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/value-component-with-change-tracking.cjs +1 -1
- package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/week-component.cjs +3 -3
- package/dist/lib/cjs/obsidian/setting-ex.cjs +21 -21
- package/dist/lib/cjs/obsidian/setting-ex.d.cts +20 -20
- package/dist/lib/cjs/script-utils/bundlers/esbuild-impl/obsidian-plugin-builder.cjs +1 -1
- package/dist/lib/cjs/script-utils/bundlers/esbuild-impl/obsidian-plugin-builder.d.cts +2 -2
- package/dist/lib/cjs/script-utils/linters/eslint-config.cjs +2 -1
- package/dist/lib/cjs/script-utils/linters/eslint-config.d.cts +2 -2
- package/dist/lib/cjs/type.cjs +1 -1
- package/dist/lib/esm/async-events.d.mts +19 -19
- package/dist/lib/esm/async-events.mjs +15 -18
- package/dist/lib/esm/async.d.mts +9 -8
- package/dist/lib/esm/async.mjs +1 -1
- package/dist/lib/esm/function.d.mts +43 -3
- package/dist/lib/esm/function.mjs +1 -1
- package/dist/lib/esm/library.mjs +1 -1
- package/dist/lib/esm/obsidian/@types/dataview/typings/obsidian-ex.d.mts +1 -1
- package/dist/lib/esm/obsidian/async-with-notice.d.mts +2 -2
- package/dist/lib/esm/obsidian/async-with-notice.mjs +1 -1
- package/dist/lib/esm/obsidian/{plugin/components → components}/abort-signal-component.d.mts +2 -2
- package/dist/lib/esm/obsidian/components/abort-signal-component.mjs +59 -0
- package/dist/lib/{cjs/obsidian/components/all-windows-event-handler.d.cts → esm/obsidian/components/all-windows-event-component.d.mts} +6 -7
- package/dist/lib/esm/obsidian/components/all-windows-event-component.mjs +93 -0
- package/dist/lib/esm/obsidian/components/async-component.d.mts +2 -1
- package/dist/lib/esm/obsidian/components/async-component.mjs +3 -2
- package/dist/lib/esm/obsidian/{plugin/components → components}/async-error-handler-component.d.mts +2 -2
- package/dist/lib/esm/obsidian/components/async-error-handler-component.mjs +62 -0
- package/dist/lib/esm/obsidian/components/async-events-component.d.mts +2 -1
- package/dist/lib/esm/obsidian/components/async-events-component.mjs +3 -2
- package/dist/lib/esm/obsidian/{plugin/components → components}/console-debug-component.d.mts +2 -2
- package/dist/lib/esm/obsidian/components/console-debug-component.mjs +56 -0
- package/dist/lib/esm/obsidian/components/disposable-component.d.mts +34 -0
- package/dist/lib/esm/obsidian/components/disposable-component.mjs +50 -0
- package/dist/lib/esm/obsidian/{plugin/components → components}/i18n-component.d.mts +2 -2
- package/dist/lib/esm/obsidian/components/i18n-component.mjs +53 -0
- package/dist/lib/esm/obsidian/components/index.d.mts +13 -2
- package/dist/lib/esm/obsidian/components/index.mjs +27 -5
- package/dist/lib/esm/obsidian/components/layout-ready-component.d.mts +47 -0
- package/dist/lib/esm/obsidian/components/layout-ready-component.mjs +76 -0
- package/dist/lib/esm/obsidian/components/menu-event-registrar-component.d.mts +41 -0
- package/dist/lib/esm/obsidian/components/menu-event-registrar-component.mjs +64 -0
- package/dist/lib/esm/obsidian/components/monkey-around-component.d.mts +113 -0
- package/dist/lib/esm/obsidian/components/monkey-around-component.mjs +87 -0
- package/dist/lib/esm/obsidian/{plugin/components → components}/plugin-context-component.d.mts +2 -2
- package/dist/lib/esm/obsidian/components/plugin-context-component.mjs +61 -0
- package/dist/lib/esm/obsidian/{plugin/components → components}/plugin-notice-component.d.mts +2 -2
- package/dist/lib/esm/obsidian/components/plugin-notice-component.mjs +58 -0
- package/dist/lib/esm/obsidian/{plugin/components → components}/plugin-settings-component.d.mts +6 -21
- package/dist/lib/esm/obsidian/components/plugin-settings-component.mjs +433 -0
- package/dist/lib/esm/obsidian/{plugin/components → components}/plugin-settings-tab-component.d.mts +5 -5
- package/dist/lib/esm/obsidian/components/plugin-settings-tab-component.mjs +50 -0
- package/dist/lib/esm/obsidian/constructors/getDomEventsHandlersConstructor.mjs +20 -16
- package/dist/lib/esm/obsidian/dataview.d.mts +1 -1
- package/dist/lib/esm/obsidian/dataview.mjs +1 -1
- package/dist/lib/esm/obsidian/index.d.mts +2 -1
- package/dist/lib/esm/obsidian/index.mjs +5 -3
- package/dist/lib/esm/obsidian/loop.d.mts +2 -2
- package/dist/lib/esm/obsidian/loop.mjs +1 -1
- package/dist/lib/esm/obsidian/markdown.mjs +13 -7
- package/dist/lib/esm/obsidian/menu-event-registrar.d.mts +1 -35
- package/dist/lib/esm/obsidian/menu-event-registrar.mjs +1 -42
- package/dist/lib/esm/obsidian/modals/prompt.d.mts +1 -1
- package/dist/lib/esm/obsidian/modals/prompt.mjs +1 -1
- package/dist/lib/esm/obsidian/modals/select-item.d.mts +1 -1
- package/dist/lib/esm/obsidian/modals/select-item.mjs +1 -1
- package/dist/lib/esm/obsidian/path-settings.mjs +135 -0
- package/dist/lib/esm/obsidian/plugin/index.d.mts +0 -2
- package/dist/lib/esm/obsidian/plugin/index.mjs +1 -5
- package/dist/lib/esm/obsidian/plugin/plugin-settings-tab.d.mts +5 -5
- package/dist/lib/esm/obsidian/plugin/plugin-settings-tab.mjs +4 -4
- package/dist/lib/esm/obsidian/plugin/plugin.d.mts +16 -13
- package/dist/lib/esm/obsidian/plugin/plugin.mjs +40 -34
- package/dist/lib/esm/obsidian/queue.d.mts +2 -2
- package/dist/lib/esm/obsidian/queue.mjs +1 -1
- package/dist/lib/esm/obsidian/rename-delete-handler.mjs +22 -12
- package/dist/lib/esm/obsidian/{components/setting-components → setting-components}/checkbox-component.d.mts +1 -1
- package/dist/lib/esm/obsidian/setting-components/checkbox-component.mjs +101 -0
- package/dist/lib/esm/obsidian/{components/setting-components → setting-components}/code-highlighter-component.d.mts +1 -1
- package/dist/lib/esm/obsidian/setting-components/code-highlighter-component.mjs +254 -0
- package/dist/lib/esm/obsidian/setting-components/date-component.mjs +62 -0
- package/dist/lib/esm/obsidian/setting-components/date-time-component.mjs +62 -0
- package/dist/lib/esm/obsidian/setting-components/email-component.mjs +72 -0
- package/dist/lib/esm/obsidian/setting-components/file-component.mjs +66 -0
- package/dist/lib/esm/obsidian/setting-components/index.mjs +78 -0
- package/dist/lib/esm/obsidian/setting-components/month-component.mjs +70 -0
- package/dist/lib/esm/obsidian/{components/setting-components → setting-components}/multiple-dropdown-component.d.mts +1 -1
- package/dist/lib/esm/obsidian/setting-components/multiple-dropdown-component.mjs +136 -0
- package/dist/lib/esm/obsidian/setting-components/multiple-email-component.mjs +59 -0
- package/dist/lib/esm/obsidian/setting-components/multiple-file-component.mjs +68 -0
- package/dist/lib/esm/obsidian/{components/setting-components → setting-components}/multiple-text-component.d.mts +1 -1
- package/dist/lib/esm/obsidian/setting-components/multiple-text-component.mjs +149 -0
- package/dist/lib/esm/obsidian/setting-components/number-component.mjs +82 -0
- package/dist/lib/esm/obsidian/setting-components/password-component.mjs +58 -0
- package/dist/lib/esm/obsidian/setting-components/setting-component-wrapper.mjs +45 -0
- package/dist/lib/esm/obsidian/setting-components/telephone-component.mjs +72 -0
- package/dist/lib/esm/obsidian/setting-components/text-based-component.mjs +58 -0
- package/dist/lib/esm/obsidian/setting-components/time-component.mjs +67 -0
- package/dist/lib/esm/obsidian/{components/setting-components → setting-components}/tri-state-checkbox-component.d.mts +1 -1
- package/dist/lib/esm/obsidian/setting-components/tri-state-checkbox-component.mjs +102 -0
- package/dist/lib/esm/obsidian/{components/setting-components → setting-components}/typed-dropdown-component.d.mts +1 -1
- package/dist/lib/esm/obsidian/setting-components/typed-dropdown-component.mjs +142 -0
- package/dist/lib/esm/obsidian/{components/setting-components → setting-components}/typed-multiple-dropdown-component.d.mts +1 -1
- package/dist/lib/esm/obsidian/setting-components/typed-multiple-dropdown-component.mjs +141 -0
- package/dist/lib/esm/obsidian/setting-components/typed-range-text-component.mjs +60 -0
- package/dist/lib/esm/obsidian/{components/setting-components → setting-components}/typed-text-component.d.mts +2 -2
- package/dist/lib/esm/obsidian/setting-components/typed-text-component.mjs +119 -0
- package/dist/lib/esm/obsidian/setting-components/url-component.mjs +72 -0
- package/dist/lib/esm/obsidian/{components/setting-components → setting-components}/validator-component.d.mts +1 -1
- package/dist/lib/esm/obsidian/setting-components/validator-component.mjs +127 -0
- package/dist/lib/esm/obsidian/setting-components/week-component.mjs +70 -0
- package/dist/lib/esm/obsidian/setting-ex.d.mts +20 -20
- package/dist/lib/esm/obsidian/setting-ex.mjs +21 -21
- package/dist/lib/esm/script-utils/bundlers/esbuild-impl/obsidian-plugin-builder.d.mts +2 -2
- package/dist/lib/esm/script-utils/bundlers/esbuild-impl/obsidian-plugin-builder.mjs +1 -1
- package/dist/lib/esm/script-utils/linters/eslint-config.d.mts +2 -2
- package/dist/lib/esm/script-utils/linters/eslint-config.mjs +2 -1
- package/dist/lib/esm/type.mjs +1 -1
- package/obsidian/Components/abort-signal-component/package.json +6 -0
- package/obsidian/Components/{all-windows-event-handler → all-windows-event-component}/package.json +3 -3
- package/obsidian/Components/async-error-handler-component/package.json +6 -0
- package/obsidian/Components/console-debug-component/package.json +6 -0
- package/obsidian/Components/disposable-component/package.json +6 -0
- package/obsidian/Components/i18n-component/package.json +6 -0
- package/obsidian/Components/layout-ready-component/package.json +6 -0
- package/obsidian/Components/menu-event-registrar-component/package.json +6 -0
- package/obsidian/Components/monkey-around-component/package.json +6 -0
- package/obsidian/Components/plugin-context-component/package.json +6 -0
- package/obsidian/Components/plugin-notice-component/package.json +6 -0
- package/obsidian/Components/plugin-settings-component/package.json +6 -0
- package/obsidian/Components/plugin-settings-tab-component/package.json +6 -0
- package/obsidian/path-settings/package.json +6 -0
- package/obsidian/setting-components/checkbox-component/package.json +6 -0
- package/obsidian/setting-components/code-highlighter-component/package.json +6 -0
- package/obsidian/setting-components/date-component/package.json +6 -0
- package/obsidian/setting-components/date-time-component/package.json +6 -0
- package/obsidian/setting-components/email-component/package.json +6 -0
- package/obsidian/setting-components/file-component/package.json +6 -0
- package/obsidian/setting-components/index/package.json +6 -0
- package/obsidian/setting-components/month-component/package.json +6 -0
- package/obsidian/setting-components/multiple-dropdown-component/package.json +6 -0
- package/obsidian/setting-components/multiple-email-component/package.json +6 -0
- package/obsidian/setting-components/multiple-file-component/package.json +6 -0
- package/obsidian/setting-components/multiple-text-component/package.json +6 -0
- package/obsidian/setting-components/number-component/package.json +6 -0
- package/obsidian/setting-components/package.json +6 -0
- package/obsidian/setting-components/password-component/package.json +6 -0
- package/obsidian/setting-components/setting-component-wrapper/package.json +6 -0
- package/obsidian/setting-components/telephone-component/package.json +6 -0
- package/obsidian/setting-components/text-based-component/package.json +6 -0
- package/obsidian/setting-components/time-component/package.json +6 -0
- package/obsidian/setting-components/tri-state-checkbox-component/package.json +6 -0
- package/obsidian/setting-components/typed-dropdown-component/package.json +6 -0
- package/obsidian/setting-components/typed-multiple-dropdown-component/package.json +6 -0
- package/obsidian/setting-components/typed-range-text-component/package.json +6 -0
- package/obsidian/setting-components/typed-text-component/package.json +6 -0
- package/obsidian/setting-components/url-component/package.json +6 -0
- package/obsidian/setting-components/validator-component/package.json +6 -0
- package/obsidian/setting-components/value-component-with-change-tracking/package.json +6 -0
- package/obsidian/setting-components/week-component/package.json +6 -0
- package/package.json +23 -43
- package/dist/lib/cjs/obsidian/components/all-windows-event-handler.cjs +0 -196
- package/dist/lib/cjs/obsidian/components/setting-components/checkbox-component.cjs +0 -209
- package/dist/lib/cjs/obsidian/components/setting-components/code-highlighter-component.cjs +0 -356
- package/dist/lib/cjs/obsidian/components/setting-components/multiple-dropdown-component.cjs +0 -241
- package/dist/lib/cjs/obsidian/components/setting-components/multiple-text-component.cjs +0 -254
- package/dist/lib/cjs/obsidian/components/setting-components/tri-state-checkbox-component.cjs +0 -210
- package/dist/lib/cjs/obsidian/components/setting-components/typed-dropdown-component.cjs +0 -247
- package/dist/lib/cjs/obsidian/components/setting-components/typed-multiple-dropdown-component.cjs +0 -249
- package/dist/lib/cjs/obsidian/components/setting-components/typed-text-component.cjs +0 -224
- package/dist/lib/cjs/obsidian/components/setting-components/validator-component.cjs +0 -226
- package/dist/lib/cjs/obsidian/monkey-around.cjs +0 -177
- package/dist/lib/cjs/obsidian/monkey-around.d.cts +0 -62
- package/dist/lib/cjs/obsidian/plugin/components/index.cjs +0 -170
- package/dist/lib/cjs/obsidian/plugin/components/index.d.cts +0 -9
- package/dist/lib/cjs/obsidian/plugin/components/layout-ready-component.cjs +0 -124
- package/dist/lib/cjs/obsidian/plugin/components/layout-ready-component.d.cts +0 -18
- package/dist/lib/cjs/obsidian/plugin/components/plugin-settings-component.cjs +0 -563
- package/dist/lib/cjs/obsidian/plugin/path-settings.cjs +0 -239
- package/dist/lib/esm/obsidian/components/all-windows-event-handler.mjs +0 -88
- package/dist/lib/esm/obsidian/components/setting-components/checkbox-component.mjs +0 -101
- package/dist/lib/esm/obsidian/components/setting-components/code-highlighter-component.mjs +0 -254
- package/dist/lib/esm/obsidian/components/setting-components/date-component.mjs +0 -62
- package/dist/lib/esm/obsidian/components/setting-components/date-time-component.mjs +0 -62
- package/dist/lib/esm/obsidian/components/setting-components/email-component.mjs +0 -72
- package/dist/lib/esm/obsidian/components/setting-components/file-component.mjs +0 -66
- package/dist/lib/esm/obsidian/components/setting-components/index.mjs +0 -78
- package/dist/lib/esm/obsidian/components/setting-components/month-component.mjs +0 -70
- package/dist/lib/esm/obsidian/components/setting-components/multiple-dropdown-component.mjs +0 -136
- package/dist/lib/esm/obsidian/components/setting-components/multiple-email-component.mjs +0 -59
- package/dist/lib/esm/obsidian/components/setting-components/multiple-file-component.mjs +0 -68
- package/dist/lib/esm/obsidian/components/setting-components/multiple-text-component.mjs +0 -149
- package/dist/lib/esm/obsidian/components/setting-components/number-component.mjs +0 -82
- package/dist/lib/esm/obsidian/components/setting-components/password-component.mjs +0 -58
- package/dist/lib/esm/obsidian/components/setting-components/setting-component-wrapper.mjs +0 -45
- package/dist/lib/esm/obsidian/components/setting-components/telephone-component.mjs +0 -72
- package/dist/lib/esm/obsidian/components/setting-components/text-based-component.mjs +0 -58
- package/dist/lib/esm/obsidian/components/setting-components/time-component.mjs +0 -67
- package/dist/lib/esm/obsidian/components/setting-components/tri-state-checkbox-component.mjs +0 -102
- package/dist/lib/esm/obsidian/components/setting-components/typed-dropdown-component.mjs +0 -142
- package/dist/lib/esm/obsidian/components/setting-components/typed-multiple-dropdown-component.mjs +0 -141
- package/dist/lib/esm/obsidian/components/setting-components/typed-range-text-component.mjs +0 -60
- package/dist/lib/esm/obsidian/components/setting-components/typed-text-component.mjs +0 -119
- package/dist/lib/esm/obsidian/components/setting-components/url-component.mjs +0 -72
- package/dist/lib/esm/obsidian/components/setting-components/validator-component.mjs +0 -127
- package/dist/lib/esm/obsidian/components/setting-components/week-component.mjs +0 -70
- package/dist/lib/esm/obsidian/monkey-around.d.mts +0 -62
- package/dist/lib/esm/obsidian/monkey-around.mjs +0 -66
- package/dist/lib/esm/obsidian/plugin/components/abort-signal-component.mjs +0 -59
- package/dist/lib/esm/obsidian/plugin/components/async-error-handler-component.mjs +0 -62
- package/dist/lib/esm/obsidian/plugin/components/console-debug-component.mjs +0 -56
- package/dist/lib/esm/obsidian/plugin/components/i18n-component.mjs +0 -53
- package/dist/lib/esm/obsidian/plugin/components/index.d.mts +0 -9
- package/dist/lib/esm/obsidian/plugin/components/index.mjs +0 -44
- package/dist/lib/esm/obsidian/plugin/components/layout-ready-component.d.mts +0 -18
- package/dist/lib/esm/obsidian/plugin/components/layout-ready-component.mjs +0 -24
- package/dist/lib/esm/obsidian/plugin/components/plugin-context-component.mjs +0 -61
- package/dist/lib/esm/obsidian/plugin/components/plugin-notice-component.mjs +0 -60
- package/dist/lib/esm/obsidian/plugin/components/plugin-settings-component.mjs +0 -461
- package/dist/lib/esm/obsidian/plugin/components/plugin-settings-tab-component.mjs +0 -49
- package/dist/lib/esm/obsidian/plugin/path-settings.mjs +0 -135
- package/obsidian/Components/setting-components/checkbox-component/package.json +0 -6
- package/obsidian/Components/setting-components/code-highlighter-component/package.json +0 -6
- package/obsidian/Components/setting-components/date-component/package.json +0 -6
- package/obsidian/Components/setting-components/date-time-component/package.json +0 -6
- package/obsidian/Components/setting-components/email-component/package.json +0 -6
- package/obsidian/Components/setting-components/file-component/package.json +0 -6
- package/obsidian/Components/setting-components/index/package.json +0 -6
- package/obsidian/Components/setting-components/month-component/package.json +0 -6
- package/obsidian/Components/setting-components/multiple-dropdown-component/package.json +0 -6
- package/obsidian/Components/setting-components/multiple-email-component/package.json +0 -6
- package/obsidian/Components/setting-components/multiple-file-component/package.json +0 -6
- package/obsidian/Components/setting-components/multiple-text-component/package.json +0 -6
- package/obsidian/Components/setting-components/number-component/package.json +0 -6
- package/obsidian/Components/setting-components/package.json +0 -6
- package/obsidian/Components/setting-components/password-component/package.json +0 -6
- package/obsidian/Components/setting-components/setting-component-wrapper/package.json +0 -6
- package/obsidian/Components/setting-components/telephone-component/package.json +0 -6
- package/obsidian/Components/setting-components/text-based-component/package.json +0 -6
- package/obsidian/Components/setting-components/time-component/package.json +0 -6
- package/obsidian/Components/setting-components/tri-state-checkbox-component/package.json +0 -6
- package/obsidian/Components/setting-components/typed-dropdown-component/package.json +0 -6
- package/obsidian/Components/setting-components/typed-multiple-dropdown-component/package.json +0 -6
- package/obsidian/Components/setting-components/typed-range-text-component/package.json +0 -6
- package/obsidian/Components/setting-components/typed-text-component/package.json +0 -6
- package/obsidian/Components/setting-components/url-component/package.json +0 -6
- package/obsidian/Components/setting-components/validator-component/package.json +0 -6
- package/obsidian/Components/setting-components/value-component-with-change-tracking/package.json +0 -6
- package/obsidian/Components/setting-components/week-component/package.json +0 -6
- package/obsidian/Plugin/components/abort-signal-component/package.json +0 -6
- package/obsidian/Plugin/components/async-error-handler-component/package.json +0 -6
- package/obsidian/Plugin/components/console-debug-component/package.json +0 -6
- package/obsidian/Plugin/components/i18n-component/package.json +0 -6
- package/obsidian/Plugin/components/index/package.json +0 -6
- package/obsidian/Plugin/components/layout-ready-component/package.json +0 -6
- package/obsidian/Plugin/components/package.json +0 -6
- package/obsidian/Plugin/components/plugin-context-component/package.json +0 -6
- package/obsidian/Plugin/components/plugin-notice-component/package.json +0 -6
- package/obsidian/Plugin/components/plugin-settings-component/package.json +0 -6
- package/obsidian/Plugin/components/plugin-settings-tab-component/package.json +0 -6
- package/obsidian/Plugin/path-settings/package.json +0 -6
- package/obsidian/monkey-around/package.json +0 -6
- /package/dist/lib/cjs/obsidian/{plugin/path-settings.d.cts → path-settings.d.cts} +0 -0
- /package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/date-component.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/date-time-component.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/email-component.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/file-component.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/index.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/month-component.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/multiple-email-component.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/multiple-file-component.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/number-component.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/password-component.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/setting-component-wrapper.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/telephone-component.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/text-based-component.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/time-component.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/typed-range-text-component.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/url-component.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/value-component-with-change-tracking.d.cts +0 -0
- /package/dist/lib/cjs/obsidian/{components/setting-components → setting-components}/week-component.d.cts +0 -0
- /package/dist/lib/esm/obsidian/{plugin/path-settings.d.mts → path-settings.d.mts} +0 -0
- /package/dist/lib/esm/obsidian/{components/setting-components → setting-components}/date-component.d.mts +0 -0
- /package/dist/lib/esm/obsidian/{components/setting-components → setting-components}/date-time-component.d.mts +0 -0
- /package/dist/lib/esm/obsidian/{components/setting-components → setting-components}/email-component.d.mts +0 -0
- /package/dist/lib/esm/obsidian/{components/setting-components → setting-components}/file-component.d.mts +0 -0
- /package/dist/lib/esm/obsidian/{components/setting-components → setting-components}/index.d.mts +0 -0
- /package/dist/lib/esm/obsidian/{components/setting-components → setting-components}/month-component.d.mts +0 -0
- /package/dist/lib/esm/obsidian/{components/setting-components → setting-components}/multiple-email-component.d.mts +0 -0
- /package/dist/lib/esm/obsidian/{components/setting-components → setting-components}/multiple-file-component.d.mts +0 -0
- /package/dist/lib/esm/obsidian/{components/setting-components → setting-components}/number-component.d.mts +0 -0
- /package/dist/lib/esm/obsidian/{components/setting-components → setting-components}/password-component.d.mts +0 -0
- /package/dist/lib/esm/obsidian/{components/setting-components → setting-components}/setting-component-wrapper.d.mts +0 -0
- /package/dist/lib/esm/obsidian/{components/setting-components → setting-components}/telephone-component.d.mts +0 -0
- /package/dist/lib/esm/obsidian/{components/setting-components → setting-components}/text-based-component.d.mts +0 -0
- /package/dist/lib/esm/obsidian/{components/setting-components → setting-components}/time-component.d.mts +0 -0
- /package/dist/lib/esm/obsidian/{components/setting-components → setting-components}/typed-range-text-component.d.mts +0 -0
- /package/dist/lib/esm/obsidian/{components/setting-components → setting-components}/url-component.d.mts +0 -0
- /package/dist/lib/esm/obsidian/{components/setting-components → setting-components}/value-component-with-change-tracking.d.mts +0 -0
- /package/dist/lib/esm/obsidian/{components/setting-components → setting-components}/value-component-with-change-tracking.mjs +0 -0
- /package/dist/lib/esm/obsidian/{components/setting-components → setting-components}/week-component.d.mts +0 -0
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file
|
|
3
|
-
*
|
|
4
|
-
* Improved type-safe wrapper of {@link https://www.npmjs.com/package/monkey-around} library.
|
|
5
|
-
*/
|
|
6
|
-
import type { Component } from 'obsidian';
|
|
7
|
-
import type { ConditionalKeys } from 'type-fest';
|
|
8
|
-
/**
|
|
9
|
-
* A type of the factories to apply to the object.
|
|
10
|
-
*
|
|
11
|
-
* @typeParam Obj - The object to patch.
|
|
12
|
-
*/
|
|
13
|
-
export type Factories<Obj extends object> = Partial<{
|
|
14
|
-
[Key in ConditionalKeys<Obj, Function | undefined>]: WrapperFactory<Extract<Obj[Key], Function | undefined>>;
|
|
15
|
-
}>;
|
|
16
|
-
type Uninstaller = () => void;
|
|
17
|
-
type WrapperFactory<T extends Function | undefined> = (next: T) => T;
|
|
18
|
-
/**
|
|
19
|
-
* Applies a patch to the object.
|
|
20
|
-
* Better strongly-typed version of `monkey-around`.
|
|
21
|
-
*
|
|
22
|
-
* @typeParam Obj - The object to patch.
|
|
23
|
-
* @param obj - The object to patch.
|
|
24
|
-
* @param factories - The factories to apply to the object.
|
|
25
|
-
* @returns The uninstaller that removes the patch when called.
|
|
26
|
-
*/
|
|
27
|
-
export declare function around<Obj extends object>(obj: Obj, factories: Factories<Obj>): Uninstaller;
|
|
28
|
-
/**
|
|
29
|
-
* Invokes a function with a patch applied to the object.
|
|
30
|
-
* A patch is automatically removed when the function returns.
|
|
31
|
-
*
|
|
32
|
-
* @typeParam Obj - The object to patch.
|
|
33
|
-
* @typeParam Result - The type of the result of the function.
|
|
34
|
-
* @param obj - The object to patch.
|
|
35
|
-
* @param factories - The factories to apply to the object.
|
|
36
|
-
* @param fn - The function to invoke.
|
|
37
|
-
* @returns The result of the function.
|
|
38
|
-
*/
|
|
39
|
-
export declare function invokeWithPatch<Obj extends object, Result>(obj: Obj, factories: Factories<Obj>, fn: () => Result): Result;
|
|
40
|
-
/**
|
|
41
|
-
* Invokes an async function with a patch applied to the object.
|
|
42
|
-
* A patch is automatically removed when the function returns.
|
|
43
|
-
*
|
|
44
|
-
* @typeParam Obj - The object to patch.
|
|
45
|
-
* @typeParam Result - The type of the result of the function.
|
|
46
|
-
* @param obj - The object to patch.
|
|
47
|
-
* @param factories - The factories to apply to the object.
|
|
48
|
-
* @param fn - The function to invoke.
|
|
49
|
-
* @returns The result of the function.
|
|
50
|
-
*/
|
|
51
|
-
export declare function invokeWithPatchAsync<Obj extends object, Result>(obj: Obj, factories: Factories<Obj>, fn: () => Promise<Result>): Promise<Result>;
|
|
52
|
-
/**
|
|
53
|
-
* Registers a patch to the object.
|
|
54
|
-
*
|
|
55
|
-
* @typeParam Obj - The object to patch.
|
|
56
|
-
* @param component - The component to register the patch to.
|
|
57
|
-
* @param obj - The object to patch.
|
|
58
|
-
* @param factories - The factories to apply to the object.
|
|
59
|
-
* @returns The uninstaller.
|
|
60
|
-
*/
|
|
61
|
-
export declare function registerPatch<Obj extends object>(component: Component, obj: Obj, factories: Factories<Obj>): Uninstaller;
|
|
62
|
-
export {};
|
|
@@ -1,66 +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 initEsm() {
|
|
7
|
-
// eslint-disable-next-line obsidianmd/no-global-this -- Actively use globalThis.
|
|
8
|
-
if (globalThis.process) {
|
|
9
|
-
return;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const browserProcess = {
|
|
13
|
-
browser: true,
|
|
14
|
-
cwd() {
|
|
15
|
-
return '/';
|
|
16
|
-
},
|
|
17
|
-
env: {},
|
|
18
|
-
platform: 'android'
|
|
19
|
-
};
|
|
20
|
-
// eslint-disable-next-line obsidianmd/no-global-this -- Actively use globalThis.
|
|
21
|
-
globalThis.process = browserProcess;
|
|
22
|
-
})();
|
|
23
|
-
|
|
24
|
-
import { around as originalAround } from "monkey-around";
|
|
25
|
-
function around(obj, factories) {
|
|
26
|
-
return originalAround(obj, factories);
|
|
27
|
-
}
|
|
28
|
-
function invokeWithPatch(obj, factories, fn) {
|
|
29
|
-
const uninstaller = around(obj, factories);
|
|
30
|
-
try {
|
|
31
|
-
return fn();
|
|
32
|
-
} finally {
|
|
33
|
-
uninstaller();
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
async function invokeWithPatchAsync(obj, factories, fn) {
|
|
37
|
-
const uninstaller = around(obj, factories);
|
|
38
|
-
try {
|
|
39
|
-
return await fn();
|
|
40
|
-
} finally {
|
|
41
|
-
uninstaller();
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
function registerPatch(component, obj, factories) {
|
|
45
|
-
const uninstaller = around(obj, factories);
|
|
46
|
-
let isUninstalled = false;
|
|
47
|
-
function uninstallerWrapper() {
|
|
48
|
-
if (isUninstalled) {
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
try {
|
|
52
|
-
uninstaller();
|
|
53
|
-
} finally {
|
|
54
|
-
isUninstalled = true;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
component.register(uninstallerWrapper);
|
|
58
|
-
return uninstaller;
|
|
59
|
-
}
|
|
60
|
-
export {
|
|
61
|
-
around,
|
|
62
|
-
invokeWithPatch,
|
|
63
|
-
invokeWithPatchAsync,
|
|
64
|
-
registerPatch
|
|
65
|
-
};
|
|
66
|
-
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vLi4vc3JjL29ic2lkaWFuL21vbmtleS1hcm91bmQudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbIi8qKlxuICogQGZpbGVcbiAqXG4gKiBJbXByb3ZlZCB0eXBlLXNhZmUgd3JhcHBlciBvZiB7QGxpbmsgaHR0cHM6Ly93d3cubnBtanMuY29tL3BhY2thZ2UvbW9ua2V5LWFyb3VuZH0gbGlicmFyeS5cbiAqL1xuXG5pbXBvcnQgdHlwZSB7IENvbXBvbmVudCB9IGZyb20gJ29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QUFrQyxXQUFzQixLQUFVLFdBQXdDO0FBQ3hILFFBQU0sY0FBYyxPQUFPLEtBQUssU0FBUztBQUN6QyxNQUFJLGdCQUFnQjtBQUVwQixXQUFTLHFCQUEyQjtBQUNsQyxRQUFJLGVBQWU7QUFDakI7QUFBQSxJQUNGO0FBQ0EsUUFBSTtBQUNGLGtCQUFZO0FBQUEsSUFDZCxVQUFFO0FBQ0Esc0JBQWdCO0FBQUEsSUFDbEI7QUFBQSxFQUNGO0FBRUEsWUFBVSxTQUFTLGtCQUFrQjtBQUNyQyxTQUFPO0FBQ1Q7IiwKICAibmFtZXMiOiBbXQp9Cg==
|
|
@@ -1,59 +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 initEsm() {
|
|
7
|
-
// eslint-disable-next-line obsidianmd/no-global-this -- Actively use globalThis.
|
|
8
|
-
if (globalThis.process) {
|
|
9
|
-
return;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const browserProcess = {
|
|
13
|
-
browser: true,
|
|
14
|
-
cwd() {
|
|
15
|
-
return '/';
|
|
16
|
-
},
|
|
17
|
-
env: {},
|
|
18
|
-
platform: 'android'
|
|
19
|
-
};
|
|
20
|
-
// eslint-disable-next-line obsidianmd/no-global-this -- Actively use globalThis.
|
|
21
|
-
globalThis.process = browserProcess;
|
|
22
|
-
})();
|
|
23
|
-
|
|
24
|
-
import { Component } from "obsidian";
|
|
25
|
-
import { SilentError } from "../../../error.mjs";
|
|
26
|
-
class AbortSignalComponent extends Component {
|
|
27
|
-
/**
|
|
28
|
-
* Creates a new abort signal component.
|
|
29
|
-
*
|
|
30
|
-
* @param pluginId - The plugin ID (used in the abort reason message).
|
|
31
|
-
*/
|
|
32
|
-
constructor(pluginId) {
|
|
33
|
-
super();
|
|
34
|
-
this.pluginId = pluginId;
|
|
35
|
-
this.abortController = new AbortController();
|
|
36
|
-
this.abortSignal = this.abortController.signal;
|
|
37
|
-
}
|
|
38
|
-
pluginId;
|
|
39
|
-
/**
|
|
40
|
-
* The singleton key for the {@link AbortSignalComponent} class.
|
|
41
|
-
*/
|
|
42
|
-
static COMPONENT_KEY = Symbol(AbortSignalComponent.name);
|
|
43
|
-
/**
|
|
44
|
-
* The abort signal.
|
|
45
|
-
*/
|
|
46
|
-
abortSignal;
|
|
47
|
-
abortController;
|
|
48
|
-
/**
|
|
49
|
-
* Aborts the signal on unload.
|
|
50
|
-
*/
|
|
51
|
-
onunload() {
|
|
52
|
-
super.onunload();
|
|
53
|
-
this.abortController.abort(new SilentError(`Plugin ${this.pluginId} had been unloaded`));
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
export {
|
|
57
|
-
AbortSignalComponent
|
|
58
|
-
};
|
|
59
|
-
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL29ic2lkaWFuL3BsdWdpbi9jb21wb25lbnRzL2Fib3J0LXNpZ25hbC1jb21wb25lbnQudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbIi8qKlxuICogQGZpbGVcbiAqXG4gKiBDb21wb25lbnQgdGhhdCBwcm92aWRlcyBhbiBBYm9ydFNpZ25hbCBmb3IgY2FuY2VsbGluZyBsb25nLXJ1bm5pbmcgb3BlcmF0aW9ucyBvbiBwbHVnaW4gdW5sb2FkLlxuICovXG5cbmltcG9ydCB7IENvbXBvbmVudCB9IGZyb20gJ29ic2lkaWFuJztcblxuaW1wb3J0IHsgU2lsZW50RXJyb3IgfSBmcm9tICcuLi8uLi8uLi9lcnJvci50cyc7XG5cbi8qKlxuICogUHJvdmlkZXMgYW4ge0BsaW5rIEFib3J0U2lnbmFsfSB0aGF0IGlzIGFib3J0ZWQgd2hlbiB0aGUgY29tcG9uZW50IGlzIHVubG9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JvcnQobmV3IFNpbGVudEVycm9yKGBQbHVnaW4gJHt0aGlzLnBsdWdpbklkfSBoYWQgYmVlbiB1bmxvYWRlZGApKTtcbiAgfVxufVxuIl0sCiAgIm1hcHBpbmdzIjogIjs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFNQSxTQUFTLGlCQUFpQjtBQUUxQixTQUFTLG1CQUFtQjtBQUtyQixNQUFNLDZCQUE2QixVQUFVO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBLEVBa0IzQyxZQUE2QixVQUFrQjtBQUNwRCxVQUFNO0FBRDRCO0FBRWxDLFNBQUssa0JBQWtCLElBQUksZ0JBQWdCO0FBQzNDLFNBQUssY0FBYyxLQUFLLGdCQUFnQjtBQUFBLEVBQzFDO0FBQUEsRUFKb0M7QUFBQTtBQUFBO0FBQUE7QUFBQSxFQWRwQyxPQUF1QixnQkFBZ0IsT0FBTyxxQkFBcUIsSUFBSTtBQUFBO0FBQUE7QUFBQTtBQUFBLEVBS3ZEO0FBQUEsRUFFQztBQUFBO0FBQUE7QUFBQTtBQUFBLEVBZ0JELFdBQWlCO0FBQy9CLFVBQU0sU0FBUztBQUNmLFNBQUssZ0JBQWdCLE1BQU0sSUFBSSxZQUFZLFVBQVUsS0FBSyxRQUFRLG9CQUFvQixDQUFDO0FBQUEsRUFDekY7QUFDRjsiLAogICJuYW1lcyI6IFtdCn0K
|
|
@@ -1,62 +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 initEsm() {
|
|
7
|
-
// eslint-disable-next-line obsidianmd/no-global-this -- Actively use globalThis.
|
|
8
|
-
if (globalThis.process) {
|
|
9
|
-
return;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const browserProcess = {
|
|
13
|
-
browser: true,
|
|
14
|
-
cwd() {
|
|
15
|
-
return '/';
|
|
16
|
-
},
|
|
17
|
-
env: {},
|
|
18
|
-
platform: 'android'
|
|
19
|
-
};
|
|
20
|
-
// eslint-disable-next-line obsidianmd/no-global-this -- Actively use globalThis.
|
|
21
|
-
globalThis.process = browserProcess;
|
|
22
|
-
})();
|
|
23
|
-
|
|
24
|
-
import { Component } from "obsidian";
|
|
25
|
-
import { registerAsyncErrorEventHandler } from "../../../error.mjs";
|
|
26
|
-
import { t } from "../../i18n/i18n.mjs";
|
|
27
|
-
import { PluginNoticeComponent } from "./plugin-notice-component.mjs";
|
|
28
|
-
class AsyncErrorHandlerComponent extends Component {
|
|
29
|
-
/**
|
|
30
|
-
* Creates a new async error handler component.
|
|
31
|
-
*
|
|
32
|
-
* @param noticeComponent - The notice component used to display error messages.
|
|
33
|
-
*/
|
|
34
|
-
constructor(noticeComponent) {
|
|
35
|
-
super();
|
|
36
|
-
this.noticeComponent = noticeComponent;
|
|
37
|
-
}
|
|
38
|
-
noticeComponent;
|
|
39
|
-
/**
|
|
40
|
-
* The singleton key for the {@link AsyncErrorHandlerComponent} class.
|
|
41
|
-
*/
|
|
42
|
-
static COMPONENT_KEY = Symbol(AsyncErrorHandlerComponent.name);
|
|
43
|
-
/**
|
|
44
|
-
* Registers the error handler.
|
|
45
|
-
*/
|
|
46
|
-
onload() {
|
|
47
|
-
super.onload();
|
|
48
|
-
this.register(registerAsyncErrorEventHandler(this.handleAsyncError.bind(this)));
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Called when an async error occurs.
|
|
52
|
-
*
|
|
53
|
-
* @param _asyncError - The async error.
|
|
54
|
-
*/
|
|
55
|
-
handleAsyncError(_asyncError) {
|
|
56
|
-
this.noticeComponent.showNotice(t(($) => $.obsidianDevUtils.notices.unhandledError));
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
export {
|
|
60
|
-
AsyncErrorHandlerComponent
|
|
61
|
-
};
|
|
62
|
-
//# sourceMappingURL=data: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FLL0IsTUFBTSxtQ0FBbUMsVUFBVTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQSxFQVdqRCxZQUE2QixpQkFBd0M7QUFDMUUsVUFBTTtBQUQ0QjtBQUFBLEVBRXBDO0FBQUEsRUFGb0M7QUFBQTtBQUFBO0FBQUE7QUFBQSxFQVBwQyxPQUF1QixnQkFBZ0IsT0FBTywyQkFBMkIsSUFBSTtBQUFBO0FBQUE7QUFBQTtBQUFBLEVBYzdELFNBQWU7QUFDN0IsVUFBTSxPQUFPO0FBQ2IsU0FBSyxTQUFTLCtCQUErQixLQUFLLGlCQUFpQixLQUFLLElBQUksQ0FBQyxDQUFDO0FBQUEsRUFDaEY7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUEsRUFPVSxpQkFBaUIsYUFBNEI7QUFDckQsU0FBSyxnQkFBZ0IsV0FBVyxFQUFFLENBQUMsTUFBTSxFQUFFLGlCQUFpQixRQUFRLGNBQWMsQ0FBQztBQUFBLEVBQ3JGO0FBQ0Y7IiwKICAibmFtZXMiOiBbXQp9Cg==
|
|
@@ -1,56 +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 initEsm() {
|
|
7
|
-
// eslint-disable-next-line obsidianmd/no-global-this -- Actively use globalThis.
|
|
8
|
-
if (globalThis.process) {
|
|
9
|
-
return;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const browserProcess = {
|
|
13
|
-
browser: true,
|
|
14
|
-
cwd() {
|
|
15
|
-
return '/';
|
|
16
|
-
},
|
|
17
|
-
env: {},
|
|
18
|
-
platform: 'android'
|
|
19
|
-
};
|
|
20
|
-
// eslint-disable-next-line obsidianmd/no-global-this -- Actively use globalThis.
|
|
21
|
-
globalThis.process = browserProcess;
|
|
22
|
-
})();
|
|
23
|
-
|
|
24
|
-
import { Component } from "obsidian";
|
|
25
|
-
import { getDebugger } from "../../../debug.mjs";
|
|
26
|
-
class ConsoleDebugComponent extends Component {
|
|
27
|
-
/**
|
|
28
|
-
* Creates a new console debug component.
|
|
29
|
-
*
|
|
30
|
-
* @param pluginId - The plugin ID (used as the debugger namespace).
|
|
31
|
-
*/
|
|
32
|
-
constructor(pluginId) {
|
|
33
|
-
super();
|
|
34
|
-
this.pluginId = pluginId;
|
|
35
|
-
}
|
|
36
|
-
pluginId;
|
|
37
|
-
/**
|
|
38
|
-
* The singleton key for the {@link ConsoleDebugComponent} class.
|
|
39
|
-
*/
|
|
40
|
-
static COMPONENT_KEY = Symbol(ConsoleDebugComponent.name);
|
|
41
|
-
/**
|
|
42
|
-
* Logs a message to the console under the plugin's debugger namespace.
|
|
43
|
-
*
|
|
44
|
-
* @param message - The message to log.
|
|
45
|
-
* @param args - Additional arguments to log.
|
|
46
|
-
*/
|
|
47
|
-
debug(message, ...args) {
|
|
48
|
-
const FRAMES_TO_SKIP = 1;
|
|
49
|
-
const pluginDebugger = getDebugger(this.pluginId, FRAMES_TO_SKIP);
|
|
50
|
-
pluginDebugger(message, ...args);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
export {
|
|
54
|
-
ConsoleDebugComponent
|
|
55
|
-
};
|
|
56
|
-
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL29ic2lkaWFuL3BsdWdpbi9jb21wb25lbnRzL2NvbnNvbGUtZGVidWctY29tcG9uZW50LnRzIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyIvKipcbiAqIEBmaWxlXG4gKlxuICogQ29tcG9uZW50IHRoYXQgcHJvdmlkZXMgbmFtZXNwYWNlZCBjb25zb2xlIGRlYnVnIGxvZ2dpbmcuXG4gKi9cblxuaW1wb3J0IHsgQ29tcG9uZW50IH0gZnJvbSAnb2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tQkFBZSxTQUFTLEdBQUcsSUFBSTtBQUFBLEVBQ2pDO0FBQ0Y7IiwKICAibmFtZXMiOiBbXQp9Cg==
|
|
@@ -1,53 +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 initEsm() {
|
|
7
|
-
// eslint-disable-next-line obsidianmd/no-global-this -- Actively use globalThis.
|
|
8
|
-
if (globalThis.process) {
|
|
9
|
-
return;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const browserProcess = {
|
|
13
|
-
browser: true,
|
|
14
|
-
cwd() {
|
|
15
|
-
return '/';
|
|
16
|
-
},
|
|
17
|
-
env: {},
|
|
18
|
-
platform: 'android'
|
|
19
|
-
};
|
|
20
|
-
// eslint-disable-next-line obsidianmd/no-global-this -- Actively use globalThis.
|
|
21
|
-
globalThis.process = browserProcess;
|
|
22
|
-
})();
|
|
23
|
-
|
|
24
|
-
import { AsyncComponentBase } from "../../components/async-component.mjs";
|
|
25
|
-
import { initI18N } from "../../i18n/i18n.mjs";
|
|
26
|
-
import { defaultTranslationsMap } from "../../i18n/locales/translations-map.mjs";
|
|
27
|
-
class I18nComponent extends AsyncComponentBase {
|
|
28
|
-
/**
|
|
29
|
-
* Creates a new i18n component.
|
|
30
|
-
*
|
|
31
|
-
* @param translationsMap - The translations map. Defaults to the built-in translations.
|
|
32
|
-
*/
|
|
33
|
-
constructor(translationsMap = defaultTranslationsMap) {
|
|
34
|
-
super();
|
|
35
|
-
this.translationsMap = translationsMap;
|
|
36
|
-
}
|
|
37
|
-
translationsMap;
|
|
38
|
-
/**
|
|
39
|
-
* The singleton key for the {@link I18nComponent} class.
|
|
40
|
-
*/
|
|
41
|
-
static COMPONENT_KEY = Symbol(I18nComponent.name);
|
|
42
|
-
/**
|
|
43
|
-
* Initializes i18n.
|
|
44
|
-
*/
|
|
45
|
-
async onload() {
|
|
46
|
-
await super.onload();
|
|
47
|
-
await initI18N(this.translationsMap);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
export {
|
|
51
|
-
I18nComponent
|
|
52
|
-
};
|
|
53
|
-
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL29ic2lkaWFuL3BsdWdpbi9jb21wb25lbnRzL2kxOG4tY29tcG9uZW50LnRzIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyIvKipcbiAqIEBmaWxlXG4gKlxuICogQ29tcG9uZW50IHRoYXQgaW5pdGlhbGl6ZXMgaTE4biB0cmFuc2xhdGlvbnMuXG4gKi9cblxuaW1wb3J0IHR5cGUgeyBUcmFuc2xhdGlvbnNNYXAgfSBmcm9tICcuLi8uLi9pMThuL2kxOG4udHMnO1xuXG5pbXBvcnQgeyBBc3luY0NvbXBvbmVudEJhc2UgfSBmcm9tICcuLi8uLi9jb21wb25lbnRzL2FzeW5jLWNvbXBvbmVudC50cyc7XG5pbXBvcnQgeyBpbml0STE4TiB9IGZyb20gJy4uLy4uL2kxOG4vaTE4bi50cyc7XG5pbXBvcnQgeyBkZWZhdWx0VHJhbnNsYXRpb25zTWFwIH0gZnJvbSAnLi4vLi4vaTE4bi9sb2NhbGVzL3RyYW5zbGF0aW9ucy1tYXAudHMnO1xuXG4vKipcbiAqIEluaXRpYWxpemVzIHRoZSBpMThuIG1vZHVsZSB3aXRoIHRoZSBwcm92aWRlZCB0cmFuc2xhdGlvbnMgbWFwLlxuICovXG5leHBvcnQgY2xhc3MgSTE4bkNvbXBvbmVudCBleHRlbmRzIEFzeW5jQ29tcG9uZW50QmFzZSB7XG4gIC8qKlxuICAgKiBUaGUgc2luZ2xldG9uIGtleSBmb3IgdGhlIHtAbGluayBJMThuQ29tcG9uZW50fSBjbGFzcy5cbiAgICovXG4gIHB1YmxpYyBzdGF0a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LFNBQXdCO0FBQzVDLFVBQU0sTUFBTSxPQUFPO0FBQ25CLFVBQU0sU0FBUyxLQUFLLGVBQWU7QUFBQSxFQUNyQztBQUNGOyIsCiAgIm5hbWVzIjogW10KfQo=
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export * as 'abort-signal-component' from './abort-signal-component.mjs';
|
|
2
|
-
export * as 'async-error-handler-component' from './async-error-handler-component.mjs';
|
|
3
|
-
export * as 'console-debug-component' from './console-debug-component.mjs';
|
|
4
|
-
export * as 'i18n-component' from './i18n-component.mjs';
|
|
5
|
-
export * as 'layout-ready-component' from './layout-ready-component.mjs';
|
|
6
|
-
export * as 'plugin-context-component' from './plugin-context-component.mjs';
|
|
7
|
-
export * as 'plugin-notice-component' from './plugin-notice-component.mjs';
|
|
8
|
-
export * as 'plugin-settings-component' from './plugin-settings-component.mjs';
|
|
9
|
-
export * as 'plugin-settings-tab-component' from './plugin-settings-tab-component.mjs';
|
|
@@ -1,44 +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 initEsm() {
|
|
7
|
-
// eslint-disable-next-line obsidianmd/no-global-this -- Actively use globalThis.
|
|
8
|
-
if (globalThis.process) {
|
|
9
|
-
return;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const browserProcess = {
|
|
13
|
-
browser: true,
|
|
14
|
-
cwd() {
|
|
15
|
-
return '/';
|
|
16
|
-
},
|
|
17
|
-
env: {},
|
|
18
|
-
platform: 'android'
|
|
19
|
-
};
|
|
20
|
-
// eslint-disable-next-line obsidianmd/no-global-this -- Actively use globalThis.
|
|
21
|
-
globalThis.process = browserProcess;
|
|
22
|
-
})();
|
|
23
|
-
|
|
24
|
-
import * as abort_signal_component from "./abort-signal-component.mjs";
|
|
25
|
-
import * as async_error_handler_component from "./async-error-handler-component.mjs";
|
|
26
|
-
import * as console_debug_component from "./console-debug-component.mjs";
|
|
27
|
-
import * as i18n_component from "./i18n-component.mjs";
|
|
28
|
-
import * as layout_ready_component from "./layout-ready-component.mjs";
|
|
29
|
-
import * as plugin_context_component from "./plugin-context-component.mjs";
|
|
30
|
-
import * as plugin_notice_component from "./plugin-notice-component.mjs";
|
|
31
|
-
import * as plugin_settings_component from "./plugin-settings-component.mjs";
|
|
32
|
-
import * as plugin_settings_tab_component from "./plugin-settings-tab-component.mjs";
|
|
33
|
-
export {
|
|
34
|
-
abort_signal_component as "abort-signal-component",
|
|
35
|
-
async_error_handler_component as "async-error-handler-component",
|
|
36
|
-
console_debug_component as "console-debug-component",
|
|
37
|
-
i18n_component as "i18n-component",
|
|
38
|
-
layout_ready_component as "layout-ready-component",
|
|
39
|
-
plugin_context_component as "plugin-context-component",
|
|
40
|
-
plugin_notice_component as "plugin-notice-component",
|
|
41
|
-
plugin_settings_component as "plugin-settings-component",
|
|
42
|
-
plugin_settings_tab_component as "plugin-settings-tab-component"
|
|
43
|
-
};
|
|
44
|
-
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL29ic2lkaWFuL3BsdWdpbi9jb21wb25lbnRzL2luZGV4LnRzIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyIvKiBUSElTIElTIEEgR0VORVJBVEVEL0JVTkRMRUQgRklMRSBCWSBCVUlMRCBTQ1JJUFQgKi9cblxuZXhwb3J0ICogYXMgJ2Fib3J0LXNpZ25hbC1jb21wb25lbnQnIGZyb20gJy4vYWJvcnQtc2lnbmFsLWNvbXBvbmVudC50cyc7XG5leHBvcnQgKiBhcyAnYXN5bmMtZXJyb3ItaGFuZGxlci1jb21wb25lbnQnIGZyb20gJy4vYXN5bmMtZXJyb3ItaGFuZGxlci1jb21wb25lbnQudHMnO1xuZXhwb3J0ICogYXMgJ2NvbnNvbGUtZGV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W50IiwgImkxOG4tY29tcG9uZW50IiwgImxheW91dC1yZWFkeS1jb21wb25lbnQiLCAicGx1Z2luLWNvbnRleHQtY29tcG9uZW50IiwgInBsdWdpbi1ub3RpY2UtY29tcG9uZW50IiwgInBsdWdpbi1zZXR0aW5ncy1jb21wb25lbnQiLCAicGx1Z2luLXNldHRpbmdzLXRhYi1jb21wb25lbnQiXQp9Cg==
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file
|
|
3
|
-
*
|
|
4
|
-
* Interface for components that need to perform work when the workspace layout is ready.
|
|
5
|
-
*/
|
|
6
|
-
import type { Promisable } from 'type-fest';
|
|
7
|
-
/**
|
|
8
|
-
* Components implementing this interface will have {@link onLayoutReady} called
|
|
9
|
-
* by PluginBase after the workspace layout is ready, with error isolation.
|
|
10
|
-
*/
|
|
11
|
-
export interface LayoutReadyComponent {
|
|
12
|
-
/**
|
|
13
|
-
* Called when the workspace layout is ready.
|
|
14
|
-
*
|
|
15
|
-
* @returns A {@link Promise} that resolves when layout-ready work is complete.
|
|
16
|
-
*/
|
|
17
|
-
onLayoutReady(): Promisable<void>;
|
|
18
|
-
}
|
|
@@ -1,24 +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 initEsm() {
|
|
7
|
-
// eslint-disable-next-line obsidianmd/no-global-this -- Actively use globalThis.
|
|
8
|
-
if (globalThis.process) {
|
|
9
|
-
return;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const browserProcess = {
|
|
13
|
-
browser: true,
|
|
14
|
-
cwd() {
|
|
15
|
-
return '/';
|
|
16
|
-
},
|
|
17
|
-
env: {},
|
|
18
|
-
platform: 'android'
|
|
19
|
-
};
|
|
20
|
-
// eslint-disable-next-line obsidianmd/no-global-this -- Actively use globalThis.
|
|
21
|
-
globalThis.process = browserProcess;
|
|
22
|
-
})();
|
|
23
|
-
|
|
24
|
-
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFtdLAogICJzb3VyY2VzQ29udGVudCI6IFtdLAogICJtYXBwaW5ncyI6ICIiLAogICJuYW1lcyI6IFtdCn0K
|
|
@@ -1,61 +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 initEsm() {
|
|
7
|
-
// eslint-disable-next-line obsidianmd/no-global-this -- Actively use globalThis.
|
|
8
|
-
if (globalThis.process) {
|
|
9
|
-
return;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const browserProcess = {
|
|
13
|
-
browser: true,
|
|
14
|
-
cwd() {
|
|
15
|
-
return '/';
|
|
16
|
-
},
|
|
17
|
-
env: {},
|
|
18
|
-
platform: 'android'
|
|
19
|
-
};
|
|
20
|
-
// eslint-disable-next-line obsidianmd/no-global-this -- Actively use globalThis.
|
|
21
|
-
globalThis.process = browserProcess;
|
|
22
|
-
})();
|
|
23
|
-
|
|
24
|
-
import { Component } from "obsidian";
|
|
25
|
-
import { AllWindowsEventHandler } from "../../components/all-windows-event-handler.mjs";
|
|
26
|
-
import {
|
|
27
|
-
initDebugController,
|
|
28
|
-
initPluginContext
|
|
29
|
-
} from "../plugin-context.mjs";
|
|
30
|
-
class PluginContextComponent extends Component {
|
|
31
|
-
/**
|
|
32
|
-
* The singleton key for the {@link PluginContextComponent} class.
|
|
33
|
-
*/
|
|
34
|
-
static COMPONENT_KEY = Symbol(PluginContextComponent.name);
|
|
35
|
-
app;
|
|
36
|
-
pluginId;
|
|
37
|
-
/**
|
|
38
|
-
* Creates a new plugin context component.
|
|
39
|
-
*
|
|
40
|
-
* @param params - The constructor parameters.
|
|
41
|
-
*/
|
|
42
|
-
constructor(params) {
|
|
43
|
-
super();
|
|
44
|
-
this.app = params.app;
|
|
45
|
-
this.pluginId = params.pluginId;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Initializes the plugin context and debug controller.
|
|
49
|
-
*/
|
|
50
|
-
onload() {
|
|
51
|
-
super.onload();
|
|
52
|
-
initPluginContext(this.app, this.pluginId);
|
|
53
|
-
new AllWindowsEventHandler(this.app, this).registerAllWindowsHandler((win) => {
|
|
54
|
-
initDebugController(win, this);
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
export {
|
|
59
|
-
PluginContextComponent
|
|
60
|
-
};
|
|
61
|
-
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL29ic2lkaWFuL3BsdWdpbi9jb21wb25lbnRzL3BsdWdpbi1jb250ZXh0LWNvbXBvbmVudC50cyJdLAogICJzb3VyY2VzQ29udGVudCI6IFsiLyoqXG4gKiBAZmlsZVxuICpcbiAqIENvbXBvbmVudCB0aGF0IGluaXRpYWxpemVzIHRoZSBwbHVnaW4gY29udGV4dCwgZGVidWcgY29udHJvbGxlciwgYW5kIGxpYnJhcnkgc3R5bGVzLlxuICovXG5cbmltcG9ydCB0eXBlIHsgQXBwIH0gZnJvbSAnb2JzaWRpYW4nO1xuXG5pbXBvcnQgeyBDb21wb25lbnQgfSBmcm9tICdvYnNpZGlhbic7XG5cbmltcG9ydCB7IEFsbFdpbmRvd3NFdmVudEhhbmRsZXIgfSBmcm9tICcuLi8uLi9jb21wb25lbnRzL2FsbC13aW5kb3dzLWV2ZW50LWhhbmRsZXIudHMnO1xuaW1wb3J0IHtcbiAgaW5pdERlYnVnQ29udHJvbGxlcixcbiAgaW5pdFBsdWdpbkNvbnRleHRcbn0gZnJvbSAnLi4vcGx1Z2luLWNvbnRleHQudHMnO1xuXG5pbnRlcmZhY2UgUGx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o=
|
|
@@ -1,60 +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 initEsm() {
|
|
7
|
-
// eslint-disable-next-line obsidianmd/no-global-this -- Actively use globalThis.
|
|
8
|
-
if (globalThis.process) {
|
|
9
|
-
return;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const browserProcess = {
|
|
13
|
-
browser: true,
|
|
14
|
-
cwd() {
|
|
15
|
-
return '/';
|
|
16
|
-
},
|
|
17
|
-
env: {},
|
|
18
|
-
platform: 'android'
|
|
19
|
-
};
|
|
20
|
-
// eslint-disable-next-line obsidianmd/no-global-this -- Actively use globalThis.
|
|
21
|
-
globalThis.process = browserProcess;
|
|
22
|
-
})();
|
|
23
|
-
|
|
24
|
-
import {
|
|
25
|
-
Component,
|
|
26
|
-
Notice
|
|
27
|
-
} from "obsidian";
|
|
28
|
-
class PluginNoticeComponent extends Component {
|
|
29
|
-
/**
|
|
30
|
-
* Creates a new plugin notice component.
|
|
31
|
-
*
|
|
32
|
-
* @param pluginName - The plugin name (shown as prefix in notices).
|
|
33
|
-
*/
|
|
34
|
-
constructor(pluginName) {
|
|
35
|
-
super();
|
|
36
|
-
this.pluginName = pluginName;
|
|
37
|
-
}
|
|
38
|
-
pluginName;
|
|
39
|
-
/**
|
|
40
|
-
* The singleton key for the {@link PluginNoticeComponent} class.
|
|
41
|
-
*/
|
|
42
|
-
static COMPONENT_KEY = Symbol(PluginNoticeComponent.name);
|
|
43
|
-
notice;
|
|
44
|
-
/**
|
|
45
|
-
* Displays a notice message to the user.
|
|
46
|
-
*
|
|
47
|
-
* @param message - The message to display.
|
|
48
|
-
*/
|
|
49
|
-
showNotice(message) {
|
|
50
|
-
if (this.notice) {
|
|
51
|
-
this.notice.hide();
|
|
52
|
-
}
|
|
53
|
-
this.notice = new Notice(`${this.pluginName}
|
|
54
|
-
${message}`);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
export {
|
|
58
|
-
PluginNoticeComponent
|
|
59
|
-
};
|
|
60
|
-
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL29ic2lkaWFuL3BsdWdpbi9jb21wb25lbnRzL3BsdWdpbi1ub3RpY2UtY29tcG9uZW50LnRzIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyIvKipcbiAqIEBmaWxlXG4gKlxuICogQ29tcG9uZW50IHRoYXQgbWFuYWdlcyBkaXNwbGF5aW5nIG5vdGljZXMgdG8gdGhlIHVzZXIuXG4gKi9cblxuaW1wb3J0IHtcbiAgQ29tcG9uZW50LFxuICBOb3RpY2Vcbn0gZnJvbSAnb2JzaWRpYW4nO1xuXG4vKipcbiAqIE1hbmFnZXMgc2hvd2luZyBwbHVnaW4gbm90aWNlcy4gQXV0b21hdGljYWxseSBoaWRlcyB0aGUgcHJldmlvdXMgbm90aWNlIHdoZW4gYSBuZXcgb25lIGlzIHNob3duLlxuICovXG5leHBvcnQgY2xhc3MgUGx1Z2luTm90aWNlQ29tcG9uZW50IGV4dGVuZHMgQ29tcG9uZW50IHtcbiAgLyoqXG4gICAqIFRoZSBzaW5nbGV0b24ga2V5IGZvciB0aGUge0BsaW5rIFBsdWdpbk5vdGljZUNvbXBvbmVudH0gY2xhc3MuXG4gICAqL1xuICBwdWJsaWMgc3RhdGljIHJlYWRvbmx5IENPTVBPTkVOVF9LRVkgPSBTeW1ib2woUGx1Z2luTm90aWNlQ29tcG9uZW50Lm5hbWUpO1xuXG4gIHByaXZhdGUgbm90aWNlPzogTm90aWNlO1xuXG4gIC8qKlxuICAgKiBDcmVhdGVzIGEgbmV3IHBsdWdpbiBub3RpY2UgY29tcG9uZW50LlxuICAgKlxuICAgKiBAcGFyYW0gcGx1Z2luTmFtZSAtIFRo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