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

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 +4 -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 +3 -3
  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 +4 -4
  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 +4 -4
  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 +5 -5
  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 +1 -1
  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 +1 -1
  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,151 @@
1
- export * from '../../cjs/ScriptUtils/Npm.cjs';
1
+ /**
2
+ * @packageDocumentation Npm
3
+ * Contains utility functions for NPM package.json.
4
+ */
5
+ import type { PackageJson } from 'type-fest';
6
+ import type { MaybePromise } from '../Async.d.mts';
7
+ /**
8
+ * Options for editing a package.json file.
9
+ */
10
+ export interface EditPackageJsonOptions {
11
+ /**
12
+ * The current working directory where `package.json` is located.
13
+ */
14
+ cwd?: string;
15
+ /**
16
+ * If true, skips editing if the file does not exist.
17
+ */
18
+ shouldSkipIfMissing?: boolean;
19
+ }
20
+ /**
21
+ * The type of the `package.json` file.
22
+ */
23
+ export type { PackageJson };
24
+ /**
25
+ * The type of the `package-lock.json` file.
26
+ */
27
+ export interface PackageLockJson extends Partial<PackageJson> {
28
+ /**
29
+ * The packages in the `package-lock.json` file.
30
+ */
31
+ packages?: Record<string, PackageJson>;
32
+ }
33
+ /**
34
+ * Reads, edits, and writes back the `package-lock.json` file using the provided edit function.
35
+ *
36
+ * @param editFn - The function to edit the parsed `PackageJson` object.
37
+ * @param options - Additional options for editing.
38
+ * @returns A promise that resolves when the file has been edited and written.
39
+ */
40
+ export declare function editNpmShrinkWrapJson(editFn: (packageLockJson: PackageLockJson) => MaybePromise<void>, options?: EditPackageJsonOptions): Promise<void>;
41
+ /**
42
+ * Reads, edits, and writes back the `package.json` file using the provided edit function.
43
+ *
44
+ * @param editFn - The function to edit the parsed `PackageJson` object.
45
+ * @param options - Additional options for editing.
46
+ * @returns A promise that resolves when the file has been edited and written.
47
+ */
48
+ export declare function editPackageJson(editFn: (packageJson: PackageJson) => MaybePromise<void>, options?: EditPackageJsonOptions): Promise<void>;
49
+ /**
50
+ * Reads, edits, and writes back the `package.json` file using the provided edit function.
51
+ *
52
+ * @param editFn - The function to edit the parsed `PackageJson` object.
53
+ * @param options - Additional options for editing.
54
+ * @returns A promise that resolves when the file has been edited and written.
55
+ */
56
+ export declare function editPackageJsonSync(editFn: (packageJson: PackageJson) => void, options?: EditPackageJsonOptions): void;
57
+ /**
58
+ * Reads, edits, and writes back the `package-lock.json` file using the provided edit function.
59
+ *
60
+ * @param editFn - The function to edit the parsed `PackageJson` object.
61
+ * @param options - Additional options for editing.
62
+ * @returns A promise that resolves when the file has been edited and written.
63
+ */
64
+ export declare function editPackageLockJson(editFn: (packageLockJson: PackageLockJson) => MaybePromise<void>, options?: EditPackageJsonOptions): Promise<void>;
65
+ /**
66
+ * Reads, edits, and writes back the `package-lock.json` file using the provided edit function.
67
+ *
68
+ * @param editFn - The function to edit the parsed `PackageLockJson` object.
69
+ * @param options - Additional options for editing.
70
+ * @returns A promise that resolves when the file has been edited and written.
71
+ */
72
+ export declare function editPackageLockJsonSync(editFn: (packageLockJson: PackageLockJson) => void, options?: EditPackageJsonOptions): void;
73
+ /**
74
+ * Resolves the path to the `npm-shrinkwrap.json` file in the specified directory or in the root if no directory is specified.
75
+ *
76
+ * @param cwd - The current working directory where `npm-shrinkwrap.json` is located.
77
+ * @returns The resolved path to the `npm-shrinkwrap.json` file.
78
+ */
79
+ export declare function getNpmShrinkWrapJsonPath(cwd?: string): string;
80
+ /**
81
+ * Resolves the path to the `package.json` file in the specified directory or in the root if no directory is specified.
82
+ *
83
+ * @param cwd - The current working directory where `package.json` is located.
84
+ * @returns The resolved path to the `package.json` file.
85
+ */
86
+ export declare function getPackageJsonPath(cwd?: string): string;
87
+ /**
88
+ * Resolves the path to the `package-lock.json` file in the specified directory or in the root if no directory is specified.
89
+ *
90
+ * @param cwd - The current working directory where `package-lock.json` is located.
91
+ * @returns The resolved path to the `package-lock.json` file.
92
+ */
93
+ export declare function getPackageLockJsonPath(cwd?: string): string;
94
+ /**
95
+ * Reads the `package.json` file from the specified directory or from the root if no directory is specified.
96
+ *
97
+ * @param cwd - The current working directory where `package.json` is located.
98
+ * @returns A promise that resolves with the parsed `PackageJson` object.
99
+ */
100
+ export declare function readPackageJson(cwd?: string): Promise<PackageJson>;
101
+ /**
102
+ * Reads the `package.json` file from the specified directory or from the root if no directory is specified.
103
+ *
104
+ * @param cwd - The current working directory where `package.json` is located.
105
+ * @returns The parsed `PackageJson` object.
106
+ */
107
+ export declare function readPackageJsonSync(cwd?: string): PackageJson;
108
+ /**
109
+ * Reads the `package-lock.json` file from the specified directory or from the root if no directory is specified.
110
+ *
111
+ * @param cwd - The current working directory where `package-lock.json` is located.
112
+ * @returns A promise that resolves with the parsed `PackageJson` object.
113
+ */
114
+ export declare function readPackageLockJson(cwd?: string): Promise<PackageLockJson>;
115
+ /**
116
+ * Reads the `package-lock.json` file from the specified directory or from the root if no directory is specified.
117
+ *
118
+ * @param cwd - The current working directory where `package-lock.json` is located.
119
+ * @returns The parsed `PackageLockJson` object.
120
+ */
121
+ export declare function readPackageLockJsonSync(cwd?: string): PackageLockJson;
122
+ /**
123
+ * Writes the provided `PackageJson` object to the `package.json` file in the specified directory or in the root.
124
+ *
125
+ * @param packageJson - The `PackageJson` object to write.
126
+ * @param cwd - The current working directory where `package.json` is located.
127
+ * @returns A promise that resolves when the file has been written.
128
+ */
129
+ export declare function writePackageJson(packageJson: PackageJson, cwd?: string): Promise<void>;
130
+ /**
131
+ * Writes the provided `PackageJson` object to the `package.json` file in the specified directory or in the root.
132
+ *
133
+ * @param packageJson - The `PackageJson` object to write.
134
+ * @param cwd - The current working directory where `package.json` is located.
135
+ */
136
+ export declare function writePackageJsonSync(packageJson: PackageJson, cwd?: string): void;
137
+ /**
138
+ * Writes the provided `PackageJson` object to the `package-lock.json` file in the specified directory or in the root.
139
+ *
140
+ * @param packageLockJson - The `PackageLockJson` object to write.
141
+ * @param cwd - The current working directory where `package-lock.json` is located.
142
+ * @returns A promise that resolves when the file has been written.
143
+ */
144
+ export declare function writePackageLockJson(packageLockJson: PackageLockJson, cwd?: string): Promise<void>;
145
+ /**
146
+ * Writes the provided `PackageLockJson` object to the `package-lock.json` file in the specified directory or in the root.
147
+ *
148
+ * @param packageLockJson - The `PackageLockJson` object to write.
149
+ * @param cwd - The current working directory where `package-lock.json` is located.
150
+ */
151
+ export declare function writePackageLockJsonSync(packageLockJson: PackageLockJson, cwd?: string): void;
@@ -1 +1,9 @@
1
- export * from '../../cjs/ScriptUtils/NpmPublish.cjs';
1
+ /**
2
+ * @packageDocumentation NpmPublish
3
+ * Contains utility functions for NPM publish.
4
+ */
5
+ /**
6
+ * Publish to NPM.
7
+ * @param isBeta - Whether to publish to the beta NPM registry.
8
+ */
9
+ export declare function publish(isBeta?: boolean): Promise<void>;
@@ -1 +1,106 @@
1
- export * from '../../cjs/ScriptUtils/ObsidianDevUtilsRepoPaths.cjs';
1
+ /**
2
+ * @packageDocumentation ObsidianDevUtilsRepoPaths
3
+ * This module defines an enumeration of common file paths and patterns used in the Obsidian development utilities repository.
4
+ * These paths are used throughout the build process and other utilities, ensuring consistency and reducing the likelihood
5
+ * of errors due to hardcoded strings.
6
+ */
7
+ export declare enum ObsidianDevUtilsRepoPaths {
8
+ /** Matches any file or directory (`*`). */
9
+ Any = "*",
10
+ /** Matches any `.cjs` file (`*.cjs`). */
11
+ AnyCjs = "*.cjs",
12
+ /** Matches any `.d.cts` file (`*.d.cts`). */
13
+ AnyDcts = "*.d.cts",
14
+ /** Matches any `.d.mts` file (`*.d.mts`). */
15
+ AnyDmts = "*.d.mts",
16
+ /** Matches any TypeScript declaration file (`*.d.ts`). */
17
+ AnyDts = "*.d.ts",
18
+ /** Matches any `.js` file (`*.js`). */
19
+ AnyJs = "*.js",
20
+ /** Matches any `.mjs` file (`*.mjs`). */
21
+ AnyMjs = "*.mjs",
22
+ /** Matches any path recursively (`**`). */
23
+ AnyPath = "**",
24
+ /** Matches any TypeScript file (`*.ts`). */
25
+ AnyTs = "*.ts",
26
+ /** The path to the `CHANGELOG.md` file. */
27
+ ChangelogMd = "CHANGELOG.md",
28
+ /** The path to the `cjs` directory. */
29
+ Cjs = "cjs",
30
+ /** The `.cjs` file extension. */
31
+ CjsExtension = ".cjs",
32
+ /** The path to the current directory. */
33
+ CurrentDir = ".",
34
+ /** The path to the `src/obsidian/@types/Dataview` files. */
35
+ DataviewTypes = "src/obsidian/@types/Dataview/**",
36
+ /** The `.d.cts` file extension. */
37
+ DctsExtension = ".d.cts",
38
+ /** The path to the distribution (`dist`) directory. */
39
+ Dist = "dist",
40
+ /** The path to the `lib` directory within the `dist` directory. */
41
+ DistLib = "dist/lib",
42
+ /** The path to the `_dependencies.cjs` file within the `lib` directory in the `dist` directory. */
43
+ DistLibDependenciesCjs = "./dist/lib/_dependencies.cjs",
44
+ /** The `.d.js` file extension. */
45
+ DjsExtension = ".d.js",
46
+ /** The `.d.mts` file extension. */
47
+ DmtsExtension = ".d.mts",
48
+ /** The path to the `dprint.json` file. */
49
+ DprintJson = "dprint.json",
50
+ /** The `.d.ts` file extension. */
51
+ DtsExtension = ".d.ts",
52
+ /** The path to the `esm` directory. */
53
+ Esm = "esm",
54
+ /** The path to the `index.cjs` file. */
55
+ IndexCjs = "index.cjs",
56
+ /** The path to the `index.d.cts` file. */
57
+ IndexDcts = "index.d.cts",
58
+ /** The path to the `index.d.mts` file. */
59
+ IndexDmts = "index.d.mts",
60
+ /** The path to the `index.d.ts` file. */
61
+ IndexDts = "index.d.ts",
62
+ /** The path to the `index.mjs` file. */
63
+ IndexMjs = "index.mjs",
64
+ /** The path to the `index.ts` file. */
65
+ IndexTs = "index.ts",
66
+ /** The `.js` file extension. */
67
+ JsExtension = ".js",
68
+ /** Represents the Library.cjs file. */
69
+ LibraryCjs = "Library.cjs",
70
+ /** Represents the Library.mjs file. */
71
+ LibraryMjs = "Library.mjs",
72
+ /** The path to the `LICENSE` file. */
73
+ License = "LICENSE",
74
+ /** The `.mjs` file extension. */
75
+ MjsExtension = ".mjs",
76
+ /**
77
+ * The path to the `node_modules` directory.
78
+ */
79
+ NodeModules = "node_modules",
80
+ /** The path to the `package.json` file. */
81
+ PackageJson = "package.json",
82
+ /** The path to the `README.md` file. */
83
+ ReadmeMd = "README.md",
84
+ /** The path to the root directory. */
85
+ RootDir = "/",
86
+ /** The path to the `scripts` directory. */
87
+ Scripts = "scripts",
88
+ /** The path to the `src` directory. */
89
+ Src = "src",
90
+ /** The path to the `_dependencies.ts` file within the `src` directory. */
91
+ SrcDependenciesTs = "./src/_dependencies.ts",
92
+ /** The path to the `src` directory. */
93
+ SrcObsidianTypesDataview = "src/obsidian/@types/Dataview",
94
+ /** The path to the `static` directory. */
95
+ Static = "static",
96
+ /** The path to the `styles` directory. */
97
+ Styles = "styles",
98
+ /** The path to the `styles.css` file. */
99
+ StylesCss = "styles.css",
100
+ /** The path to the `tsconfig.json` file. */
101
+ TsConfigJson = "tsconfig.json",
102
+ /** The `.ts` file extension. */
103
+ TsExtension = ".ts",
104
+ /** The path to the `@types` directory, typically used for TypeScript type declarations. */
105
+ Types = "@types"
106
+ }
@@ -1 +1,67 @@
1
- export * from '../../cjs/ScriptUtils/Root.cjs';
1
+ /**
2
+ * @packageDocumentation Root
3
+ * Contains utility functions for executing commands from the root directory of a project,
4
+ * resolving paths relative to the root.
5
+ */
6
+ import type { ExecOption, ExecResult } from './Exec.d.mts';
7
+ /**
8
+ * Executes a command from the root directory of the project.
9
+ *
10
+ * @param command - The command to execute. It can be a string or an array of strings.
11
+ * @param options - The options for the execution.
12
+ * @returns A Promise that resolves with the output of the command.
13
+ * @throws If the command fails with a non-zero exit code and ignoreExitCode is false.
14
+ * The error message includes the exit code and stderr.
15
+ * If an error occurs during the execution and ignoreExitCode is true,
16
+ * the error is resolved with the stdout and stderr.
17
+ */
18
+ export declare function execFromRoot(command: string | string[], options?: {
19
+ withDetails?: false;
20
+ } & ExecOption): Promise<string>;
21
+ /**
22
+ * Executes a command from the root directory of the project.
23
+ *
24
+ * @param command - The command to execute. It can be a string or an array of strings.
25
+ * @param options - The options for the execution.
26
+ * @returns A Promise that resolves with ExecResult object.
27
+ * The ExecResult object contains the exit code, exit signal, stderr, and stdout.
28
+ * @throws If the command fails with a non-zero exit code and ignoreExitCode is false.
29
+ * The error message includes the exit code and stderr.
30
+ * If an error occurs during the execution and ignoreExitCode is true,
31
+ * the error is resolved with the stdout and stderr.
32
+ */
33
+ export declare function execFromRoot(command: string | string[], options: {
34
+ withDetails: true;
35
+ } & ExecOption): Promise<ExecResult>;
36
+ /**
37
+ * Retrieves the root directory of the project.
38
+ *
39
+ * @param cwd - The current working directory to resolve from.
40
+ * @returns The path to the root directory.
41
+ * @throws If the root directory cannot be found.
42
+ */
43
+ export declare function getRootDir(cwd?: string): null | string;
44
+ /**
45
+ * Resolves a path relative to the root directory of the project.
46
+ *
47
+ * @param path - The path to resolve.
48
+ * @param cwd - The current working directory to resolve from.
49
+ * @returns The resolved absolute path.
50
+ */
51
+ export declare function resolvePathFromRoot(path: string, cwd?: string): null | string;
52
+ /**
53
+ * Resolves a path relative to the root directory, returning the resolved path or the original path if it does not exist.
54
+ *
55
+ * @param path - The path to resolve.
56
+ * @param cwd - The current working directory to resolve from.
57
+ * @returns The resolved path or the original path if it does not exist.
58
+ */
59
+ export declare function resolvePathFromRootSafe(path: string, cwd?: string): string;
60
+ /**
61
+ * Converts an absolute path to a relative path from the root directory of the project.
62
+ *
63
+ * @param path - The absolute path to convert.
64
+ * @param cwd - The current working directory to resolve from.
65
+ * @returns The relative path from the root directory.
66
+ */
67
+ export declare function toRelativeFromRoot(path: string, cwd?: string): null | string;
@@ -1 +1,41 @@
1
- export * from '../../cjs/ScriptUtils/build.cjs';
1
+ /**
2
+ * @packageDocumentation build
3
+ * This module provides utility functions to handle the build process for static assets and cleaning
4
+ * the build output directory. It includes functions to copy static files to the distribution directory
5
+ * and to remove the existing build output.
6
+ */
7
+ /**
8
+ * Removes the distribution directory and its contents.
9
+ *
10
+ * This function deletes the entire distribution directory to ensure a clean build environment.
11
+ *
12
+ * @returns A promise that resolves when the directory has been removed.
13
+ */
14
+ export declare function buildClean(): Promise<void>;
15
+ /**
16
+ * Compiles the code.
17
+ *
18
+ * @returns A promise that resolves when the code compiles successfully.
19
+ */
20
+ export declare function buildCompile(): Promise<void>;
21
+ /**
22
+ * Compiles the Svelte code.
23
+ *
24
+ * @returns A promise that resolves when the code compiles successfully.
25
+ */
26
+ export declare function buildCompileSvelte(): Promise<void>;
27
+ /**
28
+ * Compiles the TypeScript code.
29
+ *
30
+ * @returns A promise that resolves when the code compiles successfully.
31
+ */
32
+ export declare function buildCompileTypeScript(): Promise<void>;
33
+ /**
34
+ * Copies all static files from the static assets directory to the distribution directory.
35
+ *
36
+ * This function recursively reads the contents of the static assets directory and copies
37
+ * each file to the corresponding path in the distribution directory.
38
+ *
39
+ * @returns A promise that resolves when all files have been copied.
40
+ */
41
+ export declare function buildStatic(): Promise<void>;
@@ -1 +1,14 @@
1
- export * from '../../cjs/ScriptUtils/cli.cjs';
1
+ /**
2
+ * @packageDocumentation cli
3
+ * This module defines a CLI for managing various tasks related to Obsidian plugin development.
4
+ * It leverages the `commander` library to define commands for building, linting, spellchecking,
5
+ * and updating the version of the plugin. The CLI is designed to be flexible and can handle both
6
+ * synchronous and asynchronous tasks.
7
+ */
8
+ /**
9
+ * Main function to run the CLI. It sets up the commands using the `commander` library and
10
+ * handles the execution of tasks like building, cleaning, linting, spellchecking, and versioning.
11
+ *
12
+ * @param argv - The command-line arguments to parse. Defaults to `process.argv` minus the first two elements.
13
+ */
14
+ export declare function cli(argv?: string[]): void;
@@ -1 +1,18 @@
1
- export * from '../../../cjs/ScriptUtils/esbuild/Dependency.cjs';
1
+ /**
2
+ * @packageDocumentation Dependency
3
+ * This module provides utilities for managing dependencies during the esbuild process.
4
+ * It includes functions to determine which dependencies should be skipped and which
5
+ * should be bundled, as well as an esbuild plugin for extracting dependencies to bundle.
6
+ */
7
+ /**
8
+ * Determines which dependencies should be bundled by esbuild.
9
+ *
10
+ * @returns A `Promise` that resolves to an array of dependency names to bundle.
11
+ */
12
+ export declare function getDependenciesToBundle(): Promise<string[]>;
13
+ /**
14
+ * Retrieves the list of dependencies that should be skipped during the bundling process.
15
+ *
16
+ * @returns A `Promise` that resolves to a `Set` of dependency names to skip.
17
+ */
18
+ export declare function getDependenciesToSkip(): Promise<Set<string>>;
@@ -1 +1,53 @@
1
- export * from '../../../cjs/ScriptUtils/esbuild/ObsidianPluginBuilder.cjs';
1
+ /**
2
+ * @packageDocumentation ObsidianPluginBuilder
3
+ * This module provides functionality to build and bundle an Obsidian plugin using esbuild.
4
+ * It includes functions to handle the build process based on different build modes (development or production),
5
+ * and it sets up various esbuild plugins to preprocess, lint, fix source maps, and copy files to the Obsidian plugins folder.
6
+ */
7
+ import type { BuildContext, Plugin } from 'esbuild';
8
+ import { CliTaskResult } from '../CliUtils.d.mts';
9
+ /**
10
+ * Enumeration representing the build modes.
11
+ */
12
+ export declare enum BuildMode {
13
+ /** Development mode for building the plugin */
14
+ Development = 0,
15
+ /** Production mode for building the plugin */
16
+ Production = 1
17
+ }
18
+ /**
19
+ * Banner text to be included at the top of the generated files.
20
+ */
21
+ export declare const banner = "/*\nTHIS IS A GENERATED/BUNDLED FILE BY ESBUILD\nif you want to view the source, please visit the github repository of this plugin\n*/\n";
22
+ /**
23
+ * Options for building an Obsidian plugin.
24
+ */
25
+ export interface BuildObsidianPluginOptions {
26
+ /**
27
+ * Custom esbuild plugins to be used during the build process.
28
+ */
29
+ customEsbuildPlugins?: Plugin[];
30
+ /**
31
+ * The build mode, either Development or Production
32
+ */
33
+ mode: BuildMode;
34
+ /**
35
+ * The directory for Obsidian configuration. Defaults to the `OBSIDIAN_CONFIG_DIR` environment variable.
36
+ */
37
+ obsidianConfigDir?: string;
38
+ }
39
+ /**
40
+ * Builds the Obsidian plugin based on the specified mode and configuration directory.
41
+ *
42
+ * @param options - The parameters for building the plugin.
43
+ * @returns A promise that resolves to a `TaskResult` indicating the success or failure of the build.
44
+ */
45
+ export declare function buildObsidianPlugin(options: BuildObsidianPluginOptions): Promise<CliTaskResult>;
46
+ /**
47
+ * Invokes the build process with the provided build context.
48
+ *
49
+ * @param buildContext - The build context generated by esbuild.
50
+ * @param isProductionBuild - A boolean indicating whether the build is a production build.
51
+ * @returns A promise that resolves to a `TaskResult` indicating the success or failure of the build.
52
+ */
53
+ export declare function invokeEsbuild(buildContext: BuildContext, isProductionBuild: boolean): Promise<CliTaskResult>;
@@ -1 +1,12 @@
1
- export * from '../../../cjs/ScriptUtils/esbuild/changeExtensionPlugin.cjs';
1
+ /**
2
+ * @packageDocumentation changeExtensionPlugin
3
+ * This module defines an esbuild plugin that changes the extension of JavaScript files after the build process.
4
+ */
5
+ import type { Plugin } from 'esbuild';
6
+ /**
7
+ * Creates an esbuild plugin that changes the extension of JavaScript files after the build process.
8
+ *
9
+ * @param extension - The extension to change the files to.
10
+ * @returns An esbuild `Plugin` object that handles the renaming and modification of output files.
11
+ */
12
+ export declare function changeExtensionPlugin(extension: string): Plugin;
@@ -1 +1,18 @@
1
- export * from '../../../cjs/ScriptUtils/esbuild/copyToObsidianPluginsFolderPlugin.cjs';
1
+ /**
2
+ * @packageDocumentation copyToObsidianPluginsFolderPlugin
3
+ * This module defines an esbuild plugin that automatically copies the build output
4
+ * to the Obsidian plugins folder during development. This plugin helps streamline
5
+ * the development workflow by ensuring that the latest build is always available
6
+ * in the correct Obsidian directory for testing and use.
7
+ */
8
+ import type { Plugin } from 'esbuild';
9
+ /**
10
+ * Creates an esbuild plugin that copies the build output to the Obsidian plugins folder.
11
+ *
12
+ * @param isProductionBuild - A boolean indicating whether the build is a production build.
13
+ * @param distDir - The directory where the built files are located.
14
+ * @param obsidianConfigDir - The directory of the Obsidian configuration. If not provided, the plugin will not copy files.
15
+ * @param pluginName - The name of the Obsidian plugin.
16
+ * @returns An esbuild `Plugin` object.
17
+ */
18
+ export declare function copyToObsidianPluginsFolderPlugin(isProductionBuild: boolean, distDir: string, obsidianConfigDir: string, pluginName: string): Plugin;
@@ -1 +1,11 @@
1
- export * from '../../../cjs/ScriptUtils/esbuild/fixEsmPlugin.cjs';
1
+ /**
2
+ * @packageDocumentation fixEsmPlugin
3
+ * This module defines a custom esbuild plugin that fixes the `require` statement for ESM modules.
4
+ */
5
+ import type { Plugin } from 'esbuild';
6
+ /**
7
+ * Creates an esbuild plugin that fixes the `require` statement for ESM modules.
8
+ *
9
+ * @returns An esbuild `Plugin` object that fixes the `require` statement for ESM modules.
10
+ */
11
+ export declare function fixEsmPlugin(): Plugin;
@@ -1 +1,17 @@
1
- export * from '../../../cjs/ScriptUtils/esbuild/fixSourceMapsPlugin.cjs';
1
+ /**
2
+ * @packageDocumentation fixSourceMapsPlugin
3
+ * This module defines an esbuild plugin that fixes source maps generated during development.
4
+ * It adjusts the paths in the source maps to be compatible with Obsidian's internal URL scheme.
5
+ * The plugin is only active during development builds.
6
+ */
7
+ import type { Plugin } from 'esbuild';
8
+ /**
9
+ * Creates an esbuild plugin that fixes source maps by adjusting the paths to be compatible
10
+ * with Obsidian's internal URL scheme.
11
+ *
12
+ * @param isProductionBuild - A boolean indicating whether the build is a production build. The plugin only runs in non-production builds.
13
+ * @param distPaths - The paths to the output files containing the source maps.
14
+ * @param pluginName - The name of the Obsidian plugin, used to construct the Obsidian-specific URLs.
15
+ * @returns An esbuild `Plugin` object that fixes source maps.
16
+ */
17
+ export declare function fixSourceMapsPlugin(isProductionBuild: boolean, distPaths: string[], pluginName: string): Plugin;
@@ -1 +1,9 @@
1
- export * from '../../../cjs/ScriptUtils/esbuild/index.cjs';
1
+ export * as changeExtensionPlugin from './changeExtensionPlugin.d.mts';
2
+ export * as copyToObsidianPluginsFolderPlugin from './copyToObsidianPluginsFolderPlugin.d.mts';
3
+ export * as Dependency from './Dependency.d.mts';
4
+ export * as fixEsmPlugin from './fixEsmPlugin.d.mts';
5
+ export * as fixSourceMapsPlugin from './fixSourceMapsPlugin.d.mts';
6
+ export * as ObsidianPluginBuilder from './ObsidianPluginBuilder.d.mts';
7
+ export * as preprocessPlugin from './preprocessPlugin.d.mts';
8
+ export * as renameCssPlugin from './renameCssPlugin.d.mts';
9
+ export * as svelteWrapperPlugin from './svelteWrapperPlugin.d.mts';
@@ -1 +1,23 @@
1
- export * from '../../../cjs/ScriptUtils/esbuild/preprocessPlugin.cjs';
1
+ /**
2
+ * @packageDocumentation preprocessPlugin
3
+ * This module defines a custom esbuild plugin that preprocesses JavaScript and TypeScript files.
4
+ * The preprocessing includes replacing `import(dot)meta(dot)url` with a Node.js-compatible alternative,
5
+ * ensuring compatibility with Obsidian's plugin system, and adding a basic `process` object for environments
6
+ * where `process` is not available (like mobile or web environments).
7
+ *
8
+ * @remarks
9
+ * We cannot use `.` instead of `(dot)` in the above description because the file itself is preprocessed with the same rule.
10
+ */
11
+ import type { Plugin } from 'esbuild';
12
+ /**
13
+ * Creates an esbuild plugin that preprocesses JavaScript and TypeScript files.
14
+ *
15
+ * This plugin performs the following tasks:
16
+ * - Replaces instances of `import(dot)meta(dot)url` with a Node.js-compatible `__filename` alternative.
17
+ * - Modifies the `sourceMappingURL` comment to ensure compatibility with Obsidian's plugin system.
18
+ * - Adds a basic `process` object to the global scope if `process` is referenced but not defined.
19
+ *
20
+ * @param isEsm - Whether the build is for an ESM format.
21
+ * @returns An esbuild `Plugin` object that handles the preprocessing.
22
+ */
23
+ export declare function preprocessPlugin(isEsm?: boolean): Plugin;
@@ -1 +1,8 @@
1
- export * from '../../../cjs/ScriptUtils/esbuild/renameCssPlugin.cjs';
1
+ import type { Plugin } from 'esbuild';
2
+ /**
3
+ * Plugin that renames the CSS file to the correct name.
4
+ *
5
+ * @param distDir - The directory to rename the CSS file in.
6
+ * @returns The plugin.
7
+ */
8
+ export declare function renameCssPlugin(distDir: string): Plugin;
@@ -1 +1,8 @@
1
- export * from '../../../cjs/ScriptUtils/esbuild/svelteWrapperPlugin.cjs';
1
+ import type { Plugin } from 'esbuild';
2
+ /**
3
+ * Wraps the esbuild-svelte plugin to ensure that the correct format is used.
4
+ *
5
+ * @param isProductionBuild - Whether the build is a production build.
6
+ * @returns The esbuild plugin.
7
+ */
8
+ export declare function svelteWrapperPlugin(isProductionBuild: boolean): Plugin;
@@ -1 +1,10 @@
1
- export * from '../../cjs/ScriptUtils/format.cjs';
1
+ /** @packageDocumentation format
2
+ * Format the source code.
3
+ */
4
+ /**
5
+ * Format the source code.
6
+ *
7
+ * @param rewrite - Whether to rewrite the source code.
8
+ * @returns A promise that resolves when the source code has been formatted.
9
+ */
10
+ export declare function format(rewrite?: boolean): Promise<void>;
@@ -1 +1,17 @@
1
- export * from '../../cjs/ScriptUtils/index.cjs';
1
+ export * as build from './build.d.mts';
2
+ export * as cli from './cli.d.mts';
3
+ export * as CliUtils from './CliUtils.d.mts';
4
+ export * as CodeGenerator from './CodeGenerator.d.mts';
5
+ export * as esbuild from './esbuild/index.d.mts';
6
+ export * as ESLint from './ESLint/index.d.mts';
7
+ export * as Exec from './Exec.d.mts';
8
+ export * as format from './format.d.mts';
9
+ export * as Fs from './Fs.d.mts';
10
+ export * as JSON from './JSON.d.mts';
11
+ export * as NodeModules from './NodeModules.d.mts';
12
+ export * as Npm from './Npm.d.mts';
13
+ export * as NpmPublish from './NpmPublish.d.mts';
14
+ export * as ObsidianDevUtilsRepoPaths from './ObsidianDevUtilsRepoPaths.d.mts';
15
+ export * as Root from './Root.d.mts';
16
+ export * as spellcheck from './spellcheck.d.mts';
17
+ export * as version from './version.d.mts';
@@ -1 +1,14 @@
1
- export * from '../../cjs/ScriptUtils/spellcheck.cjs';
1
+ /**
2
+ * @packageDocumentation spellcheck
3
+ * This module provides a function for running a spellcheck on the codebase using the `cspell` library.
4
+ * It reports any spelling issues found in the code and returns a `TaskResult` indicating whether the spellcheck was successful.
5
+ */
6
+ /**
7
+ * Runs a spellcheck on the entire codebase using `cspell`.
8
+ *
9
+ * The function checks all files in the current directory and its subdirectories for spelling issues.
10
+ * If issues are found, they are logged to the console with their file path, line, and column number.
11
+ *
12
+ * @returns A `Promise` that resolves to a `TaskResult`, indicating the success or failure of the spellcheck.
13
+ */
14
+ export declare function spellcheck(): Promise<void>;