obsidian-dev-utils 66.0.1 → 68.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.
Files changed (225) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/dev/main.js +543 -355
  3. package/dist/lib/cjs/async-events.cjs +182 -32
  4. package/dist/lib/cjs/async-events.d.cts +259 -24
  5. package/dist/lib/cjs/async.cjs +2 -2
  6. package/dist/lib/cjs/error.cjs +6 -7
  7. package/dist/lib/cjs/function.cjs +6 -2
  8. package/dist/lib/cjs/function.d.cts +6 -0
  9. package/dist/lib/cjs/library.cjs +1 -1
  10. package/dist/lib/cjs/object-utils.cjs +1 -1
  11. package/dist/lib/cjs/object-utils.d.cts +2 -0
  12. package/dist/lib/cjs/obsidian/active-file-provider.cjs +1 -1
  13. package/dist/lib/cjs/obsidian/active-file-provider.d.cts +0 -1
  14. package/dist/lib/cjs/obsidian/command-handlers/abstract-file-command-handler.cjs +2 -4
  15. package/dist/lib/cjs/obsidian/command-handlers/abstract-file-command-handler.d.cts +1 -1
  16. package/dist/lib/cjs/obsidian/command-handlers/command-handler-component.cjs +4 -5
  17. package/dist/lib/cjs/obsidian/command-handlers/command-handler-component.d.cts +3 -3
  18. package/dist/lib/cjs/obsidian/command-handlers/command-handler.cjs +3 -3
  19. package/dist/lib/cjs/obsidian/command-handlers/command-handler.d.cts +2 -1
  20. package/dist/lib/cjs/obsidian/command-handlers/editor-command-handler.cjs +2 -3
  21. package/dist/lib/cjs/obsidian/command-handlers/editor-command-handler.d.cts +1 -1
  22. package/dist/lib/cjs/obsidian/command-handlers/file-command-handler.cjs +1 -6
  23. package/dist/lib/cjs/obsidian/command-handlers/folder-command-handler.cjs +1 -6
  24. package/dist/lib/cjs/obsidian/components/abort-signal-component.cjs +3 -8
  25. package/dist/lib/cjs/obsidian/components/abort-signal-component.d.cts +2 -6
  26. package/dist/lib/cjs/obsidian/components/all-windows-event-component.cjs +3 -3
  27. package/dist/lib/cjs/obsidian/components/all-windows-event-component.d.cts +2 -2
  28. package/dist/lib/cjs/obsidian/components/async-error-handler-component.cjs +3 -8
  29. package/dist/lib/cjs/obsidian/components/async-error-handler-component.d.cts +2 -6
  30. package/dist/lib/cjs/obsidian/components/async-events-component.cjs +2 -20
  31. package/dist/lib/cjs/obsidian/components/async-events-component.d.cts +1 -18
  32. package/dist/lib/cjs/obsidian/components/component-ex.cjs +235 -0
  33. package/dist/lib/cjs/obsidian/components/component-ex.d.cts +55 -0
  34. package/dist/lib/cjs/obsidian/components/console-debug-component.cjs +3 -7
  35. package/dist/lib/cjs/obsidian/components/console-debug-component.d.cts +2 -6
  36. package/dist/lib/cjs/obsidian/components/disposable-component.cjs +1 -9
  37. package/dist/lib/cjs/obsidian/components/disposable-component.d.cts +0 -10
  38. package/dist/lib/cjs/obsidian/components/i18n-component.cjs +4 -9
  39. package/dist/lib/cjs/obsidian/components/i18n-component.d.cts +3 -7
  40. package/dist/lib/cjs/obsidian/components/index.cjs +9 -6
  41. package/dist/lib/cjs/obsidian/components/index.d.cts +2 -1
  42. package/dist/lib/cjs/obsidian/components/layout-ready-component.cjs +10 -4
  43. package/dist/lib/cjs/obsidian/components/layout-ready-component.d.cts +3 -3
  44. package/dist/lib/cjs/obsidian/components/menu-event-registrar-component.cjs +3 -3
  45. package/dist/lib/cjs/obsidian/components/menu-event-registrar-component.d.cts +2 -3
  46. package/dist/lib/cjs/obsidian/components/monkey-around-component.cjs +4 -4
  47. package/dist/lib/cjs/obsidian/components/monkey-around-component.d.cts +3 -3
  48. package/dist/lib/cjs/obsidian/components/plugin-context-component.cjs +3 -8
  49. package/dist/lib/cjs/obsidian/components/plugin-context-component.d.cts +2 -6
  50. package/dist/lib/cjs/obsidian/components/plugin-notice-component.cjs +3 -7
  51. package/dist/lib/cjs/obsidian/components/plugin-notice-component.d.cts +2 -6
  52. package/dist/lib/cjs/obsidian/components/plugin-settings-component.cjs +75 -33
  53. package/dist/lib/cjs/obsidian/components/plugin-settings-component.d.cts +73 -28
  54. package/dist/lib/cjs/obsidian/components/plugin-settings-tab-component.cjs +3 -4
  55. package/dist/lib/cjs/obsidian/components/plugin-settings-tab-component.d.cts +2 -2
  56. package/dist/lib/cjs/obsidian/components/registry-component.cjs +180 -0
  57. package/dist/lib/cjs/obsidian/components/registry-component.d.cts +36 -0
  58. package/dist/lib/cjs/obsidian/markdown.cjs +2 -3
  59. package/dist/lib/cjs/obsidian/menu-event-registrar.cjs +1 -1
  60. package/dist/lib/cjs/obsidian/menu-event-registrar.d.cts +0 -1
  61. package/dist/lib/cjs/obsidian/modals/alert.cjs +1 -3
  62. package/dist/lib/cjs/obsidian/modals/confirm.cjs +1 -3
  63. package/dist/lib/cjs/obsidian/modals/prompt.cjs +1 -3
  64. package/dist/lib/cjs/obsidian/modals/select-item.cjs +1 -2
  65. package/dist/lib/cjs/obsidian/plugin/plugin-settings-tab.cjs +23 -22
  66. package/dist/lib/cjs/obsidian/plugin/plugin-settings-tab.d.cts +7 -3
  67. package/dist/lib/cjs/obsidian/plugin/plugin.cjs +35 -76
  68. package/dist/lib/cjs/obsidian/plugin/plugin.d.cts +35 -36
  69. package/dist/lib/cjs/obsidian/queue.cjs +2 -2
  70. package/dist/lib/cjs/obsidian/rename-delete-handler.cjs +1 -2
  71. package/dist/lib/cjs/obsidian/setting-components/checkbox-component.cjs +1 -1
  72. package/dist/lib/cjs/obsidian/setting-components/checkbox-component.d.cts +1 -2
  73. package/dist/lib/cjs/obsidian/setting-components/code-highlighter-component.cjs +4 -2
  74. package/dist/lib/cjs/obsidian/setting-components/code-highlighter-component.d.cts +4 -3
  75. package/dist/lib/cjs/obsidian/setting-components/date-component.cjs +1 -2
  76. package/dist/lib/cjs/obsidian/setting-components/date-time-component.cjs +1 -2
  77. package/dist/lib/cjs/obsidian/setting-components/file-component.cjs +1 -3
  78. package/dist/lib/cjs/obsidian/setting-components/month-component.cjs +1 -2
  79. package/dist/lib/cjs/obsidian/setting-components/multiple-dropdown-component.cjs +4 -2
  80. package/dist/lib/cjs/obsidian/setting-components/multiple-dropdown-component.d.cts +4 -3
  81. package/dist/lib/cjs/obsidian/setting-components/multiple-email-component.cjs +1 -2
  82. package/dist/lib/cjs/obsidian/setting-components/multiple-file-component.cjs +1 -3
  83. package/dist/lib/cjs/obsidian/setting-components/multiple-text-component.cjs +4 -2
  84. package/dist/lib/cjs/obsidian/setting-components/multiple-text-component.d.cts +4 -3
  85. package/dist/lib/cjs/obsidian/setting-components/time-component.cjs +1 -2
  86. package/dist/lib/cjs/obsidian/setting-components/tri-state-checkbox-component.cjs +1 -1
  87. package/dist/lib/cjs/obsidian/setting-components/tri-state-checkbox-component.d.cts +1 -2
  88. package/dist/lib/cjs/obsidian/setting-components/typed-dropdown-component.cjs +4 -2
  89. package/dist/lib/cjs/obsidian/setting-components/typed-dropdown-component.d.cts +4 -3
  90. package/dist/lib/cjs/obsidian/setting-components/typed-multiple-dropdown-component.cjs +4 -2
  91. package/dist/lib/cjs/obsidian/setting-components/typed-multiple-dropdown-component.d.cts +4 -3
  92. package/dist/lib/cjs/obsidian/setting-components/typed-text-component.cjs +4 -2
  93. package/dist/lib/cjs/obsidian/setting-components/typed-text-component.d.cts +1 -2
  94. package/dist/lib/cjs/obsidian/setting-components/value-component-with-change-tracking.cjs +1 -1
  95. package/dist/lib/cjs/obsidian/setting-components/value-component-with-change-tracking.d.cts +1 -2
  96. package/dist/lib/cjs/obsidian/setting-components/week-component.cjs +1 -2
  97. package/dist/lib/cjs/obsidian/setting-ex.cjs +3 -1
  98. package/dist/lib/cjs/obsidian/setting-ex.d.cts +2 -0
  99. package/dist/lib/cjs/script-utils/linters/eslint-config.cjs +8 -2
  100. package/dist/lib/cjs/script-utils/linters/eslint-rules/index.cjs +10 -1
  101. package/dist/lib/cjs/script-utils/linters/eslint-rules/index.d.cts +3 -0
  102. package/dist/lib/cjs/script-utils/linters/eslint-rules/obsidian-dev-utils-plugin.cjs +7 -1
  103. package/dist/lib/cjs/script-utils/linters/eslint-rules/prefer-noop-async.cjs +184 -0
  104. package/dist/lib/cjs/script-utils/linters/eslint-rules/prefer-noop-async.d.cts +3 -0
  105. package/dist/lib/cjs/script-utils/linters/eslint-rules/require-component-suffix.cjs +242 -0
  106. package/dist/lib/cjs/script-utils/linters/eslint-rules/require-component-suffix.d.cts +5 -0
  107. package/dist/lib/cjs/script-utils/linters/eslint-rules/require-method-template.cjs +222 -0
  108. package/dist/lib/cjs/script-utils/linters/eslint-rules/require-method-template.d.cts +4 -0
  109. package/dist/lib/cjs/transformers/group-transformer.cjs +1 -3
  110. package/dist/lib/esm/async-events.d.mts +259 -24
  111. package/dist/lib/esm/async-events.mjs +179 -31
  112. package/dist/lib/esm/async.mjs +6 -3
  113. package/dist/lib/esm/error.mjs +6 -7
  114. package/dist/lib/esm/function.d.mts +6 -0
  115. package/dist/lib/esm/function.mjs +5 -2
  116. package/dist/lib/esm/library.mjs +1 -1
  117. package/dist/lib/esm/object-utils.d.mts +2 -0
  118. package/dist/lib/esm/object-utils.mjs +1 -1
  119. package/dist/lib/esm/obsidian/active-file-provider.d.mts +0 -1
  120. package/dist/lib/esm/obsidian/active-file-provider.mjs +1 -1
  121. package/dist/lib/esm/obsidian/command-handlers/abstract-file-command-handler.d.mts +1 -1
  122. package/dist/lib/esm/obsidian/command-handlers/abstract-file-command-handler.mjs +2 -4
  123. package/dist/lib/esm/obsidian/command-handlers/command-handler-component.d.mts +3 -3
  124. package/dist/lib/esm/obsidian/command-handlers/command-handler-component.mjs +4 -5
  125. package/dist/lib/esm/obsidian/command-handlers/command-handler.d.mts +2 -1
  126. package/dist/lib/esm/obsidian/command-handlers/command-handler.mjs +4 -4
  127. package/dist/lib/esm/obsidian/command-handlers/editor-command-handler.d.mts +1 -1
  128. package/dist/lib/esm/obsidian/command-handlers/editor-command-handler.mjs +2 -3
  129. package/dist/lib/esm/obsidian/command-handlers/file-command-handler.mjs +1 -6
  130. package/dist/lib/esm/obsidian/command-handlers/folder-command-handler.mjs +1 -6
  131. package/dist/lib/esm/obsidian/components/abort-signal-component.d.mts +2 -6
  132. package/dist/lib/esm/obsidian/components/abort-signal-component.mjs +3 -8
  133. package/dist/lib/esm/obsidian/components/all-windows-event-component.d.mts +2 -2
  134. package/dist/lib/esm/obsidian/components/all-windows-event-component.mjs +3 -3
  135. package/dist/lib/esm/obsidian/components/async-error-handler-component.d.mts +2 -6
  136. package/dist/lib/esm/obsidian/components/async-error-handler-component.mjs +3 -8
  137. package/dist/lib/esm/obsidian/components/async-events-component.d.mts +1 -18
  138. package/dist/lib/esm/obsidian/components/async-events-component.mjs +2 -19
  139. package/dist/lib/esm/obsidian/components/component-ex.d.mts +55 -0
  140. package/dist/lib/esm/obsidian/components/component-ex.mjs +130 -0
  141. package/dist/lib/esm/obsidian/components/console-debug-component.d.mts +2 -6
  142. package/dist/lib/esm/obsidian/components/console-debug-component.mjs +3 -7
  143. package/dist/lib/esm/obsidian/components/disposable-component.d.mts +0 -10
  144. package/dist/lib/esm/obsidian/components/disposable-component.mjs +1 -8
  145. package/dist/lib/esm/obsidian/components/i18n-component.d.mts +3 -7
  146. package/dist/lib/esm/obsidian/components/i18n-component.mjs +4 -9
  147. package/dist/lib/esm/obsidian/components/index.d.mts +2 -1
  148. package/dist/lib/esm/obsidian/components/index.mjs +6 -4
  149. package/dist/lib/esm/obsidian/components/layout-ready-component.d.mts +3 -3
  150. package/dist/lib/esm/obsidian/components/layout-ready-component.mjs +10 -4
  151. package/dist/lib/esm/obsidian/components/menu-event-registrar-component.d.mts +2 -3
  152. package/dist/lib/esm/obsidian/components/menu-event-registrar-component.mjs +3 -3
  153. package/dist/lib/esm/obsidian/components/monkey-around-component.d.mts +3 -3
  154. package/dist/lib/esm/obsidian/components/monkey-around-component.mjs +4 -4
  155. package/dist/lib/esm/obsidian/components/plugin-context-component.d.mts +2 -6
  156. package/dist/lib/esm/obsidian/components/plugin-context-component.mjs +3 -8
  157. package/dist/lib/esm/obsidian/components/plugin-notice-component.d.mts +2 -6
  158. package/dist/lib/esm/obsidian/components/plugin-notice-component.mjs +3 -7
  159. package/dist/lib/esm/obsidian/components/plugin-settings-component.d.mts +73 -28
  160. package/dist/lib/esm/obsidian/components/plugin-settings-component.mjs +75 -33
  161. package/dist/lib/esm/obsidian/components/plugin-settings-tab-component.d.mts +2 -2
  162. package/dist/lib/esm/obsidian/components/plugin-settings-tab-component.mjs +3 -4
  163. package/dist/lib/esm/obsidian/components/registry-component.d.mts +36 -0
  164. package/dist/lib/esm/obsidian/components/registry-component.mjs +72 -0
  165. package/dist/lib/esm/obsidian/markdown.mjs +2 -3
  166. package/dist/lib/esm/obsidian/menu-event-registrar.d.mts +0 -1
  167. package/dist/lib/esm/obsidian/modals/alert.mjs +1 -3
  168. package/dist/lib/esm/obsidian/modals/confirm.mjs +1 -3
  169. package/dist/lib/esm/obsidian/modals/prompt.mjs +1 -3
  170. package/dist/lib/esm/obsidian/modals/select-item.mjs +1 -2
  171. package/dist/lib/esm/obsidian/plugin/plugin-settings-tab.d.mts +7 -3
  172. package/dist/lib/esm/obsidian/plugin/plugin-settings-tab.mjs +24 -23
  173. package/dist/lib/esm/obsidian/plugin/plugin.d.mts +35 -36
  174. package/dist/lib/esm/obsidian/plugin/plugin.mjs +35 -77
  175. package/dist/lib/esm/obsidian/queue.mjs +6 -3
  176. package/dist/lib/esm/obsidian/rename-delete-handler.mjs +1 -2
  177. package/dist/lib/esm/obsidian/setting-components/checkbox-component.d.mts +1 -2
  178. package/dist/lib/esm/obsidian/setting-components/checkbox-component.mjs +1 -1
  179. package/dist/lib/esm/obsidian/setting-components/code-highlighter-component.d.mts +4 -3
  180. package/dist/lib/esm/obsidian/setting-components/code-highlighter-component.mjs +4 -2
  181. package/dist/lib/esm/obsidian/setting-components/date-component.mjs +1 -2
  182. package/dist/lib/esm/obsidian/setting-components/date-time-component.mjs +1 -2
  183. package/dist/lib/esm/obsidian/setting-components/file-component.mjs +1 -3
  184. package/dist/lib/esm/obsidian/setting-components/month-component.mjs +1 -2
  185. package/dist/lib/esm/obsidian/setting-components/multiple-dropdown-component.d.mts +4 -3
  186. package/dist/lib/esm/obsidian/setting-components/multiple-dropdown-component.mjs +4 -2
  187. package/dist/lib/esm/obsidian/setting-components/multiple-email-component.mjs +1 -2
  188. package/dist/lib/esm/obsidian/setting-components/multiple-file-component.mjs +1 -3
  189. package/dist/lib/esm/obsidian/setting-components/multiple-text-component.d.mts +4 -3
  190. package/dist/lib/esm/obsidian/setting-components/multiple-text-component.mjs +4 -2
  191. package/dist/lib/esm/obsidian/setting-components/time-component.mjs +1 -2
  192. package/dist/lib/esm/obsidian/setting-components/tri-state-checkbox-component.d.mts +1 -2
  193. package/dist/lib/esm/obsidian/setting-components/tri-state-checkbox-component.mjs +1 -1
  194. package/dist/lib/esm/obsidian/setting-components/typed-dropdown-component.d.mts +4 -3
  195. package/dist/lib/esm/obsidian/setting-components/typed-dropdown-component.mjs +4 -2
  196. package/dist/lib/esm/obsidian/setting-components/typed-multiple-dropdown-component.d.mts +4 -3
  197. package/dist/lib/esm/obsidian/setting-components/typed-multiple-dropdown-component.mjs +4 -2
  198. package/dist/lib/esm/obsidian/setting-components/typed-text-component.d.mts +1 -2
  199. package/dist/lib/esm/obsidian/setting-components/typed-text-component.mjs +4 -2
  200. package/dist/lib/esm/obsidian/setting-components/value-component-with-change-tracking.d.mts +1 -2
  201. package/dist/lib/esm/obsidian/setting-components/week-component.mjs +1 -2
  202. package/dist/lib/esm/obsidian/setting-ex.d.mts +2 -0
  203. package/dist/lib/esm/obsidian/setting-ex.mjs +3 -1
  204. package/dist/lib/esm/script-utils/linters/eslint-config.mjs +8 -2
  205. package/dist/lib/esm/script-utils/linters/eslint-rules/index.d.mts +3 -0
  206. package/dist/lib/esm/script-utils/linters/eslint-rules/index.mjs +7 -1
  207. package/dist/lib/esm/script-utils/linters/eslint-rules/obsidian-dev-utils-plugin.mjs +7 -1
  208. package/dist/lib/esm/script-utils/linters/eslint-rules/prefer-noop-async.d.mts +3 -0
  209. package/dist/lib/esm/script-utils/linters/eslint-rules/prefer-noop-async.mjs +75 -0
  210. package/dist/lib/esm/script-utils/linters/eslint-rules/require-component-suffix.d.mts +5 -0
  211. package/dist/lib/esm/script-utils/linters/eslint-rules/require-component-suffix.mjs +131 -0
  212. package/dist/lib/esm/script-utils/linters/eslint-rules/require-method-template.d.mts +4 -0
  213. package/dist/lib/esm/script-utils/linters/eslint-rules/require-method-template.mjs +112 -0
  214. package/dist/lib/esm/transformers/group-transformer.mjs +1 -3
  215. package/obsidian/Components/component-ex/package.json +6 -0
  216. package/obsidian/Components/registry-component/package.json +6 -0
  217. package/package.json +21 -20
  218. package/script-utils/linters/eslint-rules/prefer-noop-async/package.json +6 -0
  219. package/script-utils/linters/eslint-rules/require-component-suffix/package.json +6 -0
  220. package/script-utils/linters/eslint-rules/require-method-template/package.json +6 -0
  221. package/dist/lib/cjs/obsidian/components/async-component.cjs +0 -182
  222. package/dist/lib/cjs/obsidian/components/async-component.d.cts +0 -43
  223. package/dist/lib/esm/obsidian/components/async-component.d.mts +0 -43
  224. package/dist/lib/esm/obsidian/components/async-component.mjs +0 -72
  225. package/obsidian/Components/async-component/package.json +0 -6
