obsidian-dev-utils 19.1.2-beta.2 → 19.1.2-beta.4

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 (275) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/lib/cjs/Debug.d.cts +1 -1
  3. package/dist/lib/cjs/Library.cjs +1 -1
  4. package/dist/lib/cjs/ScriptUtils/CliUtils.d.cts +1 -1
  5. package/dist/lib/cjs/ScriptUtils/ESLint/index.d.cts +2 -2
  6. package/dist/lib/cjs/ScriptUtils/Fs.d.cts +1 -1
  7. package/dist/lib/cjs/ScriptUtils/JSON.d.cts +1 -1
  8. package/dist/lib/cjs/ScriptUtils/Npm.d.cts +1 -1
  9. package/dist/lib/cjs/ScriptUtils/Root.d.cts +1 -1
  10. package/dist/lib/cjs/ScriptUtils/esbuild/ObsidianPluginBuilder.d.cts +1 -1
  11. package/dist/lib/cjs/ScriptUtils/esbuild/index.d.cts +9 -9
  12. package/dist/lib/cjs/ScriptUtils/index.d.cts +17 -17
  13. package/dist/lib/cjs/String.d.cts +1 -1
  14. package/dist/lib/cjs/Transformers/DateTransformer.d.cts +1 -1
  15. package/dist/lib/cjs/Transformers/DurationTransformer.d.cts +1 -1
  16. package/dist/lib/cjs/Transformers/GroupTransformer.d.cts +1 -1
  17. package/dist/lib/cjs/Transformers/SkipPrivatePropertyTransformer.d.cts +1 -1
  18. package/dist/lib/cjs/Transformers/TypedTransformer.d.cts +1 -1
  19. package/dist/lib/cjs/Transformers/index.d.cts +6 -6
  20. package/dist/lib/cjs/ValueProvider.d.cts +1 -1
  21. package/dist/lib/cjs/codemirror/index.d.cts +1 -1
  22. package/dist/lib/cjs/index.d.cts +20 -20
  23. package/dist/lib/cjs/obsidian/@types/Dataview/api/data-array.d.cts +1 -1
  24. package/dist/lib/cjs/obsidian/@types/Dataview/api/extensions.d.cts +1 -1
  25. package/dist/lib/cjs/obsidian/@types/Dataview/api/inline-api.d.cts +9 -9
  26. package/dist/lib/cjs/obsidian/@types/Dataview/api/plugin-api.d.cts +10 -10
  27. package/dist/lib/cjs/obsidian/@types/Dataview/data-import/csv.d.cts +1 -1
  28. package/dist/lib/cjs/obsidian/@types/Dataview/data-import/inline-field.d.cts +1 -1
  29. package/dist/lib/cjs/obsidian/@types/Dataview/data-import/markdown-file.d.cts +3 -3
  30. package/dist/lib/cjs/obsidian/@types/Dataview/data-import/persister.d.cts +1 -1
  31. package/dist/lib/cjs/obsidian/@types/Dataview/data-import/web-worker/import-impl.d.cts +1 -1
  32. package/dist/lib/cjs/obsidian/@types/Dataview/data-index/index.d.cts +5 -5
  33. package/dist/lib/cjs/obsidian/@types/Dataview/data-index/resolver.d.cts +4 -4
  34. package/dist/lib/cjs/obsidian/@types/Dataview/data-model/markdown.d.cts +4 -4
  35. package/dist/lib/cjs/obsidian/@types/Dataview/data-model/serialized/markdown.d.cts +1 -1
  36. package/dist/lib/cjs/obsidian/@types/Dataview/data-model/value.d.cts +1 -1
  37. package/dist/lib/cjs/obsidian/@types/Dataview/expression/binaryop.d.cts +4 -4
  38. package/dist/lib/cjs/obsidian/@types/Dataview/expression/context.d.cts +6 -6
  39. package/dist/lib/cjs/obsidian/@types/Dataview/expression/field.d.cts +1 -1
  40. package/dist/lib/cjs/obsidian/@types/Dataview/expression/functions.d.cts +3 -3
  41. package/dist/lib/cjs/obsidian/@types/Dataview/expression/parse.d.cts +4 -4
  42. package/dist/lib/cjs/obsidian/@types/Dataview/index.d.cts +11 -11
  43. package/dist/lib/cjs/obsidian/@types/Dataview/main.d.cts +4 -4
  44. package/dist/lib/cjs/obsidian/@types/Dataview/query/engine.d.cts +9 -9
  45. package/dist/lib/cjs/obsidian/@types/Dataview/query/parse.d.cts +4 -4
  46. package/dist/lib/cjs/obsidian/@types/Dataview/query/query.d.cts +2 -2
  47. package/dist/lib/cjs/obsidian/@types/Dataview/typings/obsidian-ex.d.cts +1 -1
  48. package/dist/lib/cjs/obsidian/@types/Dataview/ui/export/markdown.d.cts +3 -3
  49. package/dist/lib/cjs/obsidian/@types/Dataview/ui/lp-render.d.cts +3 -3
  50. package/dist/lib/cjs/obsidian/@types/Dataview/ui/markdown.d.cts +3 -3
  51. package/dist/lib/cjs/obsidian/@types/Dataview/ui/refreshable-view.d.cts +2 -2
  52. package/dist/lib/cjs/obsidian/@types/Dataview/ui/render.d.cts +2 -2
  53. package/dist/lib/cjs/obsidian/@types/Dataview/ui/views/calendar-view.d.cts +4 -4
  54. package/dist/lib/cjs/obsidian/@types/Dataview/ui/views/inline-field-live-preview.d.cts +2 -2
  55. package/dist/lib/cjs/obsidian/@types/Dataview/ui/views/inline-view.d.cts +4 -4
  56. package/dist/lib/cjs/obsidian/@types/Dataview/ui/views/js-view.d.cts +2 -2
  57. package/dist/lib/cjs/obsidian/@types/Dataview/ui/views/list-view.d.cts +3 -3
  58. package/dist/lib/cjs/obsidian/@types/Dataview/ui/views/table-view.d.cts +3 -3
  59. package/dist/lib/cjs/obsidian/@types/Dataview/ui/views/task-view.d.cts +4 -4
  60. package/dist/lib/cjs/obsidian/@types/Dataview/util/media.d.cts +1 -1
  61. package/dist/lib/cjs/obsidian/@types/Dataview/util/normalize.d.cts +2 -2
  62. package/dist/lib/cjs/obsidian/AttachmentPath.d.cts +1 -1
  63. package/dist/lib/cjs/obsidian/Backlink.d.cts +2 -2
  64. package/dist/lib/cjs/obsidian/Callout.d.cts +2 -2
  65. package/dist/lib/cjs/obsidian/Components/DateComponent.d.cts +1 -1
  66. package/dist/lib/cjs/obsidian/Components/DateTimeComponent.d.cts +1 -1
  67. package/dist/lib/cjs/obsidian/Components/EmailComponent.d.cts +1 -1
  68. package/dist/lib/cjs/obsidian/Components/FileComponent.d.cts +1 -1
  69. package/dist/lib/cjs/obsidian/Components/MonthComponent.d.cts +1 -1
  70. package/dist/lib/cjs/obsidian/Components/MultipleDropdownComponent.d.cts +5 -5
  71. package/dist/lib/cjs/obsidian/Components/MultipleEmailComponent.d.cts +1 -1
  72. package/dist/lib/cjs/obsidian/Components/MultipleFileComponent.d.cts +1 -1
  73. package/dist/lib/cjs/obsidian/Components/MultipleTextComponent.d.cts +5 -5
  74. package/dist/lib/cjs/obsidian/Components/NumberComponent.d.cts +1 -1
  75. package/dist/lib/cjs/obsidian/Components/TimeComponent.d.cts +1 -1
  76. package/dist/lib/cjs/obsidian/Components/TypedRangeTextComponent.d.cts +1 -1
  77. package/dist/lib/cjs/obsidian/Components/TypedTextComponent.d.cts +6 -6
  78. package/dist/lib/cjs/obsidian/Components/UrlComponent.d.cts +1 -1
  79. package/dist/lib/cjs/obsidian/Components/ValidatorComponent.d.cts +1 -1
  80. package/dist/lib/cjs/obsidian/Components/ValueComponentWithChangeTracking.d.cts +2 -2
  81. package/dist/lib/cjs/obsidian/Components/WeekComponent.d.cts +1 -1
  82. package/dist/lib/cjs/obsidian/Components/index.d.cts +17 -17
  83. package/dist/lib/cjs/obsidian/Dataview.d.cts +6 -6
  84. package/dist/lib/cjs/obsidian/DataviewLink.d.cts +2 -2
  85. package/dist/lib/cjs/obsidian/FileChange.d.cts +3 -3
  86. package/dist/lib/cjs/obsidian/FileManager.d.cts +4 -4
  87. package/dist/lib/cjs/obsidian/Link.d.cts +3 -3
  88. package/dist/lib/cjs/obsidian/Logger.d.cts +1 -1
  89. package/dist/lib/cjs/obsidian/Loop.d.cts +1 -1
  90. package/dist/lib/cjs/obsidian/MarkdownCodeBlockProcessor.d.cts +1 -1
  91. package/dist/lib/cjs/obsidian/MetadataCache.d.cts +3 -3
  92. package/dist/lib/cjs/obsidian/Modals/ModalBase.d.cts +1 -1
  93. package/dist/lib/cjs/obsidian/Modals/Prompt.d.cts +2 -2
  94. package/dist/lib/cjs/obsidian/Modals/index.d.cts +5 -5
  95. package/dist/lib/cjs/obsidian/Plugin/EmptySettings.d.cts +1 -1
  96. package/dist/lib/cjs/obsidian/Plugin/PluginBase.d.cts +3 -3
  97. package/dist/lib/cjs/obsidian/Plugin/PluginSettingsBase.d.cts +1 -1
  98. package/dist/lib/cjs/obsidian/Plugin/PluginSettingsTabBase.d.cts +5 -5
  99. package/dist/lib/cjs/obsidian/Plugin/index.d.cts +8 -8
  100. package/dist/lib/cjs/obsidian/Queue.d.cts +1 -1
  101. package/dist/lib/cjs/obsidian/Reference.d.cts +1 -1
  102. package/dist/lib/cjs/obsidian/SettingEx.d.cts +13 -13
  103. package/dist/lib/cjs/obsidian/Vault.d.cts +3 -3
  104. package/dist/lib/cjs/obsidian/VaultEx.d.cts +1 -1
  105. package/dist/lib/cjs/obsidian/index.d.cts +29 -29
  106. package/dist/lib/esm/@types/debug.d.mts +16 -1
  107. package/dist/lib/esm/Async.d.mts +153 -1
  108. package/dist/lib/esm/Blob.d.mts +40 -1
  109. package/dist/lib/esm/CssClass.d.mts +97 -1
  110. package/dist/lib/esm/Debug.d.mts +41 -1
  111. package/dist/lib/esm/DebugController.d.mts +85 -1
  112. package/dist/lib/esm/Enum.d.mts +20 -1
  113. package/dist/lib/esm/Error.d.mts +45 -1
  114. package/dist/lib/esm/Function.d.mts +28 -1
  115. package/dist/lib/esm/HTMLElement.d.mts +49 -1
  116. package/dist/lib/esm/Library.d.mts +16 -1
  117. package/dist/lib/esm/Library.mjs +1 -1
  118. package/dist/lib/esm/Object.d.mts +211 -1
  119. package/dist/lib/esm/Path.d.mts +133 -1
  120. package/dist/lib/esm/RegExp.d.mts +18 -1
  121. package/dist/lib/esm/ScriptUtils/CliUtils.d.mts +70 -1
  122. package/dist/lib/esm/ScriptUtils/CodeGenerator.d.mts +12 -1
  123. package/dist/lib/esm/ScriptUtils/ESLint/@types/@guardian__eslint-plugin-tsdoc-required.d.mts +13 -1
  124. package/dist/lib/esm/ScriptUtils/ESLint/@types/eslint-plugin-modules-newlines.d.mts +13 -1
  125. package/dist/lib/esm/ScriptUtils/ESLint/@types/eslint-plugin-verify-tsdoc.d.mts +13 -1
  126. package/dist/lib/esm/ScriptUtils/ESLint/ESLint.d.mts +13 -1
  127. package/dist/lib/esm/ScriptUtils/ESLint/eslint.config.d.mts +16 -1
  128. package/dist/lib/esm/ScriptUtils/ESLint/index.d.mts +2 -1
  129. package/dist/lib/esm/ScriptUtils/Exec.d.mts +83 -1
  130. package/dist/lib/esm/ScriptUtils/Fs.d.mts +72 -1
  131. package/dist/lib/esm/ScriptUtils/JSON.d.mts +64 -1
  132. package/dist/lib/esm/ScriptUtils/NodeModules.d.mts +14 -1
  133. package/dist/lib/esm/ScriptUtils/Npm.d.mts +151 -1
  134. package/dist/lib/esm/ScriptUtils/NpmPublish.d.mts +9 -1
  135. package/dist/lib/esm/ScriptUtils/ObsidianDevUtilsRepoPaths.d.mts +106 -1
  136. package/dist/lib/esm/ScriptUtils/Root.d.mts +67 -1
  137. package/dist/lib/esm/ScriptUtils/build.d.mts +41 -1
  138. package/dist/lib/esm/ScriptUtils/cli.d.mts +14 -1
  139. package/dist/lib/esm/ScriptUtils/esbuild/Dependency.d.mts +18 -1
  140. package/dist/lib/esm/ScriptUtils/esbuild/ObsidianPluginBuilder.d.mts +53 -1
  141. package/dist/lib/esm/ScriptUtils/esbuild/changeExtensionPlugin.d.mts +12 -1
  142. package/dist/lib/esm/ScriptUtils/esbuild/copyToObsidianPluginsFolderPlugin.d.mts +18 -1
  143. package/dist/lib/esm/ScriptUtils/esbuild/fixEsmPlugin.d.mts +11 -1
  144. package/dist/lib/esm/ScriptUtils/esbuild/fixSourceMapsPlugin.d.mts +17 -1
  145. package/dist/lib/esm/ScriptUtils/esbuild/index.d.mts +9 -1
  146. package/dist/lib/esm/ScriptUtils/esbuild/preprocessPlugin.d.mts +23 -1
  147. package/dist/lib/esm/ScriptUtils/esbuild/renameCssPlugin.d.mts +8 -1
  148. package/dist/lib/esm/ScriptUtils/esbuild/svelteWrapperPlugin.d.mts +8 -1
  149. package/dist/lib/esm/ScriptUtils/format.d.mts +10 -1
  150. package/dist/lib/esm/ScriptUtils/index.d.mts +17 -1
  151. package/dist/lib/esm/ScriptUtils/spellcheck.d.mts +14 -1
  152. package/dist/lib/esm/ScriptUtils/version.d.mts +171 -1
  153. package/dist/lib/esm/String.d.mts +138 -1
  154. package/dist/lib/esm/Transformers/DateTransformer.d.mts +35 -1
  155. package/dist/lib/esm/Transformers/DurationTransformer.d.mts +34 -1
  156. package/dist/lib/esm/Transformers/GroupTransformer.d.mts +65 -1
  157. package/dist/lib/esm/Transformers/SkipPrivatePropertyTransformer.d.mts +32 -1
  158. package/dist/lib/esm/Transformers/Transformer.d.mts +67 -1
  159. package/dist/lib/esm/Transformers/TypedTransformer.d.mts +37 -1
  160. package/dist/lib/esm/Transformers/index.d.mts +6 -1
  161. package/dist/lib/esm/ValueProvider.d.mts +22 -1
  162. package/dist/lib/esm/codemirror/StateFieldSpec.d.mts +68 -1
  163. package/dist/lib/esm/codemirror/index.d.mts +1 -1
  164. package/dist/lib/esm/index.d.mts +20 -1
  165. package/dist/lib/esm/obsidian/@types/Dataview/api/data-array.d.mts +136 -1
  166. package/dist/lib/esm/obsidian/@types/Dataview/api/extensions.d.mts +15 -1
  167. package/dist/lib/esm/obsidian/@types/Dataview/api/inline-api.d.mts +186 -1
  168. package/dist/lib/esm/obsidian/@types/Dataview/api/plugin-api.d.mts +209 -1
  169. package/dist/lib/esm/obsidian/@types/Dataview/api/result.d.mts +38 -1
  170. package/dist/lib/esm/obsidian/@types/Dataview/data-import/common.d.mts +3 -1
  171. package/dist/lib/esm/obsidian/@types/Dataview/data-import/csv.d.mts +3 -1
  172. package/dist/lib/esm/obsidian/@types/Dataview/data-import/inline-field.d.mts +42 -1
  173. package/dist/lib/esm/obsidian/@types/Dataview/data-import/markdown-file.d.mts +52 -1
  174. package/dist/lib/esm/obsidian/@types/Dataview/data-import/persister.d.mts +32 -1
  175. package/dist/lib/esm/obsidian/@types/Dataview/data-import/web-worker/import-entry.d.mts +1 -1
  176. package/dist/lib/esm/obsidian/@types/Dataview/data-import/web-worker/import-impl.d.mts +6 -1
  177. package/dist/lib/esm/obsidian/@types/Dataview/data-import/web-worker/import-manager.d.mts +37 -1
  178. package/dist/lib/esm/obsidian/@types/Dataview/data-index/index.d.mts +186 -1
  179. package/dist/lib/esm/obsidian/@types/Dataview/data-index/resolver.d.mts +23 -1
  180. package/dist/lib/esm/obsidian/@types/Dataview/data-index/source.d.mts +71 -1
  181. package/dist/lib/esm/obsidian/@types/Dataview/data-model/markdown.d.mts +115 -1
  182. package/dist/lib/esm/obsidian/@types/Dataview/data-model/serialized/markdown.d.mts +106 -1
  183. package/dist/lib/esm/obsidian/@types/Dataview/data-model/transferable.d.mts +7 -1
  184. package/dist/lib/esm/obsidian/@types/Dataview/data-model/value.d.mts +175 -1
  185. package/dist/lib/esm/obsidian/@types/Dataview/expression/binaryop.d.mts +43 -1
  186. package/dist/lib/esm/obsidian/@types/Dataview/expression/context.d.mts +49 -1
  187. package/dist/lib/esm/obsidian/@types/Dataview/expression/field.d.mts +82 -1
  188. package/dist/lib/esm/obsidian/@types/Dataview/expression/functions.d.mts +149 -1
  189. package/dist/lib/esm/obsidian/@types/Dataview/expression/parse.d.mts +163 -1
  190. package/dist/lib/esm/obsidian/@types/Dataview/index.d.mts +55 -1
  191. package/dist/lib/esm/obsidian/@types/Dataview/main.d.mts +52 -1
  192. package/dist/lib/esm/obsidian/@types/Dataview/query/engine.d.mts +103 -1
  193. package/dist/lib/esm/obsidian/@types/Dataview/query/parse.d.mts +44 -1
  194. package/dist/lib/esm/obsidian/@types/Dataview/query/query.d.mts +95 -1
  195. package/dist/lib/esm/obsidian/@types/Dataview/settings.d.mts +60 -1
  196. package/dist/lib/esm/obsidian/@types/Dataview/typings/obsidian-ex.d.mts +28 -1
  197. package/dist/lib/esm/obsidian/@types/Dataview/typings/workers.d.mts +4 -1
  198. package/dist/lib/esm/obsidian/@types/Dataview/ui/export/markdown.d.mts +15 -1
  199. package/dist/lib/esm/obsidian/@types/Dataview/ui/lp-render.d.mts +37 -1
  200. package/dist/lib/esm/obsidian/@types/Dataview/ui/markdown.d.mts +86 -1
  201. package/dist/lib/esm/obsidian/@types/Dataview/ui/refreshable-view.d.mts +18 -1
  202. package/dist/lib/esm/obsidian/@types/Dataview/ui/render.d.mts +33 -1
  203. package/dist/lib/esm/obsidian/@types/Dataview/ui/views/calendar-view.d.mts +17 -1
  204. package/dist/lib/esm/obsidian/@types/Dataview/ui/views/inline-field-live-preview.d.mts +42 -1
  205. package/dist/lib/esm/obsidian/@types/Dataview/ui/views/inline-view.d.mts +28 -1
  206. package/dist/lib/esm/obsidian/@types/Dataview/ui/views/js-view.d.mts +23 -1
  207. package/dist/lib/esm/obsidian/@types/Dataview/ui/views/list-view.d.mts +25 -1
  208. package/dist/lib/esm/obsidian/@types/Dataview/ui/views/table-view.d.mts +28 -1
  209. package/dist/lib/esm/obsidian/@types/Dataview/ui/views/task-view.d.mts +51 -1
  210. package/dist/lib/esm/obsidian/@types/Dataview/util/hash.d.mts +1 -1
  211. package/dist/lib/esm/obsidian/@types/Dataview/util/locale.d.mts +2 -1
  212. package/dist/lib/esm/obsidian/@types/Dataview/util/media.d.mts +6 -1
  213. package/dist/lib/esm/obsidian/@types/Dataview/util/normalize.d.mts +44 -1
  214. package/dist/lib/esm/obsidian/App.d.mts +30 -1
  215. package/dist/lib/esm/obsidian/AttachmentPath.d.mts +54 -1
  216. package/dist/lib/esm/obsidian/Backlink.d.mts +60 -1
  217. package/dist/lib/esm/obsidian/Callout.d.mts +55 -1
  218. package/dist/lib/esm/obsidian/Components/DateComponent.d.mts +36 -1
  219. package/dist/lib/esm/obsidian/Components/DateTimeComponent.d.mts +36 -1
  220. package/dist/lib/esm/obsidian/Components/EmailComponent.d.mts +29 -1
  221. package/dist/lib/esm/obsidian/Components/FileComponent.d.mts +41 -1
  222. package/dist/lib/esm/obsidian/Components/MonthComponent.d.mts +49 -1
  223. package/dist/lib/esm/obsidian/Components/MultipleDropdownComponent.d.mts +73 -1
  224. package/dist/lib/esm/obsidian/Components/MultipleEmailComponent.d.mts +36 -1
  225. package/dist/lib/esm/obsidian/Components/MultipleFileComponent.d.mts +41 -1
  226. package/dist/lib/esm/obsidian/Components/MultipleTextComponent.d.mts +67 -1
  227. package/dist/lib/esm/obsidian/Components/NumberComponent.d.mts +29 -1
  228. package/dist/lib/esm/obsidian/Components/TimeComponent.d.mts +37 -1
  229. package/dist/lib/esm/obsidian/Components/TypedRangeTextComponent.d.mts +31 -1
  230. package/dist/lib/esm/obsidian/Components/TypedTextComponent.d.mts +84 -1
  231. package/dist/lib/esm/obsidian/Components/UrlComponent.d.mts +29 -1
  232. package/dist/lib/esm/obsidian/Components/ValidatorComponent.d.mts +22 -1
  233. package/dist/lib/esm/obsidian/Components/ValueComponentWithChangeTracking.d.mts +17 -1
  234. package/dist/lib/esm/obsidian/Components/WeekComponent.d.mts +49 -1
  235. package/dist/lib/esm/obsidian/Components/index.d.mts +17 -1
  236. package/dist/lib/esm/obsidian/Dataview.d.mts +215 -1
  237. package/dist/lib/esm/obsidian/DataviewLink.d.mts +23 -1
  238. package/dist/lib/esm/obsidian/FileChange.d.mts +68 -1
  239. package/dist/lib/esm/obsidian/FileManager.d.mts +38 -1
  240. package/dist/lib/esm/obsidian/FileSystem.d.mts +185 -1
  241. package/dist/lib/esm/obsidian/Frontmatter.d.mts +69 -1
  242. package/dist/lib/esm/obsidian/Link.d.mts +366 -1
  243. package/dist/lib/esm/obsidian/Logger.d.mts +13 -1
  244. package/dist/lib/esm/obsidian/Loop.d.mts +36 -1
  245. package/dist/lib/esm/obsidian/Markdown.d.mts +24 -1
  246. package/dist/lib/esm/obsidian/MarkdownCodeBlockProcessor.d.mts +23 -1
  247. package/dist/lib/esm/obsidian/MarkdownView.d.mts +12 -1
  248. package/dist/lib/esm/obsidian/MetadataCache.d.mts +87 -1
  249. package/dist/lib/esm/obsidian/Modals/Alert.d.mts +39 -1
  250. package/dist/lib/esm/obsidian/Modals/Confirm.d.mts +43 -1
  251. package/dist/lib/esm/obsidian/Modals/ModalBase.d.mts +35 -1
  252. package/dist/lib/esm/obsidian/Modals/Prompt.d.mts +50 -1
  253. package/dist/lib/esm/obsidian/Modals/SelectItem.d.mts +41 -1
  254. package/dist/lib/esm/obsidian/Modals/index.d.mts +5 -1
  255. package/dist/lib/esm/obsidian/ObsidianSettings.d.mts +17 -1
  256. package/dist/lib/esm/obsidian/Pdf.d.mts +24 -1
  257. package/dist/lib/esm/obsidian/Plugin/EmptySettings.d.mts +14 -1
  258. package/dist/lib/esm/obsidian/Plugin/ObsidianPluginRepoPaths.d.mts +53 -1
  259. package/dist/lib/esm/obsidian/Plugin/Plugin.d.mts +21 -1
  260. package/dist/lib/esm/obsidian/Plugin/PluginBase.d.mts +108 -1
  261. package/dist/lib/esm/obsidian/Plugin/PluginContext.d.mts +12 -1
  262. package/dist/lib/esm/obsidian/Plugin/PluginId.d.mts +20 -1
  263. package/dist/lib/esm/obsidian/Plugin/PluginSettingsBase.d.mts +31 -1
  264. package/dist/lib/esm/obsidian/Plugin/PluginSettingsTabBase.d.mts +99 -1
  265. package/dist/lib/esm/obsidian/Plugin/index.d.mts +8 -1
  266. package/dist/lib/esm/obsidian/Queue.d.mts +30 -1
  267. package/dist/lib/esm/obsidian/Reference.d.mts +21 -1
  268. package/dist/lib/esm/obsidian/RenameDeleteHandler.d.mts +49 -1
  269. package/dist/lib/esm/obsidian/ResourceUrl.d.mts +14 -1
  270. package/dist/lib/esm/obsidian/SettingEx.d.mts +124 -1
  271. package/dist/lib/esm/obsidian/Vault.d.mts +130 -1
  272. package/dist/lib/esm/obsidian/VaultEx.d.mts +27 -1
  273. package/dist/lib/esm/obsidian/index.d.mts +29 -1
  274. package/dist/lib/esm/url.d.mts +11 -1
  275. package/package.json +1 -1
