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,38 @@
1
- export * from '../../../../../cjs/obsidian/@types/Dataview/api/result.cjs';
1
+ /** Functional return type for error handling. */
2
+ export declare class Success<T, E> {
3
+ value: T;
4
+ successful: true;
5
+ constructor(value: T);
6
+ map<U>(f: (a: T) => U): Result<U, E>;
7
+ flatMap<U>(f: (a: T) => Result<U, E>): Result<U, E>;
8
+ mapErr<U>(f: (e: E) => U): Result<T, U>;
9
+ bimap<T2, E2>(succ: (a: T) => T2, _fail: (b: E) => E2): Result<T2, E2>;
10
+ orElse(_value: T): T;
11
+ cast<U>(): Result<U, E>;
12
+ orElseThrow(_message?: (e: E) => string): T;
13
+ }
14
+ /** Functional return type for error handling. */
15
+ export declare class Failure<T, E> {
16
+ error: E;
17
+ successful: false;
18
+ constructor(error: E);
19
+ map<U>(_f: (a: T) => U): Result<U, E>;
20
+ flatMap<U>(_f: (a: T) => Result<U, E>): Result<U, E>;
21
+ mapErr<U>(f: (e: E) => U): Result<T, U>;
22
+ bimap<T2, E2>(_succ: (a: T) => T2, fail: (b: E) => E2): Result<T2, E2>;
23
+ orElse(value: T): T;
24
+ cast<U>(): Result<U, E>;
25
+ orElseThrow(message?: (e: E) => string): T;
26
+ }
27
+ export type Result<T, E> = Success<T, E> | Failure<T, E>;
28
+ /** Monadic 'Result' type which encapsulates whether a procedure succeeded or failed, as well as it's return value. */
29
+ export declare namespace Result {
30
+ /** Construct a new success result wrapping the given value. */
31
+ function success<T, E>(value: T): Result<T, E>;
32
+ /** Construct a new failure value wrapping the given error. */
33
+ function failure<T, E>(error: E): Result<T, E>;
34
+ /** Join two results with a bi-function and return a new result. */
35
+ function flatMap2<T1, T2, O, E>(first: Result<T1, E>, second: Result<T2, E>, f: (a: T1, b: T2) => Result<O, E>): Result<O, E>;
36
+ /** Join two results with a bi-function and return a new result. */
37
+ function map2<T1, T2, O, E>(first: Result<T1, E>, second: Result<T2, E>, f: (a: T1, b: T2) => O): Result<O, E>;
38
+ }
@@ -1 +1,3 @@
1
- export * from '../../../../../cjs/obsidian/@types/Dataview/data-import/common.cjs';
1
+ /** Common utilities for extracting tags, links, and other business from metadata. */
2
+ /** Extract all tags from the given source string. */
3
+ export declare function extractTags(source: string): Set<string>;
@@ -1 +1,3 @@
1
- export * from '../../../../../cjs/obsidian/@types/Dataview/data-import/csv.cjs';
1
+ import type { DataObject } from '../data-model/value.d.d.mts';
2
+ /** Parse a CSV file into a collection of data rows. */
3
+ export declare function parseCsv(content: string): DataObject[];
@@ -1 +1,42 @@
1
- export * from '../../../../../cjs/obsidian/@types/Dataview/data-import/inline-field.cjs';
1
+ /** Parse inline fields and other embedded metadata in a line. */
2
+ import type { Literal } from '../data-model/value.d.d.mts';
3
+ /** A parsed inline field. */
4
+ export interface InlineField {
5
+ /** The raw parsed key. */
6
+ key: string;
7
+ /** The raw value of the field. */
8
+ value: string;
9
+ /** The start column of the field. */
10
+ start: number;
11
+ /** The start column of the *value* for the field. */
12
+ startValue: number;
13
+ /** The end column of the field. */
14
+ end: number;
15
+ /** If this inline field was defined via a wrapping ('[' or '('), then the wrapping that was used. */
16
+ wrapping?: string;
17
+ }
18
+ /** The wrapper characters that can be used to define an inline field. */
19
+ export declare const INLINE_FIELD_WRAPPERS: Readonly<Record<string, string>>;
20
+ /** Parse a textual inline field value into something we can work with. */
21
+ export declare function parseInlineValue(value: string): Literal;
22
+ /** Extracts inline fields of the form '[key:: value]' from a line of text. This is done in a relatively
23
+ * "robust" way to avoid failing due to bad nesting or other interfering Markdown symbols:
24
+ *
25
+ * - Look for any wrappers ('[' and '(') in the line, trying to parse whatever comes after it as an inline key::.
26
+ * - If successful, scan until you find a matching end bracket, and parse whatever remains as an inline value.
27
+ */
28
+ export declare function extractInlineFields(line: string, includeTaskFields?: boolean): InlineField[];
29
+ /** Attempt to extract a full-line field (Key:: Value consuming the entire content line). */
30
+ export declare function extractFullLineField(text: string): InlineField | undefined;
31
+ export declare const CREATED_DATE_REGEX: RegExp;
32
+ export declare const DUE_DATE_REGEX: RegExp;
33
+ export declare const DONE_DATE_REGEX: RegExp;
34
+ export declare const SCHEDULED_DATE_REGEX: RegExp;
35
+ export declare const START_DATE_REGEX: RegExp;
36
+ export declare const EMOJI_REGEXES: {
37
+ regex: RegExp;
38
+ key: string;
39
+ }[];
40
+ /** Sets or replaces the value of an inline field; if the value is 'undefined', deletes the key. */
41
+ export declare function setInlineField(source: string, key: string, value?: string): string;
42
+ export declare function setEmojiShorthandCompletionField(source: string, value?: string): string;
@@ -1 +1,52 @@
1
- export * from '../../../../../cjs/obsidian/@types/Dataview/data-import/markdown-file.cjs';
1
+ /** Importer for markdown documents. */
2
+ import type {
3
+ CachedMetadata,
4
+ FileStats,
5
+ FrontMatterCache,
6
+ HeadingCache
7
+ } from 'obsidian';
8
+ import type { InlineField } from '../data-import/inline-field.d.d.mts';
9
+ import type {
10
+ ListItem,
11
+ PageMetadata
12
+ } from '../data-model/markdown.d.d.mts';
13
+ import type {
14
+ Link,
15
+ Literal
16
+ } from '../data-model/value.d.d.mts';
17
+ /** Extract markdown metadata from the given Obsidian markdown file. */
18
+ export declare function parsePage(path: string, contents: string, stat: FileStats, metadata: CachedMetadata): PageMetadata;
19
+ /** Extract tags intelligently from frontmatter. Handles arrays, numbers, and strings. */
20
+ export declare function extractTags(metadata: FrontMatterCache): string[];
21
+ /** Extract aliases intelligently from frontmatter. Handles arrays, numbers, and strings. */
22
+ export declare function extractAliases(metadata: FrontMatterCache): string[];
23
+ /** Split a frontmatter list into separate elements; handles actual lists, comma separated lists, and single elements. */
24
+ export declare function splitFrontmatterTagOrAlias(data: any, on: RegExp): string[];
25
+ /** Parse raw (newline-delimited) markdown, returning inline fields, list items, and other metadata. */
26
+ export declare function parseMarkdown(path: string, contents: string[], metadata: CachedMetadata, linksByLine: Record<number, Link[]>): {
27
+ fields: Map<string, Literal[]>;
28
+ lists: ListItem[];
29
+ };
30
+ export declare const LIST_ITEM_REGEX: RegExp;
31
+ /**
32
+ * Parse list items from the page + metadata. This requires some additional parsing above whatever Obsidian provides,
33
+ * since Obsidian only gives line numbers.
34
+ */
35
+ export declare function parseLists(
36
+ path: string,
37
+ content: string[],
38
+ metadata: CachedMetadata,
39
+ linksByLine: Record<number, Link[]>
40
+ ): [ListItem[], Map<string, Literal[]>];
41
+ /** Recursively convert frontmatter into fields. We have to dance around YAML structure. */
42
+ export declare function parseFrontmatter(value: any): Literal;
43
+ /** Add a parsed inline field to the output map. */
44
+ export declare function addRawInlineField(field: InlineField, output: Map<string, Literal[]>): void;
45
+ /** Add a raw inline field to an output map, canonicalizing as needed. */
46
+ export declare function addInlineField(key: string, value: Literal, output: Map<string, Literal[]>): void;
47
+ /** Given a raw list of inline field values, add normalized keys and squash them. */
48
+ export declare function finalizeInlineFields(fields: Map<string, Literal[]>): Map<string, Literal>;
49
+ /** Copy all fields of 'source' into 'target'. */
50
+ export declare function mergeFieldGroups(target: Map<string, Literal[]>, source: Map<string, Literal[]>): void;
51
+ /** Find the header that is most immediately above the given line number. */
52
+ export declare function findPreviousHeader(line: number, headers: HeadingCache[]): string | undefined;
@@ -1 +1,32 @@
1
- export * from '../../../../../cjs/obsidian/@types/Dataview/data-import/persister.cjs';
1
+ type LocalForage = typeof import('localforage');
2
+
3
+ import type { PageMetadata } from '../data-model/markdown.d.d.mts';
4
+ /** A piece of data that has been cached for a specific version and time. */
5
+ export interface Cached<T> {
6
+ /** The version of Dataview that the data was written to cache with. */
7
+ version: string;
8
+ /** The time that the data was written to cache. */
9
+ time: number;
10
+ /** The data that was cached. */
11
+ data: T;
12
+ }
13
+ /** Simpler wrapper for a file-backed cache for arbitrary metadata. */
14
+ export declare class LocalStorageCache {
15
+ appId: string;
16
+ version: string;
17
+ persister: LocalForage;
18
+ constructor(appId: string, version: string);
19
+ /** Drop the entire cache instance and re-create a new fresh instance. */
20
+ recreate(): Promise<void>;
21
+ /** Load file metadata by path. */
22
+ loadFile(path: string): Promise<Cached<Partial<PageMetadata>> | null | undefined>;
23
+ /** Store file metadata by path. */
24
+ storeFile(path: string, data: Partial<PageMetadata>): Promise<void>;
25
+ /** Drop old file keys that no longer exist. */
26
+ synchronize(existing: string[] | Set<string>): Promise<Set<string>>;
27
+ /** Obtain a list of all metadata keys. */
28
+ allKeys(): Promise<string[]>;
29
+ /** Obtain a list of all persisted files. */
30
+ allFiles(): Promise<string[]>;
31
+ fileKey(path: string): string;
32
+ }
@@ -1 +1 @@
1
- export * from '../../../../../../cjs/obsidian/@types/Dataview/data-import/web-worker/import-entry.cjs';
1
+ export {};
@@ -1 +1,6 @@
1
- export * from '../../../../../../cjs/obsidian/@types/Dataview/data-import/web-worker/import-impl.cjs';
1
+ import type {
2
+ CachedMetadata,
3
+ FileStats
4
+ } from 'obsidian';
5
+ import type { PageMetadata } from '../../data-model/markdown.d.d.mts';
6
+ export declare function runImport(path: string, contents: string, stats: FileStats, metadata: CachedMetadata): Partial<PageMetadata>;
@@ -1 +1,37 @@
1
- export * from '../../../../../../cjs/obsidian/@types/Dataview/data-import/web-worker/import-manager.cjs';
1
+ /** Controls and creates Dataview file importers, allowing for asynchronous loading and parsing of files. */
2
+ import type {
3
+ Component,
4
+ MetadataCache,
5
+ TFile,
6
+ Vault
7
+ } from 'obsidian';
8
+ /** Callback when a file is resolved. */
9
+ type FileCallback = (p: any) => void;
10
+ /** Multi-threaded file parser which debounces rapid file requests automatically. */
11
+ export declare class FileImporter extends Component {
12
+ numWorkers: number;
13
+ vault: Vault;
14
+ metadataCache: MetadataCache;
15
+ workers: Worker[];
16
+ /** Tracks which workers are actively parsing a file, to make sure we properly delegate results. */
17
+ busy: boolean[];
18
+ /** List of files which have been queued for a reload. */
19
+ reloadQueue: TFile[];
20
+ /** Fast-access set which holds the list of files queued to be reloaded; used for debouncing. */
21
+ reloadSet: Set<string>;
22
+ /** Paths -> promises for file reloads which have not yet been queued. */
23
+ callbacks: Map<string, [FileCallback, FileCallback][]>;
24
+ constructor(numWorkers: number, vault: Vault, metadataCache: MetadataCache);
25
+ /**
26
+ * Queue the given file for reloading. Multiple reload requests for the same file in a short time period will be de-bounced
27
+ * and all be resolved by a single actual file reload.
28
+ */
29
+ reload<T>(file: TFile): Promise<T>;
30
+ /** Finish the parsing of a file, potentially queueing a new file. */
31
+ private finish;
32
+ /** Send a new task to the given worker ID. */
33
+ private send;
34
+ /** Find the next available, non-busy worker; return undefined if all workers are busy. */
35
+ private nextAvailableWorker;
36
+ }
37
+ export {};
@@ -1 +1,186 @@
1
- export * from '../../../../../cjs/obsidian/@types/Dataview/data-index/index.cjs';
1
+ /** Stores various indices on all files in the vault to make dataview generation fast. */
2
+ import type { DateTime } from 'luxon';
3
+ import type {
4
+ App,
5
+ Component,
6
+ MetadataCache,
7
+ TAbstractFile,
8
+ TFile,
9
+ Vault
10
+ } from 'obsidian';
11
+ import type { Result } from '../api/result.d.d.mts';
12
+ import type { LocalStorageCache } from '../data-import/persister.d.d.mts';
13
+ import type { FileImporter } from '../data-import/web-worker/import-manager.d.d.mts';
14
+ import type { PageMetadata } from '../data-model/markdown.d.d.mts';
15
+ import type { DataObject } from '../data-model/value.d.d.mts';
16
+ /** Aggregate index which has several sub-indices and will initialize all of them. */
17
+ export declare class FullIndex extends Component {
18
+ app: App;
19
+ indexVersion: string;
20
+ onChange: () => void;
21
+ /** Generate a full index from the given vault. */
22
+ static create(app: App, indexVersion: string, onChange: () => void): FullIndex;
23
+ /** Whether all files in the vault have been indexed at least once. */
24
+ initialized: boolean;
25
+ /** I/O access to the Obsidian vault contents. */
26
+ vault: Vault;
27
+ /** Access to in-memory metadata, useful for parsing and metadata lookups. */
28
+ metadataCache: MetadataCache;
29
+ /** Persistent IndexedDB backing store, used for faster startup. */
30
+ persister: LocalStorageCache;
31
+ pages: Map<string, PageMetadata>;
32
+ /** Map files -> tags in that file, and tags -> files. This version includes subtags. */
33
+ tags: ValueCaseInsensitiveIndexMap;
34
+ /** Map files -> exact tags in that file, and tags -> files. This version does not automatically add subtags. */
35
+ etags: ValueCaseInsensitiveIndexMap;
36
+ /** Map files -> linked files in that file, and linked file -> files that link to it. */
37
+ links: IndexMap;
38
+ /** Search files by path prefix. */
39
+ prefix: PrefixIndex;
40
+ /** Allows for efficient lookups of whether a file is starred or not. */
41
+ starred: StarredCache;
42
+ /** Caches data in CSV files. */
43
+ csv: CsvCache;
44
+ /**
45
+ * The current "revision" of the index, which monotonically increases for every index change. Use this to determine
46
+ * if you are up to date.
47
+ */
48
+ revision: number;
49
+ /** Asynchronously parses files in the background using web workers. */
50
+ importer: FileImporter;
51
+ /** Construct a new index using the app data and a current data version. */
52
+ private constructor();
53
+ /** Trigger a metadata event on the metadata cache. */
54
+ private trigger;
55
+ /** "Touch" the index, incrementing the revision number and causing downstream views to reload. */
56
+ touch(): void;
57
+ /** Runs through the whole vault to set up initial file metadata. */
58
+ initialize(): void;
59
+ /** Drops the local storage cache and re-indexes all files; this should generally be used if you expect cache issues. */
60
+ reinitialize(): Promise<void>;
61
+ /** Internal asynchronous initializer. */
62
+ private _initialize;
63
+ rename(file: TAbstractFile, oldPath: string): void;
64
+ /** Queue a file for reloading; this is done asynchronously in the background and may take a few seconds. */
65
+ reload(file: TFile): Promise<{
66
+ cached: boolean;
67
+ skipped: boolean;
68
+ }>;
69
+ /** Import a file directly from disk, skipping the cache. */
70
+ private import;
71
+ /** Finish the reloading of file metadata by adding it to in memory indexes. */
72
+ private finish;
73
+ }
74
+ /** Indexes files by their full prefix - essentially a simple prefix tree. */
75
+ export declare class PrefixIndex extends Component {
76
+ vault: Vault;
77
+ updateRevision: () => void;
78
+ static create(vault: Vault, updateRevision: () => void): PrefixIndex;
79
+ constructor(vault: Vault, updateRevision: () => void);
80
+ private walk;
81
+ /** Get the list of all files under the given path. */
82
+ get(prefix: string, filter?: (path: string) => boolean): Set<string>;
83
+ /** Determines if the given path exists in the prefix index. */
84
+ pathExists(path: string): boolean;
85
+ /** Determines if the given prefix exists in the prefix index. */
86
+ nodeExists(prefix: string): boolean;
87
+ /**
88
+ * Use the in-memory prefix index to convert a relative path to an absolute one.
89
+ */
90
+ resolveRelative(path: string, origin?: string): string;
91
+ }
92
+ /** Simple path filters which filter file types. */
93
+ export declare namespace PathFilters {
94
+ function csv(path: string): boolean;
95
+ function markdown(path: string): boolean;
96
+ }
97
+ /**
98
+ * Caches in-use CSVs to make high-frequency reloads (such as actively looking at a document
99
+ * that uses CSV) fast.
100
+ */
101
+ export declare class CsvCache extends Component {
102
+ vault: Vault;
103
+ static CACHE_EXPIRY_SECONDS: number;
104
+ cache: Map<string, {
105
+ data: DataObject[];
106
+ loadTime: DateTime;
107
+ }>;
108
+ cacheClearInterval: number;
109
+ constructor(vault: Vault);
110
+ /** Load a CSV file from the cache, doing a fresh load if it has not been loaded. */
111
+ get(path: string): Promise<Result<DataObject[], string>>;
112
+ /** Do the actual raw loading of a CSV path (which is either local or an HTTP request). */
113
+ private loadInternal;
114
+ /** Clear old entries in the cache (as measured by insertion time). */
115
+ private clearOldEntries;
116
+ }
117
+ export type StarredEntry = {
118
+ type: 'group';
119
+ items: StarredEntry[];
120
+ title: string;
121
+ } | {
122
+ type: 'file';
123
+ path: string;
124
+ title: string;
125
+ } | {
126
+ type: 'folder';
127
+ } | {
128
+ type: 'query';
129
+ };
130
+ /** Optional connector to the Obsidian 'Starred' plugin which allows for efficiently querying if a file is starred or not. */
131
+ export declare class StarredCache extends Component {
132
+ app: App;
133
+ onUpdate: () => void;
134
+ /** Initial delay before checking the cache; we need to wait for it to asynchronously load the initial stars. */
135
+ static INITIAL_DELAY: number;
136
+ /** How frequently to check for star updates. */
137
+ static REFRESH_INTERVAL: number;
138
+ /** Set of all starred file paths. */
139
+ private stars;
140
+ constructor(app: App, onUpdate: () => void);
141
+ /** Determines if the given path is starred. */
142
+ starred(path: string): boolean;
143
+ private reload;
144
+ /** Fetch all starred files from the stars plugin, if present. */
145
+ private static fetch;
146
+ }
147
+ /** A generic index which indexes variables of the form key -> value[], allowing both forward and reverse lookups. */
148
+ export declare class IndexMap {
149
+ /** Maps key -> values for that key. */
150
+ map: Map<string, Set<string>>;
151
+ /** Cached inverse map; maps value -> keys that reference that value. */
152
+ invMap: Map<string, Set<string>>;
153
+ /** Create a new, empty index map. */
154
+ constructor();
155
+ /** Returns all values for the given key. */
156
+ get(key: string): Set<string>;
157
+ /** Returns all keys that reference the given key. Mutating the returned set is not allowed. */
158
+ getInverse(value: string): Readonly<Set<string>>;
159
+ /** Sets the key to the given values; this will delete the old mapping for the key if one was present. */
160
+ set(key: string, values: Set<string>): this;
161
+ /** Clears all values for the given key so they can be re-added. */
162
+ delete(key: string): boolean;
163
+ /** Rename all references to the given key to a new value. */
164
+ rename(oldKey: string, newKey: string): boolean;
165
+ /** Clear the entire index. */
166
+ clear(): void;
167
+ static EMPTY_SET: Readonly<Set<string>>;
168
+ }
169
+ /** Index map wrapper which is case-insensitive in the key. */
170
+ export declare class ValueCaseInsensitiveIndexMap {
171
+ delegate: IndexMap;
172
+ /** Create a new, empty case insensitive index map. */
173
+ constructor(delegate?: IndexMap);
174
+ /** Returns all values for the given key. */
175
+ get(key: string): Set<string>;
176
+ /** Returns all keys that reference the given value. Mutating the returned set is not allowed. */
177
+ getInverse(value: string): Readonly<Set<string>>;
178
+ /** Sets the key to the given values; this will delete the old mapping for the key if one was present. */
179
+ set(key: string, values: Set<string>): this;
180
+ /** Clears all values for the given key so they can be re-added. */
181
+ delete(key: string): boolean;
182
+ /** Rename all references to the given key to a new value. */
183
+ rename(oldKey: string, newKey: string): boolean;
184
+ /** Clear the entire index. */
185
+ clear(): void;
186
+ }
@@ -1 +1,23 @@
1
- export * from '../../../../../cjs/obsidian/@types/Dataview/data-index/resolver.cjs';
1
+ /** Collect data matching a source query. */
2
+ import type { Result } from '../api/result.d.d.mts';
3
+ import type { FullIndex } from '../data-index/index.d.d.mts';
4
+ import type {
5
+ DataObject,
6
+ Literal
7
+ } from '../data-model/value.d.d.mts';
8
+ import type { Source } from './source.d.d.mts';
9
+ /** A data row which has an ID and associated data (like page link / page data). */
10
+ export type Datarow<T> = {
11
+ id: Literal;
12
+ data: T;
13
+ };
14
+ /** Find source paths which match the given source. */
15
+ export declare function matchingSourcePaths(source: Source, index: FullIndex, originFile?: string): Result<Set<string>, string>;
16
+ /** Convert a path to the data for that path; usually markdown pages, but could also be other file types (like CSV). */
17
+ export declare function resolvePathData(path: string, index: FullIndex): Promise<Result<Datarow<DataObject>[], string>>;
18
+ /** Convert a CSV path to the data in the CSV (in dataview format). */
19
+ export declare function resolveCsvData(path: string, index: FullIndex): Promise<Result<Datarow<DataObject>[], string>>;
20
+ /** Convert a path pointing to a markdown page, into the associated metadata. */
21
+ export declare function resolveMarkdownData(path: string, index: FullIndex): Result<Datarow<DataObject>[], string>;
22
+ /** Resolve a source to the collection of data rows that it matches. */
23
+ export declare function resolveSource(source: Source, index: FullIndex, originFile?: string): Promise<Result<Datarow<DataObject>[], string>>;
@@ -1 +1,71 @@
1
- export * from '../../../../../cjs/obsidian/@types/Dataview/data-index/source.cjs';
1
+ /** AST implementation for queries over data sources. */
2
+ /** The source of files for a query. */
3
+ export type Source = TagSource | CsvSource | FolderSource | LinkSource | EmptySource | NegatedSource | BinaryOpSource;
4
+ /** Valid operations for combining sources. */
5
+ export type SourceOp = '&' | '|';
6
+ /** A tag as a source of data. */
7
+ export interface TagSource {
8
+ type: 'tag';
9
+ /** The tag to source from. */
10
+ tag: string;
11
+ }
12
+ /** A csv as a source of data. */
13
+ export interface CsvSource {
14
+ type: 'csv';
15
+ /** The path to the CSV file. */
16
+ path: string;
17
+ }
18
+ /** A folder prefix as a source of data. */
19
+ export interface FolderSource {
20
+ type: 'folder';
21
+ /** The folder prefix to source from. */
22
+ folder: string;
23
+ }
24
+ /** Either incoming or outgoing links to a given file. */
25
+ export interface LinkSource {
26
+ type: 'link';
27
+ /** The file to look for links to/from. */
28
+ file: string;
29
+ /**
30
+ * The direction to look - if incoming, then all files linking to the target file. If outgoing, then all files
31
+ * which the file links to.
32
+ */
33
+ direction: 'incoming' | 'outgoing';
34
+ }
35
+ /** A source which is everything EXCEPT the files returned by the given source. */
36
+ export interface NegatedSource {
37
+ type: 'negate';
38
+ /** The source to negate. */
39
+ child: Source;
40
+ }
41
+ /** A source which yields nothing. */
42
+ export interface EmptySource {
43
+ type: 'empty';
44
+ }
45
+ /** A source made by combining subsources with a logical operators. */
46
+ export interface BinaryOpSource {
47
+ type: 'binaryop';
48
+ op: SourceOp;
49
+ left: Source;
50
+ right: Source;
51
+ }
52
+ /** Utility functions for creating and manipulating sources. */
53
+ export declare namespace Sources {
54
+ /** Create a source which searches from a tag. */
55
+ function tag(tag: string): TagSource;
56
+ /** Create a source which fetches from a CSV file. */
57
+ function csv(path: string): CsvSource;
58
+ /** Create a source which searches for files under a folder prefix. */
59
+ function folder(prefix: string): FolderSource;
60
+ /** Create a source which searches for files which link to/from a given file. */
61
+ function link(file: string, incoming: boolean): LinkSource;
62
+ /** Create a source which joins two sources by a logical operator (and/or). */
63
+ function binaryOp(left: Source, op: SourceOp, right: Source): Source;
64
+ /** Create a source which takes the intersection of two sources. */
65
+ function and(left: Source, right: Source): Source;
66
+ /** Create a source which takes the union of two sources. */
67
+ function or(left: Source, right: Source): Source;
68
+ /** Create a source which negates the underlying source. */
69
+ function negate(child: Source): NegatedSource;
70
+ function empty(): EmptySource;
71
+ }
@@ -1 +1,115 @@
1
- export * from '../../../../../cjs/obsidian/@types/Dataview/data-model/markdown.cjs';
1
+ import type { DateTime } from 'luxon';
2
+ import type { Pos } from 'obsidian';
3
+ import type { FullIndex } from '../data-index/index.d.d.mts';
4
+ import type {
5
+ SListItem,
6
+ SMarkdownPage
7
+ } from '../data-model/serialized/markdown.d.d.mts';
8
+ import type {
9
+ Link,
10
+ Literal
11
+ } from '../data-model/value.d.d.mts';
12
+ import type { DataObject } from '../index.d.d.mts';
13
+ /** All extracted markdown file metadata obtained from a file. */
14
+ export declare class PageMetadata {
15
+ /** The path this file exists at. */
16
+ path: string;
17
+ /** Obsidian-provided date this page was created. */
18
+ ctime: DateTime;
19
+ /** Obsidian-provided date this page was modified. */
20
+ mtime: DateTime;
21
+ /** Obsidian-provided size of this page in bytes. */
22
+ size: number;
23
+ /** The day associated with this page, if relevant. */
24
+ day?: DateTime;
25
+ /** The first H1/H2 header in the file. May not exist. */
26
+ title?: string;
27
+ /** All of the fields contained in this markdown file - both frontmatter AND in-file links. */
28
+ fields: Map<string, Literal>;
29
+ /** All of the exact tags (prefixed with '#') in this file overall. */
30
+ tags: Set<string>;
31
+ /** All of the aliases defined for this file. */
32
+ aliases: Set<string>;
33
+ /** All OUTGOING links (including embeds, header + block links) in this file. */
34
+ links: Link[];
35
+ /** All list items contained within this page. Filter for tasks to get just tasks. */
36
+ lists: ListItem[];
37
+ /** The raw frontmatter for this document. */
38
+ frontmatter: Record<string, Literal>;
39
+ constructor(path: string, init?: Partial<PageMetadata>);
40
+ /** Canonicalize raw links and other data in partial data with normalizers, returning a completed object. */
41
+ static canonicalize(data: Partial<PageMetadata>, linkNormalizer: (link: Link) => Link): PageMetadata;
42
+ /** The name (based on path) of this file. */
43
+ name(): string;
44
+ /** The containing folder (based on path) of this file. */
45
+ folder(): string;
46
+ /** The extension of this file (likely 'md'). */
47
+ extension(): string;
48
+ /** Return a set of tags AND all of their parent tags (so #hello/yes would become #hello, #hello/yes). */
49
+ fullTags(): Set<string>;
50
+ /** Convert all links in this file to file links. */
51
+ fileLinks(): Link[];
52
+ /** Map this metadata to a full object; uses the index for additional data lookups. */
53
+ serialize(index: FullIndex, cache?: ListSerializationCache): SMarkdownPage;
54
+ }
55
+ /** A list item inside of a list. */
56
+ export declare class ListItem {
57
+ /** The symbol ('*', '-', '1.') used to define this list item. */
58
+ symbol: string;
59
+ /** A link which points to this task, or to the closest block that this task is contained in. */
60
+ link: Link;
61
+ /** A link to the section that contains this list element; could be a file if this is not in a section. */
62
+ section: Link;
63
+ /** The text of this list item. This may be multiple lines of markdown. */
64
+ text: string;
65
+ /** The line that this list item starts on in the file. */
66
+ line: number;
67
+ /** The number of lines that define this list item. */
68
+ lineCount: number;
69
+ /** The line number for the first list item in the list this item belongs to. */
70
+ list: number;
71
+ /** Any links contained within this list item. */
72
+ links: Link[];
73
+ /** The tags contained within this list item. */
74
+ tags: Set<string>;
75
+ /** The raw Obsidian-provided position for where this task is. */
76
+ position: Pos;
77
+ /** The line number of the parent list item, if present; if this is undefined, this is a root item. */
78
+ parent?: number;
79
+ /** The line numbers of children of this list item. */
80
+ children: number[];
81
+ /** The block ID for this item, if one is present. */
82
+ blockId?: string;
83
+ /** Any fields defined in this list item. For tasks, this includes fields underneath the task. */
84
+ fields: Map<string, Literal[]>;
85
+ task?: {
86
+ /** The text in between the brackets of the '[ ]' task indicator ('[X]' would yield 'X', for example.) */
87
+ status: string;
88
+ /** Whether or not this task has been checked in any way (it's status is not empty/space). */
89
+ checked: boolean;
90
+ /** Whether or not this task was completed; derived from 'status' by checking if the field 'X' or 'x'. */
91
+ completed: boolean;
92
+ /** Whether or not this task and all of it's subtasks are completed. */
93
+ fullyCompleted: boolean;
94
+ };
95
+ constructor(init?: Partial<ListItem>);
96
+ id(): string;
97
+ file(): Link;
98
+ markdown(): string;
99
+ created(): Literal | undefined;
100
+ due(): Literal | undefined;
101
+ completed(): Literal | undefined;
102
+ start(): Literal | undefined;
103
+ scheduled(): Literal | undefined;
104
+ /** Create an API-friendly copy of this list item. De-duplication is done via the provided cache. */
105
+ serialize(cache: ListSerializationCache): SListItem;
106
+ }
107
+ /** De-duplicates list items across section metadata and page metadata. */
108
+ export declare class ListSerializationCache {
109
+ listItems: Record<number, ListItem>;
110
+ cache: Record<number, SListItem>;
111
+ seen: Set<number>;
112
+ constructor(listItems: ListItem[]);
113
+ get(lineno: number): SListItem | undefined;
114
+ }
115
+ export declare function addFields(fields: Map<string, Literal[]>, target: DataObject): DataObject;