@@ -1,182 +0,0 @@
1
- /*
2
- THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
3
- if you want to view the source, please visit the github repository of this plugin
4
- */
5
-
6
- (function initCjs() {
7
- // eslint-disable-next-line obsidianmd/no-global-this -- Actively use globalThis.
8
- const globalThisRecord = globalThis;
9
- globalThisRecord['__name'] ??= name;
10
- const originalRequire = require;
11
- if (originalRequire && !originalRequire.__isPatched) {
12
- // eslint-disable-next-line no-global-assign, no-implicit-globals -- We need to patch the `require()` function.
13
- require = Object.assign(
14
- (id) => requirePatched(id),
15
- originalRequire,
16
- {
17
- __isPatched: true
18
- }
19
- );
20
- }
21
-
22
- const newFuncs = {
23
- __extractDefault() {
24
- return extractDefault;
25
- },
26
- process() {
27
- const browserProcess = {
28
- browser: true,
29
- cwd() {
30
- return '/';
31
- },
32
- env: {},
33
- platform: 'android'
34
- };
35
- return browserProcess;
36
- }
37
- };
38
-
39
- for (const key of Object.keys(newFuncs)) {
40
- globalThisRecord[key] ??= newFuncs[key]?.();
41
- }
42
-
43
- function name(obj) {
44
- return obj;
45
- }
46
-
47
- function extractDefault(module) {
48
- return module && module.__esModule && 'default' in module ? module.default : module;
49
- }
50
-
51
- const OBSIDIAN_BUILT_IN_MODULE_NAMES = [
52
- 'obsidian',
53
- '@codemirror/autocomplete',
54
- '@codemirror/collab',
55
- '@codemirror/commands',
56
- '@codemirror/language',
57
- '@codemirror/lint',
58
- '@codemirror/search',
59
- '@codemirror/state',
60
- '@codemirror/text',
61
- '@codemirror/view',
62
- '@lezer/common',
63
- '@lezer/lr',
64
- '@lezer/highlight'];
65
-
66
-
67
- const DEPRECATED_OBSIDIAN_BUILT_IN_MODULE_NAMES = [
68
- '@codemirror/closebrackets',
69
- '@codemirror/comment',
70
- '@codemirror/fold',
71
- '@codemirror/gutter',
72
- '@codemirror/highlight',
73
- '@codemirror/history',
74
- '@codemirror/matchbrackets',
75
- '@codemirror/panel',
76
- '@codemirror/rangeset',
77
- '@codemirror/rectangular-selection',
78
- '@codemirror/stream-parser',
79
- '@codemirror/tooltip'];
80
-
81
-
82
- function requirePatched(id) {
83
- if (OBSIDIAN_BUILT_IN_MODULE_NAMES.includes(id) || DEPRECATED_OBSIDIAN_BUILT_IN_MODULE_NAMES.includes(id)) {
84
- return originalRequire?.(id);
85
- }
86
-
87
- // eslint-disable-next-line @typescript-eslint/no-deprecated, obsidianmd/no-global-this -- Need access to app. Actively use globalThis.
88
- if (globalThis.app.isMobile) {
89
- if (id === 'process' || id === 'node:process') {
90
- // eslint-disable-next-line no-console -- Valid usage.
91
- console.debug(`The most likely you can safely ignore this error. Module not found: ${id}. Fake process object is returned instead.`);
92
- // eslint-disable-next-line obsidianmd/no-global-this -- Actively use globalThis.
93
- return globalThis.process;
94
- }
95
- } else {
96
- const module = originalRequire?.(id);
97
- if (module) {
98
- return extractDefault(module);
99
- }
100
- }
101
-
102
- // eslint-disable-next-line no-console -- Valid usage.
103
- console.debug(`The most likely you can safely ignore this error. Module not found: ${id}. Empty object is returned instead.`);
104
- return {};
105
- }
106
- })();
107
-
108
- "use strict";
109
- var __defProp = Object.defineProperty;
110
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
111
- var __getOwnPropNames = Object.getOwnPropertyNames;
112
- var __hasOwnProp = Object.prototype.hasOwnProperty;
113
- var __export = (target, all) => {
114
- for (var name in all)
115
- __defProp(target, name, { get: all[name], enumerable: true });
116
- };
117
- var __copyProps = (to, from, except, desc) => {
118
- if (from && typeof from === "object" || typeof from === "function") {
119
- for (let key of __getOwnPropNames(from))
120
- if (!__hasOwnProp.call(to, key) && key !== except)
121
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
122
- }
123
- return to;
124
- };
125
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
126
- var async_component_exports = {};
127
- __export(async_component_exports, {
128
- AsyncComponentBase: () => AsyncComponentBase,
129
- loadAsync: () => loadAsync,
130
- loadChildrenFirstAsync: () => loadChildrenFirstAsync
131
- });
132
- module.exports = __toCommonJS(async_component_exports);
133
- var import_obsidian = require('obsidian');
134
- var import_disposable_component = require('./disposable-component.cjs');
135
- class AsyncComponentBase extends import_disposable_component.DisposableComponent {
136
- /**
137
- * Loads this component and its children sequentially.
138
- *
139
- * Unlike Component's `load()` which runs `onload()` and children concurrently,
140
- * this awaits `onload()` first, then loads children in order.
141
- */
142
- // eslint-disable-next-line @typescript-eslint/no-misused-promises, obsidian-dev-utils/require-super-call -- Obsidian's load() handles async returns at runtime. Intentionally replaces synchronous Component.load() with async loadAsync().
143
- async load() {
144
- await loadAsync(this);
145
- }
146
- /**
147
- * Override this method to perform async initialization.
148
- *
149
- * @returns A {@link Promise} that resolves when initialization is complete.
150
- */
151
- // eslint-disable-next-line @typescript-eslint/no-misused-promises, obsidian-dev-utils/require-super-call -- Intentional async override; called from our own async load(). Base hook providing async default for subclasses.
152
- async onload() {
153
- await Promise.resolve();
154
- }
155
- }
156
- async function loadAsync(component) {
157
- if (component._loaded) {
158
- return;
159
- }
160
- component._loaded = true;
161
- await component.onload();
162
- for (const child of component._children) {
163
- await loadAsync(child);
164
- }
165
- }
166
- async function loadChildrenFirstAsync(component) {
167
- if (component._loaded) {
168
- return;
169
- }
170
- for (const child of component._children) {
171
- await loadChildrenFirstAsync(child);
172
- }
173
- component._loaded = true;
174
- await component.onload();
175
- }
176
- // Annotate the CommonJS export names for ESM import in node:
177
- 0 && (module.exports = {
178
- AsyncComponentBase,
179
- loadAsync,
180
- loadChildrenFirstAsync
181
- });
182
- //# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vLi4vLi4vc3JjL29ic2lkaWFuL2NvbXBvbmVudHMvYXN5bmMtY29tcG9uZW50LnRzIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyIvKipcbiAqIEBmaWxlXG4gKlxuICogQmFzZSBjbGFzcyBmb3IgY29tcG9uZW50cyB0aGF0IG5lZWQgYXN5bmMgbGlmZWN5Y2xlIG1ldGhvZHMuXG4gKi9cblxuaW1wb3J0IHR5cGUgeyBQcm9taXNhYmxlIH0gZnJvbSAndHlwZS1mZXN0JztcblxuaW1wb3J0IHsgQ29tcG9uZW50IH0gZnJvbSAnb2JzaWRpYW4nO1xuXG5pbXBvcnQgeyBEaXNwb3NhYmxlQ29tcG9uZW50IH0gZnJvbSAnLi9kaXNwb3NhYmxlLWNvbXBvbmVudC50cyc7XG5cbi8qKlxuICogQSB7QGxpbmsgQ29tcG9uZW50fSB0aGF0IHN1cHBvcnRzIGFzeW5jIGxpZmVjeWNsZSBtZXRob2RzLlxuICpcbiAqIE9ic2lkaWFuJ3MgYENvbXBvbmVudC5sb2FkKClgIGNhcHR1cmVzIHRoZSByZXR1cm4gdmFsdWUgb2YgYG9ubG9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FBRUEsYUFBVyxTQUFTLFVBQVUsV0FBVztBQUN2QyxVQUFNLHVCQUF1QixLQUFLO0FBQUEsRUFDcEM7QUFFQSxZQUFVLFVBQVU7QUFFcEIsUUFBTyxVQUFVLE9BQU87QUFDMUI7IiwKICAibmFtZXMiOiBbXQp9Cg==
@@ -1,43 +0,0 @@
1
- /**
2
- * @file
3
- *
4
- * Base class for components that need async lifecycle methods.
5
- */
6
- import { Component } from 'obsidian';
7
- import { DisposableComponent } from './disposable-component.cjs';
8
- /**
9
- * A {@link Component} that supports async lifecycle methods.
10
- *
11
- * Obsidian's `Component.load()` captures the return value of `onload()` and includes Promises
12
- * in a `Promise.all()`. This class overrides `load()` to `await` `onload()` before loading children,
13
- * ensuring ordered initialization.
14
- */
15
- export declare abstract class AsyncComponentBase extends DisposableComponent {
16
- /**
17
- * Loads this component and its children sequentially.
18
- *
19
- * Unlike Component's `load()` which runs `onload()` and children concurrently,
20
- * this awaits `onload()` first, then loads children in order.
21
- */
22
- load(): Promise<void>;
23
- /**
24
- * Override this method to perform async initialization.
25
- *
26
- * @returns A {@link Promise} that resolves when initialization is complete.
27
- */
28
- onload(): Promise<void>;
29
- }
30
- /**
31
- * Loads a component and its children sequentially.
32
- *
33
- * @param component - The component to load.
34
- * @returns A {@link Promise} that resolves when the component is loaded.
35
- */
36
- export declare function loadAsync(component: Component): Promise<void>;
37
- /**
38
- * Loads a component and its children (children first).
39
- *
40
- * @param component - The component to load.
41
- * @returns A {@link Promise} that resolves when the component is loaded.
42
- */
43
- export declare function loadChildrenFirstAsync(component: Component): Promise<void>;
@@ -1,43 +0,0 @@
1
- /**
2
- * @file
3
- *
4
- * Base class for components that need async lifecycle methods.
5
- */
6
- import { Component } from 'obsidian';
7
- import { DisposableComponent } from './disposable-component.mjs';
8
- /**
9
- * A {@link Component} that supports async lifecycle methods.
10
- *
11
- * Obsidian's `Component.load()` captures the return value of `onload()` and includes Promises
12
- * in a `Promise.all()`. This class overrides `load()` to `await` `onload()` before loading children,
13
- * ensuring ordered initialization.
14
- */
15
- export declare abstract class AsyncComponentBase extends DisposableComponent {
16
- /**
17
- * Loads this component and its children sequentially.
18
- *
19
- * Unlike Component's `load()` which runs `onload()` and children concurrently,
20
- * this awaits `onload()` first, then loads children in order.
21
- */
22
- load(): Promise<void>;
23
- /**
24
- * Override this method to perform async initialization.
25
- *
26
- * @returns A {@link Promise} that resolves when initialization is complete.
27
- */
28
- onload(): Promise<void>;
29
- }
30
- /**
31
- * Loads a component and its children sequentially.
32
- *
33
- * @param component - The component to load.
34
- * @returns A {@link Promise} that resolves when the component is loaded.
35
- */
36
- export declare function loadAsync(component: Component): Promise<void>;
37
- /**
38
- * Loads a component and its children (children first).
39
- *
40
- * @param component - The component to load.
41
- * @returns A {@link Promise} that resolves when the component is loaded.
42
- */
43
- export declare function loadChildrenFirstAsync(component: Component): Promise<void>;
@@ -1,72 +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 { DisposableComponent } from "./disposable-component.mjs";
26
- class AsyncComponentBase extends DisposableComponent {
27
- /**
28
- * Loads this component and its children sequentially.
29
- *
30
- * Unlike Component's `load()` which runs `onload()` and children concurrently,
31
- * this awaits `onload()` first, then loads children in order.
32
- */
33
- // eslint-disable-next-line @typescript-eslint/no-misused-promises, obsidian-dev-utils/require-super-call -- Obsidian's load() handles async returns at runtime. Intentionally replaces synchronous Component.load() with async loadAsync().
34
- async load() {
35
- await loadAsync(this);
36
- }
37
- /**
38
- * Override this method to perform async initialization.
39
- *
40
- * @returns A {@link Promise} that resolves when initialization is complete.
41
- */
42
- // eslint-disable-next-line @typescript-eslint/no-misused-promises, obsidian-dev-utils/require-super-call -- Intentional async override; called from our own async load(). Base hook providing async default for subclasses.
43
- async onload() {
44
- await Promise.resolve();
45
- }
46
- }
47
- async function loadAsync(component) {
48
- if (component._loaded) {
49
- return;
50
- }
51
- component._loaded = true;
52
- await component.onload();
53
- for (const child of component._children) {
54
- await loadAsync(child);
55
- }
56
- }
57
- async function loadChildrenFirstAsync(component) {
58
- if (component._loaded) {
59
- return;
60
- }
61
- for (const child of component._children) {
62
- await loadChildrenFirstAsync(child);
63
- }
64
- component._loaded = true;
65
- await component.onload();
66
- }
67
- export {
68
- AsyncComponentBase,
69
- loadAsync,
70
- loadChildrenFirstAsync
71
- };
72
- //# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vLi4vLi4vc3JjL29ic2lkaWFuL2NvbXBvbmVudHMvYXN5bmMtY29tcG9uZW50LnRzIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyIvKipcbiAqIEBmaWxlXG4gKlxuICogQmFzZSBjbGFzcyBmb3IgY29tcG9uZW50cyB0aGF0IG5lZWQgYXN5bmMgbGlmZWN5Y2xlIG1ldGhvZHMuXG4gKi9cblxuaW1wb3J0IHR5cGUgeyBQcm9taXNhYmxlIH0gZnJvbSAndHlwZS1mZXN0JztcblxuaW1wb3J0IHsgQ29tcG9uZW50IH0gZnJvbSAnb2JzaWRpYW4nO1xuXG5pbXBvcnQgeyBEaXNwb3NhYmxlQ29tcG9uZW50IH0gZnJvbSAnLi9kaXNwb3NhYmxlLWNvbXBvbmVudC50cyc7XG5cbi8qKlxuICogQSB7QGxpbmsgQ29tcG9uZW50fSB0aGF0IHN1cHBvcnRzIGFzeW5jIGxpZmVjeWNsZSBtZXRob2RzLlxuICpcbiAqIE9ic2lkaWFuJ3MgYENvb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W1lcyI6IFtdCn0K
@@ -1,6 +0,0 @@
1
- {
2
- "main": "../../../dist/lib/cjs/obsidian/components/async-component.cjs",
3
- "module": "../../../dist/lib/esm/obsidian/components/async-component.mjs",
4
- "type": "module",
5
- "types": "../../../dist/lib/cjs/obsidian/components/async-component.d.cts"
6
- }