@@ -1 +1,43 @@
1
- export * from '../../../cjs/obsidian/Modals/Confirm.cjs';
1
+ /**
2
+ * @packageDocumentation Confirm
3
+ * Utility for displaying confirm modals in Obsidian.
4
+ *
5
+ * This module exports a function to display a modal with a message in Obsidian. The modal includes "OK" and "Cancel" buttons to confirm or cancel the action.
6
+ */
7
+ import type { App } from 'obsidian';
8
+ /**
9
+ * The options for the confirm modal.
10
+ */
11
+ export interface ConfirmOptions {
12
+ /**
13
+ * The Obsidian app instance.
14
+ */
15
+ app: App;
16
+ /**
17
+ * The text for the "Cancel" button.
18
+ */
19
+ cancelButtonText?: string;
20
+ /**
21
+ * The CSS class to apply to the modal.
22
+ */
23
+ cssClass?: string;
24
+ /**
25
+ * The message to display in the modal.
26
+ */
27
+ message: DocumentFragment | string;
28
+ /**
29
+ * The text for the "OK" button.
30
+ */
31
+ okButtonText?: string;
32
+ /**
33
+ * The title of the modal.
34
+ */
35
+ title?: DocumentFragment | string;
36
+ }
37
+ /**
38
+ * Displays an confirm modal in Obsidian with a specified message.
39
+ *
40
+ * @param options - The options for the confirm modal.
41
+ * @returns A promise that resolves with a boolean indicating whether the "OK" button was clicked.
42
+ */
43
+ export declare function confirm(options: ConfirmOptions): Promise<boolean>;
@@ -1 +1,35 @@
1
- export * from '../../../cjs/obsidian/Modals/ModalBase.cjs';
1
+ /**
2
+ * @packageDocumentation ModalBase
3
+ *
4
+ * This module exports a base class for displaying modals in Obsidian.
5
+ */
6
+ import type { App } from 'obsidian';
7
+ import { Modal } from 'obsidian';
8
+ import type { PromiseResolve } from '../../Async.d.mts';
9
+ /**
10
+ * The base options for a modal.
11
+ */
12
+ export interface ModalOptionsBase {
13
+ /**
14
+ * The application instance.
15
+ */
16
+ app: App;
17
+ /**
18
+ * The CSS class to apply to the modal.
19
+ */
20
+ cssClass?: string;
21
+ }
22
+ /**
23
+ * A base class for displaying modals in Obsidian.
24
+ */
25
+ export declare abstract class ModalBase<Value, Options extends ModalOptionsBase> extends Modal {
26
+ protected resolve: PromiseResolve<Value>;
27
+ constructor(options: Options, resolve: PromiseResolve<Value>, modalCssClass: string);
28
+ }
29
+ /**
30
+ * Displays a modal in Obsidian.
31
+ *
32
+ * @param modalCreator - A function that creates a modal.
33
+ * @returns A promise that resolves when the modal is closed.
34
+ */
35
+ export declare function showModal<T>(modalCreator: (resolve: PromiseResolve<T>) => Modal): Promise<T>;
@@ -1 +1,50 @@
1
- export * from '../../../cjs/obsidian/Modals/Prompt.cjs';
1
+ /**
2
+ * @packageDocumentation Prompt
3
+ * Utility for displaying a prompt modal in Obsidian.
4
+ *
5
+ * This module exports a function to display a modal that prompts the user for input. The modal includes "OK" and "Cancel" buttons.
6
+ */
7
+ import type { App } from 'obsidian';
8
+ import type { MaybePromise } from '../../Async.d.mts';
9
+ /**
10
+ * The options for the prompt modal.
11
+ */
12
+ export interface PromptOptions {
13
+ /**
14
+ * The Obsidian app instance.
15
+ */
16
+ app: App;
17
+ /**
18
+ * The text for the "Cancel" button.
19
+ */
20
+ cancelButtonText?: string;
21
+ /**
22
+ * The default value to pre-fill the input field.
23
+ */
24
+ defaultValue?: string;
25
+ /**
26
+ * The text for the "OK" button.
27
+ */
28
+ okButtonText?: string;
29
+ /**
30
+ * The placeholder text for the input field.
31
+ */
32
+ placeholder?: string;
33
+ /**
34
+ * The title of the modal.
35
+ */
36
+ title?: DocumentFragment | string;
37
+ /**
38
+ * A function to validate the input value.
39
+ * @param value - The input value to validate.
40
+ * @returns an error message if the value is invalid, or null if the value is valid.
41
+ */
42
+ valueValidator?: (value: string) => MaybePromise<string | void>;
43
+ }
44
+ /**
45
+ * Displays a prompt modal in Obsidian to get user input.
46
+ *
47
+ * @param options - The options for the prompt modal.
48
+ * @returns A promise that resolves with the user input or null if the prompt was cancelled.
49
+ */
50
+ export declare function prompt(options: PromptOptions): Promise<null | string>;
@@ -1 +1,41 @@
1
- export * from '../../../cjs/obsidian/Modals/SelectItem.cjs';
1
+ /**
2
+ * @packageDocumentation selectItem
3
+ * Utility for displaying a selection modal in Obsidian.
4
+ *
5
+ * This module exports a function to display a modal that allows the user to select an item from a list. The modal uses fuzzy search to help the user find the item.
6
+ */
7
+ import { App } from 'obsidian';
8
+ /**
9
+ * The parameters for the selection modal.
10
+ */
11
+ export interface SelectItemOptions<T> {
12
+ /**
13
+ * The Obsidian app instance.
14
+ */
15
+ app: App;
16
+ /**
17
+ * The CSS class to apply to the modal.
18
+ */
19
+ cssClass?: string;
20
+ /**
21
+ * The list of items to choose from.
22
+ */
23
+ items: T[];
24
+ /**
25
+ * A function to get the display text for each item
26
+ * @param item - The item to get the display text for.
27
+ * @returns The display text for the item.
28
+ */
29
+ itemTextFunc: (item: T) => string;
30
+ /**
31
+ * The placeholder text for the input field.
32
+ */
33
+ placeholder?: string;
34
+ }
35
+ /**
36
+ * Displays a selection modal in Obsidian for choosing an item from a list.
37
+ *
38
+ * @param options - The options for the selection modal.
39
+ * @returns A promise that resolves with the selected item or null if no item was selected.
40
+ */
41
+ export declare function selectItem<T>(options: SelectItemOptions<T>): Promise<null | T>;
@@ -1 +1,5 @@
1
- export * from '../../../cjs/obsidian/Modals/index.cjs';
1
+ export * as Alert from './Alert.ts';
2
+ export * as Confirm from './Confirm.ts';
3
+ export * as ModalBase from './ModalBase.ts';
4
+ export * as Prompt from './Prompt.ts';
5
+ export * as SelectItem from './SelectItem.ts';
@@ -1 +1,17 @@
1
- export * from '../../cjs/obsidian/ObsidianSettings.cjs';
1
+ /**
2
+ * @packageDocumentation
3
+ * This module provides utility functions for working with Obsidian settings.
4
+ */
5
+ import type { App } from 'obsidian';
6
+ /**
7
+ * Retrieves whether to use relative links based on the Obsidian settings.
8
+ * @param app - The Obsidian app instance.
9
+ * @returns Whether to use relative links.
10
+ */
11
+ export declare function shouldUseRelativeLinks(app: App): boolean;
12
+ /**
13
+ * Retrieves whether to use wikilinks based on the Obsidian settings.
14
+ * @param app - The Obsidian app instance.
15
+ * @returns Whether to use wikilinks.
16
+ */
17
+ export declare function shouldUseWikilinks(app: App): boolean;
@@ -1 +1,24 @@
1
- export * from '../../cjs/obsidian/Pdf.cjs';
1
+ /**
2
+ * @packageDocumentation Pdf
3
+ * Contains utility functions for printing to PDF.
4
+ */
5
+ interface PrintToPdfOptions {
6
+ filepath: string;
7
+ includeName: boolean;
8
+ landscape: boolean;
9
+ marginsType: number;
10
+ open: boolean;
11
+ pageSize: string;
12
+ scale: number;
13
+ scaleFactor: number;
14
+ }
15
+ /**
16
+ * Print the given element to a PDF file.
17
+ *
18
+ * Works only on desktop.
19
+ *
20
+ * @param el - The element to print.
21
+ * @param options - The options to use for the print.
22
+ */
23
+ export declare function printToPdf(el: HTMLElement, options: Partial<PrintToPdfOptions>): Promise<void>;
24
+ export {};
@@ -1 +1,14 @@
1
- export * from '../../../cjs/obsidian/Plugin/EmptySettings.cjs';
1
+ /**
2
+ * @packageDocumentation EmptySettings
3
+ * Empty settings class.
4
+ */
5
+ import type { PluginSettingsBase } from './PluginSettingsBase.d.mts';
6
+ /**
7
+ * @packageDocumentation EmptySettings
8
+ * Empty settings class.
9
+ */
10
+ /**
11
+ * Empty settings class.
12
+ */
13
+ export declare class EmptySettings extends PluginSettingsBase {
14
+ }
@@ -1 +1,53 @@
1
- export * from '../../../cjs/obsidian/Plugin/ObsidianPluginRepoPaths.cjs';
1
+ /**
2
+ * @packageDocumentation ObsidianPluginRepoPaths
3
+ * This file defines an enumeration for common file and directory paths used in Obsidian plugin development.
4
+ */
5
+ /**
6
+ * Enumeration of commonly used file and directory paths in Obsidian plugin development.
7
+ */
8
+ export declare enum ObsidianPluginRepoPaths {
9
+ /** Represents any path recursively. */
10
+ AnyPath = "**",
11
+ /** Represents any TypeScript file. */
12
+ AnyTs = "*.ts",
13
+ /** Represents the changelog file. */
14
+ ChangelogMd = "CHANGELOG.md",
15
+ /** Represents the current directory. */
16
+ CurrentDir = ".",
17
+ /** Represents the distribution directory. */
18
+ Dist = "dist",
19
+ /** Represents the build directory within the distribution directory. */
20
+ DistBuild = "dist/build",
21
+ /** Represents the development directory within the distribution directory. */
22
+ DistDev = "dist/dev",
23
+ /** Represents the ESLint configuration file. */
24
+ EslintConfigMjs = "eslint.config.mjs",
25
+ /** Represents the hot reload file. */
26
+ HotReload = ".hotreload",
27
+ /** Represents the lib directory. */
28
+ Lib = "lib",
29
+ /** Represents the main CSS file. */
30
+ MainCss = "main.css",
31
+ /** Represents the main JavaScript file. */
32
+ MainJs = "main.js",
33
+ /** Represents the main TypeScript file. */
34
+ MainTs = "main.ts",
35
+ /** Represents the manifest file for beta releases. */
36
+ ManifestBetaJson = "manifest-beta.json",
37
+ /** Represents the manifest file. */
38
+ ManifestJson = "manifest.json",
39
+ /** Represents the npm-shrinkwrap.json file. */
40
+ NpmShrinkwrapJson = "npm-shrinkwrap.json",
41
+ /** Represents the package.json file. */
42
+ PackageJson = "package.json",
43
+ /** Represents the package-lock.json file. */
44
+ PackageLockJson = "package-lock.json",
45
+ /** Represents the source directory. */
46
+ Src = "src",
47
+ /** Represents the styles.css file. */
48
+ StylesCss = "styles.css",
49
+ /** Represents the TypeScript configuration file. */
50
+ TsConfigJson = "tsconfig.json",
51
+ /** Represents the versions.json file. */
52
+ VersionsJson = "versions.json"
53
+ }
@@ -1 +1,21 @@
1
- export * from '../../../cjs/obsidian/Plugin/Plugin.cjs';
1
+ /**
2
+ * @packageDocumentation Plugin
3
+ * This module provides utility functions for managing Obsidian plugins,
4
+ * including displaying error messages, disabling plugins, and reloading them.
5
+ */
6
+ import { Plugin } from 'obsidian';
7
+ /**
8
+ * Reloads the specified plugin by disabling and then re-enabling it.
9
+ *
10
+ * @param plugin - The plugin to reload.
11
+ * @returns A promise that resolves when the plugin is reloaded.
12
+ */
13
+ export declare function reloadPlugin(plugin: Plugin): Promise<void>;
14
+ /**
15
+ * Displays an error message as a notice, logs it to the console, and disables the specified plugin.
16
+ *
17
+ * @param plugin - The plugin to disable.
18
+ * @param message - The error message to display and log.
19
+ * @returns A promise that resolves when the plugin is disabled.
20
+ */
21
+ export declare function showErrorAndDisablePlugin(plugin: Plugin, message: string): Promise<void>;
@@ -1 +1,108 @@
1
- export * from '../../../cjs/obsidian/Plugin/PluginBase.cjs';
1
+ /**
2
+ * @packageDocumentation PluginBase
3
+ * Base class for Obsidian plugins providing utility methods for settings management, error handling, and notifications.
4
+ *
5
+ * This class simplifies the process of managing plugin settings, displaying notifications, and handling errors.
6
+ * Subclasses should implement methods to create default settings and settings tabs, and complete plugin-specific
7
+ * loading tasks.
8
+ */
9
+ import type { ReadonlyDeep } from 'type-fest';
10
+ import { Plugin, PluginSettingTab } from 'obsidian';
11
+ import type { MaybePromise } from '../../Async.d.mts';
12
+ import type { EmptySettings } from './EmptySettings.d.mts';
13
+ import type { PluginSettingsBase } from './PluginSettingsBase.d.mts';
14
+ /**
15
+ * Base class for creating Obsidian plugins with built-in support for settings management, error handling, and notifications.
16
+ *
17
+ * @typeParam PluginSettings - The type representing the plugin settings object.
18
+ */
19
+ export declare abstract class PluginBase<PluginSettings extends PluginSettingsBase = EmptySettings> extends Plugin {
20
+ /**
21
+ * Gets the AbortSignal used for aborting long-running operations.
22
+ *
23
+ * @returns The abort signal.
24
+ */
25
+ get abortSignal(): AbortSignal;
26
+ /**
27
+ * Gets the readonly plugin settings.
28
+ *
29
+ * @returns The readonly plugin settings.
30
+ */
31
+ get settings(): ReadonlyDeep<PluginSettings>;
32
+ /**
33
+ * Gets a writable copy of the plugin settings.
34
+ *
35
+ * @returns A writable copy of the plugin settings.
36
+ */
37
+ get settingsClone(): PluginSettings;
38
+ private _abortSignal;
39
+ private _settings;
40
+ private notice?;
41
+ /**
42
+ * Logs a message to the console.
43
+ *
44
+ * Use instead of `console.debug()`.
45
+ *
46
+ * Those messages are not shown by default, but they can be shown by enabling `your-plugin-id` debugger namespace.
47
+ *
48
+ * @see {@link https://github.com/mnaoumov/obsidian-dev-utils/?tab=readme-ov-file#debugging} for more information.
49
+ *
50
+ * @param message - The message to log.
51
+ * @param args - The arguments to log.
52
+ */
53
+ consoleDebug(message: string, ...args: unknown[]): void;
54
+ /**
55
+ * Called when the external settings change.
56
+ */
57
+ onExternalSettingsChange(): Promise<void>;
58
+ /**
59
+ * Called when the plugin is loaded
60
+ */
61
+ onload(): Promise<void>;
62
+ /**
63
+ * Saves the new plugin settings.
64
+ *
65
+ * @param newSettings - The new settings to save.
66
+ * @returns A promise that resolves when the settings are saved.
67
+ */
68
+ saveSettings(newSettings: PluginSettings): Promise<void>;
69
+ /**
70
+ * Creates the plugin settings. This method must be implemented by subclasses.
71
+ *
72
+ * @param data - The data to create the plugin settings from.
73
+ * @returns The plugin settings.
74
+ */
75
+ protected abstract createPluginSettings(data: unknown): PluginSettings;
76
+ /**
77
+ * Creates a plugin settings tab. This method must be implemented by subclasses.
78
+ *
79
+ * @returns The settings tab or null if not applicable.
80
+ */
81
+ protected abstract createPluginSettingsTab(): null | PluginSettingTab;
82
+ /**
83
+ * Called when the layout is ready. This method can be overridden by subclasses to perform actions once
84
+ * the layout is ready.
85
+ *
86
+ * @returns A promise or void indicating the completion of the layout setup.
87
+ */
88
+ protected onLayoutReady(): MaybePromise<void>;
89
+ /**
90
+ * Called when the plugin loading is complete. This method must be implemented by subclasses to perform
91
+ * any additional setup required after loading is complete.
92
+ *
93
+ * @returns A promise or void indicating the completion of the load process.
94
+ */
95
+ protected onloadComplete(): MaybePromise<void>;
96
+ /**
97
+ * Displays a notice message to the user.
98
+ *
99
+ * @param message - The message to display.
100
+ */
101
+ protected showNotice(message: string): void;
102
+ /**
103
+ * Loads the plugin settings from the saved data.
104
+ *
105
+ * @returns A promise that resolves when the settings are loaded.
106
+ */
107
+ private loadSettings;
108
+ }
@@ -1 +1,12 @@
1
- export * from '../../../cjs/obsidian/Plugin/PluginContext.cjs';
1
+ /**
2
+ * @packageDocumentation PluginContext
3
+ * Initializes the plugin context and sets up the plugin ID.
4
+ */
5
+ import type { App } from 'obsidian';
6
+ /**
7
+ * Initializes the plugin context.
8
+ *
9
+ * @param app - The Obsidian app instance.
10
+ * @param pluginId - The plugin ID.
11
+ */
12
+ export declare function initPluginContext(app: App, pluginId: string): void;
@@ -1 +1,20 @@
1
- export * from '../../../cjs/obsidian/Plugin/PluginId.cjs';
1
+ /**
2
+ * @packageDocumentation PluginId
3
+ * Holder for the plugin ID.
4
+ */
5
+ /**
6
+ * The plugin ID for no plugin.
7
+ */
8
+ export declare const NO_PLUGIN_ID_INITIALIZED = "__no-plugin-id-initialized__";
9
+ /**
10
+ * Returns the plugin ID.
11
+ *
12
+ * @returns The plugin ID.
13
+ */
14
+ export declare function getPluginId(): string;
15
+ /**
16
+ * Sets the plugin ID.
17
+ *
18
+ * @param newPluginId - The new plugin ID.
19
+ */
20
+ export declare function setPluginId(newPluginId: string): void;
@@ -1 +1,31 @@
1
- export * from '../../../cjs/obsidian/Plugin/PluginSettingsBase.cjs';
1
+ /**
2
+ * @packageDocumentation PluginSettingsBase
3
+ * Base class for plugin settings.
4
+ */
5
+ import type { Transformer } from '../../Transformers/Transformer.d.mts';
6
+ /**
7
+ * Base class for plugin settings.
8
+ */
9
+ export declare abstract class PluginSettingsBase {
10
+ /**
11
+ * Determines if the settings should be saved after loading.
12
+ *
13
+ * @returns A boolean indicating whether the settings should be saved after loading.
14
+ */
15
+ get shouldSaveAfterLoad(): boolean;
16
+ protected _shouldSaveAfterLoad: boolean;
17
+ /**
18
+ * Initializes the settings from JSON data.
19
+ *
20
+ * @param data - The data to initialize the settings from.
21
+ */
22
+ init(data: unknown): void;
23
+ /**
24
+ * Converts the settings to a JSON object.
25
+ *
26
+ * @returns The settings as a JSON object.
27
+ */
28
+ toJSON(): Record<string, unknown>;
29
+ protected getTransformer(): Transformer;
30
+ protected initFromRecord(record: Record<string, unknown>): void;
31
+ }
@@ -1 +1,99 @@
1
- export * from '../../../cjs/obsidian/Plugin/PluginSettingsTabBase.cjs';
1
+ /**
2
+ * @packageDocumentation PluginSettingsTabBase
3
+ * This module defines a base class for creating plugin setting tabs in Obsidian.
4
+ * It provides a utility method to bind value components to plugin settings and handle changes.
5
+ */
6
+ import type { BaseComponent } from 'obsidian';
7
+ import { PluginSettingTab } from 'obsidian';
8
+ import type { MaybePromise } from '../../Async.d.mts';
9
+ import type { KeysMatching } from '../../Object.d.mts';
10
+ import type { ValueComponentWithChangeTracking } from '../Components/ValueComponentWithChangeTracking.d.mts';
11
+ import type { PluginSettingsBase } from './PluginSettingsBase.d.mts';
12
+ import type { PluginBase } from './PluginBase.d.mts';
13
+ /**
14
+ * Options for binding a value component to a plugin setting.
15
+ */
16
+ export interface BindOptions<PluginSettings, UIValue> {
17
+ /**
18
+ * A callback function that is called when the value of the component changes.
19
+ */
20
+ onChanged?: () => MaybePromise<void>;
21
+ /**
22
+ * The plugin settings object to bind the component to. Default is the plugin's current settings.
23
+ */
24
+ pluginSettings?: PluginSettings;
25
+ /**
26
+ * If true, saves the plugin settings automatically after the component value changes. Default is `true`.
27
+ */
28
+ shouldAutoSave?: boolean;
29
+ /**
30
+ * If true, shows the validation message when the component value is invalid. Default is `true`.
31
+ */
32
+ shouldShowValidationMessage?: boolean;
33
+ /**
34
+ * Validates the UI value before setting it on the plugin settings.
35
+ * @param uiValue - The value of the UI component.
36
+ * @returns An error message if the value is invalid, or `(empty string)` or `void` if it is valid.
37
+ */
38
+ valueValidator?: (uiValue: UIValue) => MaybePromise<string | void>;
39
+ }
40
+ /**
41
+ * Extended options for binding a value component to a plugin setting.
42
+ */
43
+ export interface BindOptionsExtended<PluginSettings, UIValue, Property extends keyof PluginSettings> extends BindOptions<PluginSettings, UIValue> {
44
+ /**
45
+ * Converts the UI component's value back to the plugin settings value.
46
+ * @param uiValue - The value of the UI component.
47
+ * @returns The value to set on the plugin settings.
48
+ */
49
+ componentToPluginSettingsValueConverter: (uiValue: UIValue) => PluginSettings[Property];
50
+ /**
51
+ * Converts the plugin settings value to the value used by the UI component.
52
+ * @param pluginSettingsValue - The value of the property in the plugin settings.
53
+ * @returns The value to set on the UI component.
54
+ */
55
+ pluginSettingsToComponentValueConverter: (pluginSettingsValue: PluginSettings[Property]) => UIValue;
56
+ }
57
+ type ExtractPluginSettings<T extends PluginBase<any>> = PluginSettingsBase & T['settingsClone'];
58
+ /**
59
+ * Base class for creating plugin settings tabs in Obsidian.
60
+ * Provides a method for binding value components to plugin settings and handling changes.
61
+ *
62
+ * @typeParam TPlugin - The type of the plugin that extends PluginBase.
63
+ */
64
+ export declare abstract class PluginSettingsTabBase<TPlugin extends PluginBase<any>> extends PluginSettingTab {
65
+ plugin: TPlugin;
66
+ private validatorsMap;
67
+ constructor(plugin: TPlugin);
68
+ /**
69
+ * Binds a value component to a plugin setting.
70
+ *
71
+ * @typeParam UIValue - The type of the value of the UI component.
72
+ * @typeParam TValueComponent - The type of the value component.
73
+ * @param valueComponent - The value component to bind.
74
+ * @param property - The property of the plugin settings to bind to.
75
+ * @param options - The options for binding the value component.
76
+ * @returns The value component.
77
+ */
78
+ protected bind<UIValue, TValueComponent>(valueComponent: TValueComponent & ValueComponentWithChangeTracking<UIValue>, property: KeysMatching<ExtractPluginSettings<TPlugin>, UIValue>, options?: BindOptions<ExtractPluginSettings<TPlugin>, UIValue>): TValueComponent;
79
+ /**
80
+ * Binds a value component to a plugin setting.
81
+ *
82
+ * @typeParam UIValue - The type of the value of the UI component.
83
+ * @typeParam TValueComponent - The type of the value component.
84
+ * @typeParam Property - The property of the plugin settings to bind to.
85
+ * @param valueComponent - The value component to bind.
86
+ * @param property - The property of the plugin settings to bind to.
87
+ * @param options - The options for binding the value component.
88
+ * @returns The value component.
89
+ */
90
+ protected bind<UIValue, TValueComponent, Property extends keyof ExtractPluginSettings<TPlugin>>(valueComponent: TValueComponent & ValueComponentWithChangeTracking<UIValue>, property: Property, options: BindOptionsExtended<ExtractPluginSettings<TPlugin>, UIValue, Property>): TValueComponent;
91
+ /**
92
+ * Revalidates the value component.
93
+ *
94
+ * @param baseComponent - The base component to revalidate.
95
+ * @returns A promise that resolves to a boolean indicating whether the value component is valid.
96
+ */
97
+ protected revalidate(baseComponent: BaseComponent): Promise<boolean>;
98
+ }
99
+ export {};
@@ -1 +1,8 @@
1
- export * from '../../../cjs/obsidian/Plugin/index.cjs';
1
+ export * as EmptySettings from './EmptySettings.ts';
2
+ export * as ObsidianPluginRepoPaths from './ObsidianPluginRepoPaths.ts';
3
+ export * as Plugin from './Plugin.ts';
4
+ export * as PluginBase from './PluginBase.ts';
5
+ export * as PluginContext from './PluginContext.ts';
6
+ export * as PluginId from './PluginId.ts';
7
+ export * as PluginSettingsBase from './PluginSettingsBase.ts';
8
+ export * as PluginSettingsTabBase from './PluginSettingsTabBase.ts';
@@ -1 +1,30 @@
1
- export * from '../../cjs/obsidian/Queue.cjs';
1
+ /**
2
+ * @packageDocumentation Queue
3
+ * Contains utility functions for enqueuing and processing functions in Obsidian.
4
+ */
5
+ import type { App } from 'obsidian';
6
+ import type { MaybePromise } from '../Async.d.mts';
7
+ /**
8
+ * Adds an asynchronous function to be executed after the previous function completes.
9
+ *
10
+ * @param app - The Obsidian application instance.
11
+ * @param fn - The function to add.
12
+ * @param timeoutInMilliseconds - The timeout in milliseconds.
13
+ * @param stackTrace - Optional stack trace.
14
+ */
15
+ export declare function addToQueue(app: App, fn: () => MaybePromise<void>, timeoutInMilliseconds?: number, stackTrace?: string): void;
16
+ /**
17
+ * Adds an asynchronous function to be executed after the previous function completes and returns a promise that resolves when the function completes.
18
+ *
19
+ * @param app - The Obsidian application instance.
20
+ * @param fn - The function to add.
21
+ * @param timeoutInMilliseconds - The timeout in milliseconds.
22
+ * @param stackTrace - Optional stack trace.
23
+ */
24
+ export declare function addToQueueAndWait(app: App, fn: () => MaybePromise<void>, timeoutInMilliseconds?: number, stackTrace?: string): Promise<void>;
25
+ /**
26
+ * Flushes the queue;
27
+ *
28
+ * @param app - The Obsidian application instance.
29
+ */
30
+ export declare function flushQueue(app: App): Promise<void>;
@@ -1 +1,21 @@
1
- export * from '../../cjs/obsidian/Reference.cjs';
1
+ /**
2
+ * @packageDocumentation Reference
3
+ * Contains utility functions for handling references in Obsidian.
4
+ */
5
+ import type { Reference } from 'obsidian';
6
+ import type { FileChange } from './FileChange.d.mts';
7
+ /**
8
+ * Converts a reference to a file change.
9
+ *
10
+ * @param reference - The reference to convert.
11
+ * @param newContent - The new content for the reference.
12
+ * @returns The file change.
13
+ */
14
+ export declare function referenceToFileChange(reference: Reference, newContent: string): FileChange;
15
+ /**
16
+ * Sorts references by their type and position.
17
+ *
18
+ * @param references - The references to sort.
19
+ * @returns The sorted references.
20
+ */
21
+ export declare function sortReferences(references: Reference[]): Reference[];