roamjs-components 0.86.0-alpha.3 → 0.86.1

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 (567) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +29 -29
  3. package/components/AutocompleteInput.d.ts +29 -28
  4. package/components/AutocompleteInput.js +132 -120
  5. package/components/AutocompleteInput.js.map +1 -1
  6. package/components/BlockErrorBoundary.d.ts +15 -16
  7. package/components/BlockErrorBoundary.js +27 -27
  8. package/components/BlockErrorBoundary.js.map +1 -1
  9. package/components/BlockInput.d.ts +13 -13
  10. package/components/BlockInput.js +55 -55
  11. package/components/ComponentContainer.d.ts +10 -11
  12. package/components/ComponentContainer.js +37 -37
  13. package/components/ComponentContainer.js.map +1 -1
  14. package/components/ConfigPage.d.ts +35 -35
  15. package/components/ConfigPage.js +159 -159
  16. package/components/ConfigPanels/BlockPanel.d.ts +3 -3
  17. package/components/ConfigPanels/BlockPanel.js +42 -42
  18. package/components/ConfigPanels/BlockPanel.js.map +1 -1
  19. package/components/ConfigPanels/BlocksPanel.d.ts +3 -3
  20. package/components/ConfigPanels/BlocksPanel.js +58 -58
  21. package/components/ConfigPanels/BlocksPanel.js.map +1 -1
  22. package/components/ConfigPanels/CustomPanel.d.ts +3 -3
  23. package/components/ConfigPanels/CustomPanel.js +24 -24
  24. package/components/ConfigPanels/FlagPanel.d.ts +3 -3
  25. package/components/ConfigPanels/FlagPanel.js +31 -31
  26. package/components/ConfigPanels/MultiChildPanel.d.ts +9 -9
  27. package/components/ConfigPanels/MultiChildPanel.js +58 -58
  28. package/components/ConfigPanels/MultiTextPanel.d.ts +3 -3
  29. package/components/ConfigPanels/MultiTextPanel.js +14 -14
  30. package/components/ConfigPanels/NumberPanel.d.ts +3 -3
  31. package/components/ConfigPanels/NumberPanel.js +25 -25
  32. package/components/ConfigPanels/OauthPanel.d.ts +3 -3
  33. package/components/ConfigPanels/OauthPanel.js +81 -81
  34. package/components/ConfigPanels/OauthPanel.js.map +1 -1
  35. package/components/ConfigPanels/PagesPanel.d.ts +3 -3
  36. package/components/ConfigPanels/PagesPanel.js +11 -11
  37. package/components/ConfigPanels/SelectPanel.d.ts +3 -3
  38. package/components/ConfigPanels/SelectPanel.js +27 -27
  39. package/components/ConfigPanels/TextPanel.d.ts +3 -3
  40. package/components/ConfigPanels/TextPanel.js +28 -28
  41. package/components/ConfigPanels/TimePanel.d.ts +3 -3
  42. package/components/ConfigPanels/TimePanel.js +34 -34
  43. package/components/ConfigPanels/getBrandColors.d.ts +7 -7
  44. package/components/ConfigPanels/getBrandColors.js +28 -28
  45. package/components/ConfigPanels/types.d.ts +84 -84
  46. package/components/ConfigPanels/types.js +2 -2
  47. package/components/ConfigPanels/types.js.map +1 -1
  48. package/components/ConfigPanels/useSingleChildValue.d.ts +13 -13
  49. package/components/ConfigPanels/useSingleChildValue.js +43 -43
  50. package/components/CursorMenu.d.ts +21 -21
  51. package/components/CursorMenu.js +181 -181
  52. package/components/CursorMenu.js.map +1 -1
  53. package/components/Description.d.ts +5 -5
  54. package/components/Description.js +16 -16
  55. package/components/ExtensionApiContext.d.ts +31 -31
  56. package/components/ExtensionApiContext.js +16 -16
  57. package/components/ExternalLogin.d.ts +18 -18
  58. package/components/ExternalLogin.js +141 -141
  59. package/components/Filter.d.ts +15 -15
  60. package/components/Filter.js +142 -142
  61. package/components/FormDialog.d.ts +55 -55
  62. package/components/FormDialog.js +220 -217
  63. package/components/FormDialog.js.map +1 -1
  64. package/components/Loading.d.ts +4 -4
  65. package/components/Loading.js +35 -35
  66. package/components/MenuItemSelect.d.ts +17 -17
  67. package/components/MenuItemSelect.js +23 -23
  68. package/components/MenuItemSelect.js.map +1 -1
  69. package/components/OauthPanel.d.ts +7 -7
  70. package/components/OauthPanel.js +30 -30
  71. package/components/OauthSelect.d.ts +5 -5
  72. package/components/OauthSelect.js +25 -25
  73. package/components/PageInput.d.ts +6 -6
  74. package/components/PageInput.js +13 -13
  75. package/components/PageLink.d.ts +6 -6
  76. package/components/PageLink.js +31 -31
  77. package/components/ProgressDialog.d.ts +11 -11
  78. package/components/ProgressDialog.js +48 -48
  79. package/components/SimpleAlert.d.ts +15 -15
  80. package/components/SimpleAlert.js +47 -47
  81. package/components/Toast.d.ts +15 -15
  82. package/components/Toast.js +50 -50
  83. package/components/index.js +4 -4
  84. package/components/index.js.map +1 -1
  85. package/components.d.ts +5 -5
  86. package/components.js +172 -201
  87. package/components.js.map +1 -1
  88. package/date/constants.d.ts +3 -3
  89. package/date/constants.js +19 -19
  90. package/date/constants.js.map +1 -1
  91. package/date/index.d.ts +3 -3
  92. package/date/index.js +9 -9
  93. package/date/index.js.map +1 -1
  94. package/date/parseNlpDate.d.ts +5 -5
  95. package/date/parseNlpDate.js +226 -226
  96. package/date/parseNlpDate.js.map +1 -1
  97. package/date/parseRoamDateUid.d.ts +2 -2
  98. package/date/parseRoamDateUid.js +7 -7
  99. package/date/parseRoamDateUid.js.map +1 -1
  100. package/dom/addBlockCommand.d.ts +5 -5
  101. package/dom/addBlockCommand.js +53 -53
  102. package/dom/addBlockCommand.js.map +1 -1
  103. package/dom/addKeyboardTriggers.d.ts +11 -11
  104. package/dom/addKeyboardTriggers.js +38 -38
  105. package/dom/addKeyboardTriggers.js.map +1 -1
  106. package/dom/addOldRoamJSDependency.d.ts +2 -2
  107. package/dom/addOldRoamJSDependency.js +10 -10
  108. package/dom/addOldRoamJSDependency.js.map +1 -1
  109. package/dom/addRoamJSDependency.d.ts +2 -2
  110. package/dom/addRoamJSDependency.js +8 -8
  111. package/dom/addRoamJSDependency.js.map +1 -1
  112. package/dom/addScriptAsDependency.d.ts +6 -6
  113. package/dom/addScriptAsDependency.js +16 -16
  114. package/dom/addScriptAsDependency.js.map +1 -1
  115. package/dom/addStyle.d.ts +2 -2
  116. package/dom/addStyle.js +14 -14
  117. package/dom/addStyle.js.map +1 -1
  118. package/dom/constants.d.ts +1 -1
  119. package/dom/constants.js +4 -4
  120. package/dom/constants.js.map +1 -1
  121. package/dom/createBlockObserver.d.ts +7 -7
  122. package/dom/createBlockObserver.js +43 -43
  123. package/dom/createBlockObserver.js.map +1 -1
  124. package/dom/createButtonObserver.d.ts +6 -6
  125. package/dom/createButtonObserver.js +21 -21
  126. package/dom/createButtonObserver.js.map +1 -1
  127. package/dom/createDivObserver.d.ts +2 -2
  128. package/dom/createDivObserver.js +13 -13
  129. package/dom/createDivObserver.js.map +1 -1
  130. package/dom/createHTMLObserver.d.ts +8 -8
  131. package/dom/createHTMLObserver.js +24 -24
  132. package/dom/createHTMLObserver.js.map +1 -1
  133. package/dom/createHashtagObserver.d.ts +5 -5
  134. package/dom/createHashtagObserver.js +16 -16
  135. package/dom/createHashtagObserver.js.map +1 -1
  136. package/dom/createIconButton.d.ts +2 -2
  137. package/dom/createIconButton.js +12 -12
  138. package/dom/createIconButton.js.map +1 -1
  139. package/dom/createObserver.d.ts +2 -2
  140. package/dom/createObserver.js +9 -9
  141. package/dom/createObserver.js.map +1 -1
  142. package/dom/createOverlayObserver.d.ts +2 -2
  143. package/dom/createOverlayObserver.js +6 -6
  144. package/dom/createOverlayObserver.js.map +1 -1
  145. package/dom/createPageObserver.d.ts +2 -2
  146. package/dom/createPageObserver.js +34 -34
  147. package/dom/createPageObserver.js.map +1 -1
  148. package/dom/createPageTitleObserver.d.ts +6 -6
  149. package/dom/createPageTitleObserver.js +31 -31
  150. package/dom/createPageTitleObserver.js.map +1 -1
  151. package/dom/elToTitle.d.ts +2 -2
  152. package/dom/elToTitle.js +22 -22
  153. package/dom/elToTitle.js.map +1 -1
  154. package/dom/genericError.d.ts +3 -3
  155. package/dom/genericError.js +11 -11
  156. package/dom/genericError.js.map +1 -1
  157. package/dom/getActiveUids.d.ts +3 -3
  158. package/dom/getActiveUids.js +6 -6
  159. package/dom/getActiveUids.js.map +1 -1
  160. package/dom/getBlockUidFromTarget.d.ts +2 -2
  161. package/dom/getBlockUidFromTarget.js +33 -33
  162. package/dom/getBlockUidFromTarget.js.map +1 -1
  163. package/dom/getCurrentPageUid.d.ts +2 -2
  164. package/dom/getCurrentPageUid.js +8 -8
  165. package/dom/getCurrentPageUid.js.map +1 -1
  166. package/dom/getDomRefs.d.ts +2 -2
  167. package/dom/getDomRefs.js +12 -12
  168. package/dom/getDomRefs.js.map +1 -1
  169. package/dom/getDropUidOffset.d.ts +5 -5
  170. package/dom/getDropUidOffset.js +27 -27
  171. package/dom/getDropUidOffset.js.map +1 -1
  172. package/dom/getMutatedNodes.d.ts +7 -7
  173. package/dom/getMutatedNodes.js +11 -11
  174. package/dom/getMutatedNodes.js.map +1 -1
  175. package/dom/getPageTitleByHtmlElement.d.ts +2 -2
  176. package/dom/getPageTitleByHtmlElement.js +12 -12
  177. package/dom/getPageTitleByHtmlElement.js.map +1 -1
  178. package/dom/getPageTitleValueByHtmlElement.d.ts +2 -2
  179. package/dom/getPageTitleValueByHtmlElement.js +9 -9
  180. package/dom/getPageTitleValueByHtmlElement.js.map +1 -1
  181. package/dom/getReferenceBlockUid.d.ts +2 -2
  182. package/dom/getReferenceBlockUid.js +18 -18
  183. package/dom/getReferenceBlockUid.js.map +1 -1
  184. package/dom/getRoamUrl.d.ts +2 -2
  185. package/dom/getRoamUrl.js +4 -4
  186. package/dom/getRoamUrl.js.map +1 -1
  187. package/dom/getRoamUrlByPage.d.ts +2 -2
  188. package/dom/getRoamUrlByPage.js +10 -10
  189. package/dom/getRoamUrlByPage.js.map +1 -1
  190. package/dom/getUids.d.ts +3 -3
  191. package/dom/getUids.js +8 -8
  192. package/dom/getUids.js.map +1 -1
  193. package/dom/getUidsFromButton.d.ts +3 -3
  194. package/dom/getUidsFromButton.js +8 -8
  195. package/dom/getUidsFromButton.js.map +1 -1
  196. package/dom/getUidsFromId.d.ts +5 -5
  197. package/dom/getUidsFromId.js +15 -15
  198. package/dom/getUidsFromId.js.map +1 -1
  199. package/dom/index.d.ts +30 -30
  200. package/dom/index.js +63 -63
  201. package/dom/index.js.map +1 -1
  202. package/dom/parseRoamBlocksToHtml.d.ts +11 -11
  203. package/dom/parseRoamBlocksToHtml.js +79 -79
  204. package/dom/parseRoamBlocksToHtml.js.map +1 -1
  205. package/dom/resolveRefs.d.ts +2 -2
  206. package/dom/resolveRefs.js +24 -24
  207. package/dom/resolveRefs.js.map +1 -1
  208. package/events/index.d.ts +1 -1
  209. package/events/index.js +8 -8
  210. package/events/index.js.map +1 -1
  211. package/events/watchOnce.d.ts +3 -3
  212. package/events/watchOnce.js +12 -12
  213. package/events/watchOnce.js.map +1 -1
  214. package/hooks/index.d.ts +2 -2
  215. package/hooks/index.js +10 -10
  216. package/hooks/index.js.map +1 -1
  217. package/hooks/useArrowKeyDown.d.ts +10 -10
  218. package/hooks/useArrowKeyDown.js +54 -54
  219. package/hooks/useArrowKeyDown.js.map +1 -1
  220. package/hooks/useSubTree.d.ts +3 -3
  221. package/hooks/useSubTree.js +11 -11
  222. package/hooks/useSubTree.js.map +1 -1
  223. package/marked/index.d.ts +25 -25
  224. package/marked/index.js +567 -567
  225. package/marked/index.js.map +1 -1
  226. package/package.json +120 -125
  227. package/queries/compileDatalog.d.ts +3 -3
  228. package/queries/compileDatalog.js +63 -63
  229. package/queries/compileDatalog.js.map +1 -1
  230. package/queries/getAllBlockUids.d.ts +2 -2
  231. package/queries/getAllBlockUids.js +6 -6
  232. package/queries/getAllBlockUids.js.map +1 -1
  233. package/queries/getAllBlockUidsAndTexts.d.ts +5 -5
  234. package/queries/getAllBlockUidsAndTexts.js +6 -6
  235. package/queries/getAllBlockUidsAndTexts.js.map +1 -1
  236. package/queries/getAllPageNames.d.ts +2 -2
  237. package/queries/getAllPageNames.js +6 -6
  238. package/queries/getAllPageNames.js.map +1 -1
  239. package/queries/getAttributeValueByBlockAndName.d.ts +5 -5
  240. package/queries/getAttributeValueByBlockAndName.js +11 -11
  241. package/queries/getAttributeValueByBlockAndName.js.map +1 -1
  242. package/queries/getBasicTreeByParentUid.d.ts +3 -3
  243. package/queries/getBasicTreeByParentUid.js +13 -13
  244. package/queries/getBasicTreeByParentUid.js.map +1 -1
  245. package/queries/getBlockUidAndTextIncludingText.d.ts +5 -5
  246. package/queries/getBlockUidAndTextIncludingText.js +7 -7
  247. package/queries/getBlockUidAndTextIncludingText.js.map +1 -1
  248. package/queries/getBlockUidByTextOnPage.d.ts +5 -5
  249. package/queries/getBlockUidByTextOnPage.js +7 -7
  250. package/queries/getBlockUidByTextOnPage.js.map +1 -1
  251. package/queries/getBlockUidsAndTextsReferencingPage.d.ts +5 -5
  252. package/queries/getBlockUidsAndTextsReferencingPage.js +9 -9
  253. package/queries/getBlockUidsAndTextsReferencingPage.js.map +1 -1
  254. package/queries/getBlockUidsByPageTitle.d.ts +2 -2
  255. package/queries/getBlockUidsByPageTitle.js +8 -8
  256. package/queries/getBlockUidsByPageTitle.js.map +1 -1
  257. package/queries/getBlockUidsReferencingBlock.d.ts +2 -2
  258. package/queries/getBlockUidsReferencingBlock.js +4 -4
  259. package/queries/getBlockUidsReferencingBlock.js.map +1 -1
  260. package/queries/getBlockUidsReferencingPage.d.ts +2 -2
  261. package/queries/getBlockUidsReferencingPage.js +6 -6
  262. package/queries/getBlockUidsReferencingPage.js.map +1 -1
  263. package/queries/getBlockUidsWithParentUid.d.ts +2 -2
  264. package/queries/getBlockUidsWithParentUid.js +6 -6
  265. package/queries/getBlockUidsWithParentUid.js.map +1 -1
  266. package/queries/getChildrenLengthByPageUid.d.ts +2 -2
  267. package/queries/getChildrenLengthByPageUid.js +8 -8
  268. package/queries/getChildrenLengthByPageUid.js.map +1 -1
  269. package/queries/getChildrenLengthByParentUid.d.ts +2 -2
  270. package/queries/getChildrenLengthByParentUid.js +7 -7
  271. package/queries/getChildrenLengthByParentUid.js.map +1 -1
  272. package/queries/getCreateTimeByBlockUid.d.ts +2 -2
  273. package/queries/getCreateTimeByBlockUid.js +7 -7
  274. package/queries/getCreateTimeByBlockUid.js.map +1 -1
  275. package/queries/getCurrentUser.d.ts +2 -2
  276. package/queries/getCurrentUser.js +11 -11
  277. package/queries/getCurrentUser.js.map +1 -1
  278. package/queries/getCurrentUserDisplayName.d.ts +2 -2
  279. package/queries/getCurrentUserDisplayName.js +10 -10
  280. package/queries/getCurrentUserDisplayName.js.map +1 -1
  281. package/queries/getCurrentUserEmail.d.ts +2 -2
  282. package/queries/getCurrentUserEmail.js +13 -13
  283. package/queries/getCurrentUserEmail.js.map +1 -1
  284. package/queries/getCurrentUserUid.d.ts +2 -2
  285. package/queries/getCurrentUserUid.js +13 -13
  286. package/queries/getCurrentUserUid.js.map +1 -1
  287. package/queries/getDisplayNameByEmail.d.ts +2 -2
  288. package/queries/getDisplayNameByEmail.js +7 -7
  289. package/queries/getDisplayNameByEmail.js.map +1 -1
  290. package/queries/getDisplayNameByUid.d.ts +2 -2
  291. package/queries/getDisplayNameByUid.js +7 -7
  292. package/queries/getDisplayNameByUid.js.map +1 -1
  293. package/queries/getEditTimeByBlockUid.d.ts +2 -2
  294. package/queries/getEditTimeByBlockUid.js +7 -7
  295. package/queries/getEditTimeByBlockUid.js.map +1 -1
  296. package/queries/getEditedUserEmailByBlockUid.d.ts +2 -2
  297. package/queries/getEditedUserEmailByBlockUid.js +7 -7
  298. package/queries/getEditedUserEmailByBlockUid.js.map +1 -1
  299. package/queries/getFirstChildTextByBlockUid.d.ts +2 -2
  300. package/queries/getFirstChildTextByBlockUid.js +7 -7
  301. package/queries/getFirstChildTextByBlockUid.js.map +1 -1
  302. package/queries/getFirstChildUidByBlockUid.d.ts +2 -2
  303. package/queries/getFirstChildUidByBlockUid.js +6 -6
  304. package/queries/getFirstChildUidByBlockUid.js.map +1 -1
  305. package/queries/getFullTreeByParentUid.d.ts +3 -3
  306. package/queries/getFullTreeByParentUid.js +51 -51
  307. package/queries/getFullTreeByParentUid.js.map +1 -1
  308. package/queries/getLinkedPageTitlesUnderUid.d.ts +2 -2
  309. package/queries/getLinkedPageTitlesUnderUid.js +6 -6
  310. package/queries/getLinkedPageTitlesUnderUid.js.map +1 -1
  311. package/queries/getNthChildUidByBlockUid.d.ts +5 -5
  312. package/queries/getNthChildUidByBlockUid.js +7 -7
  313. package/queries/getNthChildUidByBlockUid.js.map +1 -1
  314. package/queries/getOrderByBlockUid.d.ts +2 -2
  315. package/queries/getOrderByBlockUid.js +7 -7
  316. package/queries/getOrderByBlockUid.js.map +1 -1
  317. package/queries/getPageTitleByBlockUid.d.ts +2 -2
  318. package/queries/getPageTitleByBlockUid.js +7 -7
  319. package/queries/getPageTitleByBlockUid.js.map +1 -1
  320. package/queries/getPageTitleByPageUid.d.ts +2 -2
  321. package/queries/getPageTitleByPageUid.js +12 -12
  322. package/queries/getPageTitleByPageUid.js.map +1 -1
  323. package/queries/getPageTitleReferencesByPageTitle.d.ts +2 -2
  324. package/queries/getPageTitleReferencesByPageTitle.js +6 -6
  325. package/queries/getPageTitleReferencesByPageTitle.js.map +1 -1
  326. package/queries/getPageTitlesAndBlockUidsReferencingPage.d.ts +5 -5
  327. package/queries/getPageTitlesAndBlockUidsReferencingPage.js +9 -9
  328. package/queries/getPageTitlesAndBlockUidsReferencingPage.js.map +1 -1
  329. package/queries/getPageTitlesAndUidsDirectlyReferencingPage.d.ts +5 -5
  330. package/queries/getPageTitlesAndUidsDirectlyReferencingPage.js +9 -9
  331. package/queries/getPageTitlesAndUidsDirectlyReferencingPage.js.map +1 -1
  332. package/queries/getPageTitlesReferencingBlockUid.d.ts +2 -2
  333. package/queries/getPageTitlesReferencingBlockUid.js +4 -4
  334. package/queries/getPageTitlesReferencingBlockUid.js.map +1 -1
  335. package/queries/getPageTitlesStartingWithPrefix.d.ts +2 -2
  336. package/queries/getPageTitlesStartingWithPrefix.js +6 -6
  337. package/queries/getPageTitlesStartingWithPrefix.js.map +1 -1
  338. package/queries/getPageUidByBlockUid.d.ts +2 -2
  339. package/queries/getPageUidByBlockUid.js +7 -7
  340. package/queries/getPageUidByBlockUid.js.map +1 -1
  341. package/queries/getPageUidByPageTitle.d.ts +2 -2
  342. package/queries/getPageUidByPageTitle.js +9 -9
  343. package/queries/getPageUidByPageTitle.js.map +1 -1
  344. package/queries/getPageViewType.d.ts +3 -3
  345. package/queries/getPageViewType.js +9 -9
  346. package/queries/getPageViewType.js.map +1 -1
  347. package/queries/getParentTextByBlockUid.d.ts +2 -2
  348. package/queries/getParentTextByBlockUid.js +7 -7
  349. package/queries/getParentTextByBlockUid.js.map +1 -1
  350. package/queries/getParentTextByBlockUidAndTag.d.ts +5 -5
  351. package/queries/getParentTextByBlockUidAndTag.js +7 -7
  352. package/queries/getParentTextByBlockUidAndTag.js.map +1 -1
  353. package/queries/getParentUidByBlockUid.d.ts +2 -2
  354. package/queries/getParentUidByBlockUid.js +7 -7
  355. package/queries/getParentUidByBlockUid.js.map +1 -1
  356. package/queries/getParentUidsOfBlockUid.d.ts +2 -2
  357. package/queries/getParentUidsOfBlockUid.js +4 -4
  358. package/queries/getParentUidsOfBlockUid.js.map +1 -1
  359. package/queries/getSettingsByEmail.d.ts +3 -3
  360. package/queries/getSettingsByEmail.js +7 -7
  361. package/queries/getSettingsByEmail.js.map +1 -1
  362. package/queries/getShallowTreeByParentUid.d.ts +5 -5
  363. package/queries/getShallowTreeByParentUid.js +9 -9
  364. package/queries/getShallowTreeByParentUid.js.map +1 -1
  365. package/queries/getTextByBlockUid.d.ts +2 -2
  366. package/queries/getTextByBlockUid.js +9 -9
  367. package/queries/getTextByBlockUid.js.map +1 -1
  368. package/queries/index.js +4 -4
  369. package/queries/index.js.map +1 -1
  370. package/queries/isLiveBlock.d.ts +2 -2
  371. package/queries/isLiveBlock.js +4 -4
  372. package/queries/isLiveBlock.js.map +1 -1
  373. package/queries/isTagOnPage.d.ts +5 -5
  374. package/queries/isTagOnPage.js +9 -9
  375. package/queries/isTagOnPage.js.map +1 -1
  376. package/queries/normalizePageTitle.d.ts +2 -2
  377. package/queries/normalizePageTitle.js +4 -4
  378. package/queries/normalizePageTitle.js.map +1 -1
  379. package/scripts/index.d.ts +1 -1
  380. package/scripts/index.js +26 -26
  381. package/scripts/index.js.map +1 -1
  382. package/scripts/publishToRoamDepot.d.ts +7 -7
  383. package/scripts/publishToRoamDepot.js +113 -113
  384. package/scripts/publishToRoamDepot.js.map +1 -1
  385. package/testing/mockRoamEnvironment.d.ts +2 -2
  386. package/testing/mockRoamEnvironment.js +1253 -1253
  387. package/testing/mockRoamEnvironment.js.map +1 -1
  388. package/types/index.d.ts +393 -250
  389. package/types/index.js +4 -4
  390. package/types/index.js.map +1 -1
  391. package/types/native.d.ts +405 -402
  392. package/types/native.js +4 -4
  393. package/types/native.js.map +1 -1
  394. package/types/query-builder.d.ts +10 -10
  395. package/types/query-builder.js +2 -2
  396. package/types/query-builder.js.map +1 -1
  397. package/types/smartblocks.d.ts +35 -35
  398. package/types/smartblocks.js +2 -2
  399. package/types/smartblocks.js.map +1 -1
  400. package/util/addInputSetting.d.ts +7 -7
  401. package/util/addInputSetting.js +25 -25
  402. package/util/addInputSetting.js.map +1 -1
  403. package/util/apiDelete.d.ts +2 -2
  404. package/util/apiDelete.js +6 -6
  405. package/util/apiDelete.js.map +1 -1
  406. package/util/apiGet.d.ts +2 -2
  407. package/util/apiGet.js +6 -6
  408. package/util/apiGet.js.map +1 -1
  409. package/util/apiPost.d.ts +2 -2
  410. package/util/apiPost.js +6 -6
  411. package/util/apiPost.js.map +1 -1
  412. package/util/apiPut.d.ts +2 -2
  413. package/util/apiPut.js +6 -6
  414. package/util/apiPut.js.map +1 -1
  415. package/util/createOverlayRender.d.ts +4 -4
  416. package/util/createOverlayRender.js +6 -6
  417. package/util/createOverlayRender.js.map +1 -1
  418. package/util/createTagRegex.d.ts +2 -2
  419. package/util/createTagRegex.js +7 -7
  420. package/util/createTagRegex.js.map +1 -1
  421. package/util/dispatchToRegistry.d.ts +3 -3
  422. package/util/dispatchToRegistry.js +7 -7
  423. package/util/dispatchToRegistry.js.map +1 -1
  424. package/util/env.d.ts +4 -4
  425. package/util/env.js +47 -47
  426. package/util/env.js.map +1 -1
  427. package/util/extensionApiContext.d.ts +29 -29
  428. package/util/extensionApiContext.js +17 -17
  429. package/util/extensionApiContext.js.map +1 -1
  430. package/util/extensionDeprecatedWarning.d.ts +5 -5
  431. package/util/extensionDeprecatedWarning.js +39 -39
  432. package/util/extensionDeprecatedWarning.js.map +1 -1
  433. package/util/extractRef.d.ts +2 -2
  434. package/util/extractRef.js +8 -8
  435. package/util/extractRef.js.map +1 -1
  436. package/util/extractTag.d.ts +2 -2
  437. package/util/extractTag.js +15 -15
  438. package/util/extractTag.js.map +1 -1
  439. package/util/focusMainWindowBlock.d.ts +2 -2
  440. package/util/focusMainWindowBlock.js +12 -12
  441. package/util/focusMainWindowBlock.js.map +1 -1
  442. package/util/getAuthorizationHeader.d.ts +2 -2
  443. package/util/getAuthorizationHeader.js +12 -12
  444. package/util/getAuthorizationHeader.js.map +1 -1
  445. package/util/getLocalStorageKey.d.ts +2 -2
  446. package/util/getLocalStorageKey.js +4 -4
  447. package/util/getLocalStorageKey.js.map +1 -1
  448. package/util/getOauth.d.ts +2 -2
  449. package/util/getOauth.js +52 -52
  450. package/util/getOauth.js.map +1 -1
  451. package/util/getOauthAccounts.d.ts +2 -2
  452. package/util/getOauthAccounts.js +22 -22
  453. package/util/getOauthAccounts.js.map +1 -1
  454. package/util/getRenderRoot.d.ts +2 -2
  455. package/util/getRenderRoot.js +18 -18
  456. package/util/getRenderRoot.js.map +1 -1
  457. package/util/getSettingIntFromTree.d.ts +7 -7
  458. package/util/getSettingIntFromTree.js +11 -11
  459. package/util/getSettingIntFromTree.js.map +1 -1
  460. package/util/getSettingValueFromTree.d.ts +8 -8
  461. package/util/getSettingValueFromTree.js +14 -14
  462. package/util/getSettingValueFromTree.js.map +1 -1
  463. package/util/getSettingValuesFromTree.d.ts +7 -7
  464. package/util/getSettingValuesFromTree.js +12 -12
  465. package/util/getSettingValuesFromTree.js.map +1 -1
  466. package/util/getSubTree.d.ts +8 -8
  467. package/util/getSubTree.js +19 -19
  468. package/util/getSubTree.js.map +1 -1
  469. package/util/getToken.d.ts +2 -2
  470. package/util/getToken.js +10 -10
  471. package/util/getToken.js.map +1 -1
  472. package/util/getTokenFromTree.d.ts +3 -3
  473. package/util/getTokenFromTree.js +4 -4
  474. package/util/getTokenFromTree.js.map +1 -1
  475. package/util/getWorkerClient.d.ts +12 -12
  476. package/util/getWorkerClient.js +41 -41
  477. package/util/getWorkerClient.js.map +1 -1
  478. package/util/handleBodyFetch.d.ts +3 -3
  479. package/util/handleBodyFetch.js +21 -21
  480. package/util/handleBodyFetch.js.map +1 -1
  481. package/util/handleFetch.d.ts +13 -13
  482. package/util/handleFetch.js +40 -40
  483. package/util/handleFetch.js.map +1 -1
  484. package/util/handleUrlFetch.d.ts +3 -3
  485. package/util/handleUrlFetch.js +19 -19
  486. package/util/handleUrlFetch.js.map +1 -1
  487. package/util/idToTitle.d.ts +2 -2
  488. package/util/idToTitle.js +8 -8
  489. package/util/idToTitle.js.map +1 -1
  490. package/util/index.d.ts +24 -24
  491. package/util/index.js +54 -54
  492. package/util/index.js.map +1 -1
  493. package/util/isControl.d.ts +2 -2
  494. package/util/isControl.js +4 -4
  495. package/util/isControl.js.map +1 -1
  496. package/util/localStorageGet.d.ts +2 -2
  497. package/util/localStorageGet.js +8 -8
  498. package/util/localStorageGet.js.map +1 -1
  499. package/util/localStorageRemove.d.ts +2 -2
  500. package/util/localStorageRemove.js +6 -6
  501. package/util/localStorageRemove.js.map +1 -1
  502. package/util/localStorageSet.d.ts +2 -2
  503. package/util/localStorageSet.js +8 -8
  504. package/util/localStorageSet.js.map +1 -1
  505. package/util/registerExperimentalMode.d.ts +6 -6
  506. package/util/registerExperimentalMode.js +65 -65
  507. package/util/registerExperimentalMode.js.map +1 -1
  508. package/util/registerSmartBlocksCommand.d.ts +3 -3
  509. package/util/registerSmartBlocksCommand.js +23 -23
  510. package/util/registerSmartBlocksCommand.js.map +1 -1
  511. package/util/removeFromRegistry.d.ts +3 -3
  512. package/util/removeFromRegistry.js +7 -7
  513. package/util/removeFromRegistry.js.map +1 -1
  514. package/util/renderOverlay.d.ts +12 -12
  515. package/util/renderOverlay.js +48 -48
  516. package/util/renderOverlay.js.map +1 -1
  517. package/util/renderWithUnmount.d.ts +4 -4
  518. package/util/renderWithUnmount.js +44 -44
  519. package/util/renderWithUnmount.js.map +1 -1
  520. package/util/runExtension.d.ts +11 -11
  521. package/util/runExtension.js +174 -174
  522. package/util/runExtension.js.map +1 -1
  523. package/util/setInputSetting.d.ts +7 -7
  524. package/util/setInputSetting.js +37 -37
  525. package/util/setInputSetting.js.map +1 -1
  526. package/util/setInputSettings.d.ts +7 -7
  527. package/util/setInputSettings.js +28 -28
  528. package/util/setInputSettings.js.map +1 -1
  529. package/util/stripUid.d.ts +3 -3
  530. package/util/stripUid.js +10 -10
  531. package/util/stripUid.js.map +1 -1
  532. package/util/toConfigPageName.d.ts +2 -2
  533. package/util/toConfigPageName.js +4 -4
  534. package/util/toConfigPageName.js.map +1 -1
  535. package/util/toFlexRegex.d.ts +2 -2
  536. package/util/toFlexRegex.js +4 -4
  537. package/util/toFlexRegex.js.map +1 -1
  538. package/writes/clearBlockById.d.ts +2 -2
  539. package/writes/clearBlockById.js +17 -17
  540. package/writes/clearBlockById.js.map +1 -1
  541. package/writes/clearBlockByUid.d.ts +2 -2
  542. package/writes/clearBlockByUid.js +16 -16
  543. package/writes/clearBlockByUid.js.map +1 -1
  544. package/writes/createBlock.d.ts +8 -8
  545. package/writes/createBlock.js +28 -28
  546. package/writes/createBlock.js.map +1 -1
  547. package/writes/createPage.d.ts +7 -7
  548. package/writes/createPage.js +20 -20
  549. package/writes/createPage.js.map +1 -1
  550. package/writes/deleteBlock.d.ts +2 -2
  551. package/writes/deleteBlock.js +10 -10
  552. package/writes/deleteBlock.js.map +1 -1
  553. package/writes/index.d.ts +8 -8
  554. package/writes/index.js +22 -22
  555. package/writes/index.js.map +1 -1
  556. package/writes/openBlockInSidebar.d.ts +2 -2
  557. package/writes/openBlockInSidebar.js +13 -13
  558. package/writes/openBlockInSidebar.js.map +1 -1
  559. package/writes/submitActions.d.ts +8 -8
  560. package/writes/submitActions.js +36 -36
  561. package/writes/submitActions.js.map +1 -1
  562. package/writes/updateActiveBlock.d.ts +2 -2
  563. package/writes/updateActiveBlock.js +17 -17
  564. package/writes/updateActiveBlock.js.map +1 -1
  565. package/writes/updateBlock.d.ts +5 -5
  566. package/writes/updateBlock.js +23 -23
  567. package/writes/updateBlock.js.map +1 -1
@@ -1,7 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const normalizePageTitle_1 = tslib_1.__importDefault(require("./normalizePageTitle"));
5
- const getPageTitleReferencesByPageTitle = (title) => window.roamAlphaAPI.data.fast.q(`[:find (pull ?b [:node/title]) :where [?r :node/title "${(0, normalizePageTitle_1.default)(title)}"] [?c :block/refs ?r] [?c :block/page ?b]]`).map((p) => p[0][":node/title"]);
6
- exports.default = getPageTitleReferencesByPageTitle;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const normalizePageTitle_1 = tslib_1.__importDefault(require("./normalizePageTitle"));
5
+ const getPageTitleReferencesByPageTitle = (title) => window.roamAlphaAPI.data.fast.q(`[:find (pull ?b [:node/title]) :where [?r :node/title "${(0, normalizePageTitle_1.default)(title)}"] [?c :block/refs ?r] [?c :block/page ?b]]`).map((p) => p[0][":node/title"]);
6
+ exports.default = getPageTitleReferencesByPageTitle;
7
7
  //# sourceMappingURL=getPageTitleReferencesByPageTitle.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getPageTitleReferencesByPageTitle.js","sourceRoot":"","sources":["../../src/queries/getPageTitleReferencesByPageTitle.ts"],"names":[],"mappings":";;;AACA,sFAAsD;AAEtD,MAAM,iCAAiC,GAAG,CAAC,KAAa,EAAY,EAAE,CAElE,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAC7B,0DAA0D,IAAA,4BAAkB,EAC1E,KAAK,CACN,6CAA6C,CAEjD,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,CAAW,CAAC,CAAC;AAE9C,kBAAe,iCAAiC,CAAC","sourcesContent":["import { PullBlock } from \"../types\";\r\nimport normalizePageTitle from \"./normalizePageTitle\";\r\n\r\nconst getPageTitleReferencesByPageTitle = (title: string): string[] =>\r\n (\r\n window.roamAlphaAPI.data.fast.q(\r\n `[:find (pull ?b [:node/title]) :where [?r :node/title \"${normalizePageTitle(\r\n title\r\n )}\"] [?c :block/refs ?r] [?c :block/page ?b]]`\r\n ) as [PullBlock][]\r\n ).map((p) => p[0][\":node/title\"] as string);\r\n\r\nexport default getPageTitleReferencesByPageTitle;\r\n"]}
1
+ {"version":3,"file":"getPageTitleReferencesByPageTitle.js","sourceRoot":"","sources":["../../src/queries/getPageTitleReferencesByPageTitle.ts"],"names":[],"mappings":";;;AACA,sFAAsD;AAEtD,MAAM,iCAAiC,GAAG,CAAC,KAAa,EAAY,EAAE,CAElE,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAC7B,0DAA0D,IAAA,4BAAkB,EAC1E,KAAK,CACN,6CAA6C,CAEjD,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,CAAW,CAAC,CAAC;AAE9C,kBAAe,iCAAiC,CAAC","sourcesContent":["import { PullBlock } from \"../types\";\nimport normalizePageTitle from \"./normalizePageTitle\";\n\nconst getPageTitleReferencesByPageTitle = (title: string): string[] =>\n (\n window.roamAlphaAPI.data.fast.q(\n `[:find (pull ?b [:node/title]) :where [?r :node/title \"${normalizePageTitle(\n title\n )}\"] [?c :block/refs ?r] [?c :block/page ?b]]`\n ) as [PullBlock][]\n ).map((p) => p[0][\":node/title\"] as string);\n\nexport default getPageTitleReferencesByPageTitle;\n"]}
@@ -1,5 +1,5 @@
1
- declare const getPageTitlesAndBlockUidsReferencingPage: (pageName: string) => {
2
- title: string;
3
- uid: string;
4
- }[];
5
- export default getPageTitlesAndBlockUidsReferencingPage;
1
+ declare const getPageTitlesAndBlockUidsReferencingPage: (pageName: string) => {
2
+ title: string;
3
+ uid: string;
4
+ }[];
5
+ export default getPageTitlesAndBlockUidsReferencingPage;
@@ -1,10 +1,10 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const normalizePageTitle_1 = tslib_1.__importDefault(require("./normalizePageTitle"));
5
- const getPageTitlesAndBlockUidsReferencingPage = (pageName) => window.roamAlphaAPI.data.fast.q(`[:find (pull ?pr [:node/title]) (pull ?r [:block/uid]) :where [?p :node/title "${(0, normalizePageTitle_1.default)(pageName)}"] [?r :block/refs ?p] [?r :block/page ?pr]]`).map(([pr, r]) => ({
6
- title: (pr === null || pr === void 0 ? void 0 : pr[":node/title"]) || "",
7
- uid: (r === null || r === void 0 ? void 0 : r[":block/uid"]) || "",
8
- }));
9
- exports.default = getPageTitlesAndBlockUidsReferencingPage;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const normalizePageTitle_1 = tslib_1.__importDefault(require("./normalizePageTitle"));
5
+ const getPageTitlesAndBlockUidsReferencingPage = (pageName) => window.roamAlphaAPI.data.fast.q(`[:find (pull ?pr [:node/title]) (pull ?r [:block/uid]) :where [?p :node/title "${(0, normalizePageTitle_1.default)(pageName)}"] [?r :block/refs ?p] [?r :block/page ?pr]]`).map(([pr, r]) => ({
6
+ title: (pr === null || pr === void 0 ? void 0 : pr[":node/title"]) || "",
7
+ uid: (r === null || r === void 0 ? void 0 : r[":block/uid"]) || "",
8
+ }));
9
+ exports.default = getPageTitlesAndBlockUidsReferencingPage;
10
10
  //# sourceMappingURL=getPageTitlesAndBlockUidsReferencingPage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getPageTitlesAndBlockUidsReferencingPage.js","sourceRoot":"","sources":["../../src/queries/getPageTitlesAndBlockUidsReferencingPage.ts"],"names":[],"mappings":";;;AACA,sFAAsD;AAEtD,MAAM,wCAAwC,GAAG,CAC/C,QAAgB,EACkB,EAAE,CAElC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAC7B,kFAAkF,IAAA,4BAAkB,EAClG,QAAQ,CACT,8CAA8C,CAElD,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAClB,KAAK,EAAE,CAAA,EAAE,aAAF,EAAE,uBAAF,EAAE,CAAG,aAAa,CAAC,KAAI,EAAE;IAChC,GAAG,EAAE,CAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAG,YAAY,CAAC,KAAI,EAAE;CAC7B,CAAC,CAAC,CAAC;AAEN,kBAAe,wCAAwC,CAAC","sourcesContent":["import { PullBlock } from \"../types\";\r\nimport normalizePageTitle from \"./normalizePageTitle\";\r\n\r\nconst getPageTitlesAndBlockUidsReferencingPage = (\r\n pageName: string\r\n): { title: string; uid: string }[] =>\r\n (\r\n window.roamAlphaAPI.data.fast.q(\r\n `[:find (pull ?pr [:node/title]) (pull ?r [:block/uid]) :where [?p :node/title \"${normalizePageTitle(\r\n pageName\r\n )}\"] [?r :block/refs ?p] [?r :block/page ?pr]]`\r\n ) as [PullBlock, PullBlock][]\r\n ).map(([pr, r]) => ({\r\n title: pr?.[\":node/title\"] || \"\",\r\n uid: r?.[\":block/uid\"] || \"\",\r\n }));\r\n\r\nexport default getPageTitlesAndBlockUidsReferencingPage;\r\n"]}
1
+ {"version":3,"file":"getPageTitlesAndBlockUidsReferencingPage.js","sourceRoot":"","sources":["../../src/queries/getPageTitlesAndBlockUidsReferencingPage.ts"],"names":[],"mappings":";;;AACA,sFAAsD;AAEtD,MAAM,wCAAwC,GAAG,CAC/C,QAAgB,EACkB,EAAE,CAElC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAC7B,kFAAkF,IAAA,4BAAkB,EAClG,QAAQ,CACT,8CAA8C,CAElD,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAClB,KAAK,EAAE,CAAA,EAAE,aAAF,EAAE,uBAAF,EAAE,CAAG,aAAa,CAAC,KAAI,EAAE;IAChC,GAAG,EAAE,CAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAG,YAAY,CAAC,KAAI,EAAE;CAC7B,CAAC,CAAC,CAAC;AAEN,kBAAe,wCAAwC,CAAC","sourcesContent":["import { PullBlock } from \"../types\";\nimport normalizePageTitle from \"./normalizePageTitle\";\n\nconst getPageTitlesAndBlockUidsReferencingPage = (\n pageName: string\n): { title: string; uid: string }[] =>\n (\n window.roamAlphaAPI.data.fast.q(\n `[:find (pull ?pr [:node/title]) (pull ?r [:block/uid]) :where [?p :node/title \"${normalizePageTitle(\n pageName\n )}\"] [?r :block/refs ?p] [?r :block/page ?pr]]`\n ) as [PullBlock, PullBlock][]\n ).map(([pr, r]) => ({\n title: pr?.[\":node/title\"] || \"\",\n uid: r?.[\":block/uid\"] || \"\",\n }));\n\nexport default getPageTitlesAndBlockUidsReferencingPage;\n"]}
@@ -1,5 +1,5 @@
1
- declare const getPageTitlesAndUidsDirectlyReferencingPage: (pageName: string) => {
2
- title: string;
3
- uid: string;
4
- }[];
5
- export default getPageTitlesAndUidsDirectlyReferencingPage;
1
+ declare const getPageTitlesAndUidsDirectlyReferencingPage: (pageName: string) => {
2
+ title: string;
3
+ uid: string;
4
+ }[];
5
+ export default getPageTitlesAndUidsDirectlyReferencingPage;
@@ -1,10 +1,10 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const normalizePageTitle_1 = tslib_1.__importDefault(require("./normalizePageTitle"));
5
- const getPageTitlesAndUidsDirectlyReferencingPage = (pageName) => window.roamAlphaAPI.data.fast.q(`[:find (pull ?r [:node/title :block/uid]) :where [?p :node/title "${(0, normalizePageTitle_1.default)(pageName)}"] [?r :block/refs ?p]]`).map(([block]) => ({
6
- title: block[":node/title"] || "",
7
- uid: block[":block/uid"] || "",
8
- }));
9
- exports.default = getPageTitlesAndUidsDirectlyReferencingPage;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const normalizePageTitle_1 = tslib_1.__importDefault(require("./normalizePageTitle"));
5
+ const getPageTitlesAndUidsDirectlyReferencingPage = (pageName) => window.roamAlphaAPI.data.fast.q(`[:find (pull ?r [:node/title :block/uid]) :where [?p :node/title "${(0, normalizePageTitle_1.default)(pageName)}"] [?r :block/refs ?p]]`).map(([block]) => ({
6
+ title: block[":node/title"] || "",
7
+ uid: block[":block/uid"] || "",
8
+ }));
9
+ exports.default = getPageTitlesAndUidsDirectlyReferencingPage;
10
10
  //# sourceMappingURL=getPageTitlesAndUidsDirectlyReferencingPage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getPageTitlesAndUidsDirectlyReferencingPage.js","sourceRoot":"","sources":["../../src/queries/getPageTitlesAndUidsDirectlyReferencingPage.ts"],"names":[],"mappings":";;;AACA,sFAAsD;AAEtD,MAAM,2CAA2C,GAAG,CAClD,QAAgB,EACkB,EAAE,CAElC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAC7B,qEAAqE,IAAA,4BAAkB,EACrF,QAAQ,CACT,yBAAyB,CAE7B,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;IAClB,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,IAAI,EAAE;IACjC,GAAG,EAAE,KAAK,CAAC,YAAY,CAAC,IAAI,EAAE;CAC/B,CAAC,CAAC,CAAC;AAEN,kBAAe,2CAA2C,CAAC","sourcesContent":["import { PullBlock } from \"../types\";\r\nimport normalizePageTitle from \"./normalizePageTitle\";\r\n\r\nconst getPageTitlesAndUidsDirectlyReferencingPage = (\r\n pageName: string\r\n): { title: string; uid: string }[] =>\r\n (\r\n window.roamAlphaAPI.data.fast.q(\r\n `[:find (pull ?r [:node/title :block/uid]) :where [?p :node/title \"${normalizePageTitle(\r\n pageName\r\n )}\"] [?r :block/refs ?p]]`\r\n ) as [PullBlock][]\r\n ).map(([block]) => ({\r\n title: block[\":node/title\"] || \"\",\r\n uid: block[\":block/uid\"] || \"\",\r\n }));\r\n\r\nexport default getPageTitlesAndUidsDirectlyReferencingPage;\r\n"]}
1
+ {"version":3,"file":"getPageTitlesAndUidsDirectlyReferencingPage.js","sourceRoot":"","sources":["../../src/queries/getPageTitlesAndUidsDirectlyReferencingPage.ts"],"names":[],"mappings":";;;AACA,sFAAsD;AAEtD,MAAM,2CAA2C,GAAG,CAClD,QAAgB,EACkB,EAAE,CAElC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAC7B,qEAAqE,IAAA,4BAAkB,EACrF,QAAQ,CACT,yBAAyB,CAE7B,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;IAClB,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,IAAI,EAAE;IACjC,GAAG,EAAE,KAAK,CAAC,YAAY,CAAC,IAAI,EAAE;CAC/B,CAAC,CAAC,CAAC;AAEN,kBAAe,2CAA2C,CAAC","sourcesContent":["import { PullBlock } from \"../types\";\nimport normalizePageTitle from \"./normalizePageTitle\";\n\nconst getPageTitlesAndUidsDirectlyReferencingPage = (\n pageName: string\n): { title: string; uid: string }[] =>\n (\n window.roamAlphaAPI.data.fast.q(\n `[:find (pull ?r [:node/title :block/uid]) :where [?p :node/title \"${normalizePageTitle(\n pageName\n )}\"] [?r :block/refs ?p]]`\n ) as [PullBlock][]\n ).map(([block]) => ({\n title: block[\":node/title\"] || \"\",\n uid: block[\":block/uid\"] || \"\",\n }));\n\nexport default getPageTitlesAndUidsDirectlyReferencingPage;\n"]}
@@ -1,2 +1,2 @@
1
- declare const getPageTitlesReferencingBlockUid: (uid: string) => string[];
2
- export default getPageTitlesReferencingBlockUid;
1
+ declare const getPageTitlesReferencingBlockUid: (uid: string) => string[];
2
+ export default getPageTitlesReferencingBlockUid;
@@ -1,5 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const getPageTitlesReferencingBlockUid = (uid) => window.roamAlphaAPI.data.fast.q(`[:find (pull ?p [:node/title]) :where [?r :block/uid "${uid}"] [?b :block/refs ?r] [?b :block/page ?p]]`).map((s) => { var _a; return ((_a = s[0]) === null || _a === void 0 ? void 0 : _a[":node/title"]) || ""; });
4
- exports.default = getPageTitlesReferencingBlockUid;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const getPageTitlesReferencingBlockUid = (uid) => window.roamAlphaAPI.data.fast.q(`[:find (pull ?p [:node/title]) :where [?r :block/uid "${uid}"] [?b :block/refs ?r] [?b :block/page ?p]]`).map((s) => { var _a; return ((_a = s[0]) === null || _a === void 0 ? void 0 : _a[":node/title"]) || ""; });
4
+ exports.default = getPageTitlesReferencingBlockUid;
5
5
  //# sourceMappingURL=getPageTitlesReferencingBlockUid.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getPageTitlesReferencingBlockUid.js","sourceRoot":"","sources":["../../src/queries/getPageTitlesReferencingBlockUid.ts"],"names":[],"mappings":";;AAEA,MAAM,gCAAgC,GAAG,CAAC,GAAW,EAAY,EAAE,CAE/D,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAC7B,yDAAyD,GAAG,6CAA6C,CAE5G,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,WAAC,OAAA,CAAA,MAAA,CAAC,CAAC,CAAC,CAAC,0CAAG,aAAa,CAAC,KAAI,EAAE,CAAA,EAAA,CAAC,CAAC;AAE5C,kBAAe,gCAAgC,CAAC","sourcesContent":["import { PullBlock } from \"../types\";\r\n\r\nconst getPageTitlesReferencingBlockUid = (uid: string): string[] =>\r\n (\r\n window.roamAlphaAPI.data.fast.q(\r\n `[:find (pull ?p [:node/title]) :where [?r :block/uid \"${uid}\"] [?b :block/refs ?r] [?b :block/page ?p]]`\r\n ) as [PullBlock][]\r\n ).map((s) => s[0]?.[\":node/title\"] || \"\");\r\n\r\nexport default getPageTitlesReferencingBlockUid;\r\n"]}
1
+ {"version":3,"file":"getPageTitlesReferencingBlockUid.js","sourceRoot":"","sources":["../../src/queries/getPageTitlesReferencingBlockUid.ts"],"names":[],"mappings":";;AAEA,MAAM,gCAAgC,GAAG,CAAC,GAAW,EAAY,EAAE,CAE/D,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAC7B,yDAAyD,GAAG,6CAA6C,CAE5G,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,WAAC,OAAA,CAAA,MAAA,CAAC,CAAC,CAAC,CAAC,0CAAG,aAAa,CAAC,KAAI,EAAE,CAAA,EAAA,CAAC,CAAC;AAE5C,kBAAe,gCAAgC,CAAC","sourcesContent":["import { PullBlock } from \"../types\";\n\nconst getPageTitlesReferencingBlockUid = (uid: string): string[] =>\n (\n window.roamAlphaAPI.data.fast.q(\n `[:find (pull ?p [:node/title]) :where [?r :block/uid \"${uid}\"] [?b :block/refs ?r] [?b :block/page ?p]]`\n ) as [PullBlock][]\n ).map((s) => s[0]?.[\":node/title\"] || \"\");\n\nexport default getPageTitlesReferencingBlockUid;\n"]}
@@ -1,2 +1,2 @@
1
- declare const getPageTitlesStartingWithPrefix: (prefix: string) => string[];
2
- export default getPageTitlesStartingWithPrefix;
1
+ declare const getPageTitlesStartingWithPrefix: (prefix: string) => string[];
2
+ export default getPageTitlesStartingWithPrefix;
@@ -1,7 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const getPageTitlesStartingWithPrefix = (prefix) => window.roamAlphaAPI
4
- .q(`[:find ?title :where [?b :node/title ?title] [(clojure.string/starts-with? ?title "${prefix}")]]`)
5
- .map((r) => r[0]);
6
- exports.default = getPageTitlesStartingWithPrefix;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const getPageTitlesStartingWithPrefix = (prefix) => window.roamAlphaAPI
4
+ .q(`[:find ?title :where [?b :node/title ?title] [(clojure.string/starts-with? ?title "${prefix}")]]`)
5
+ .map((r) => r[0]);
6
+ exports.default = getPageTitlesStartingWithPrefix;
7
7
  //# sourceMappingURL=getPageTitlesStartingWithPrefix.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getPageTitlesStartingWithPrefix.js","sourceRoot":"","sources":["../../src/queries/getPageTitlesStartingWithPrefix.ts"],"names":[],"mappings":";;AAAA,MAAM,+BAA+B,GAAG,CAAC,MAAc,EAAY,EAAE,CACnE,MAAM,CAAC,YAAY;KAChB,CAAC,CACA,uFAAuF,MAAM,MAAM,CACpG;KACA,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAW,CAAC,CAAC;AAEhC,kBAAe,+BAA+B,CAAC","sourcesContent":["const getPageTitlesStartingWithPrefix = (prefix: string): string[] =>\r\n window.roamAlphaAPI\r\n .q(\r\n `[:find ?title :where [?b :node/title ?title] [(clojure.string/starts-with? ?title \"${prefix}\")]]`\r\n )\r\n .map((r) => r[0] as string);\r\n\r\nexport default getPageTitlesStartingWithPrefix;\r\n"]}
1
+ {"version":3,"file":"getPageTitlesStartingWithPrefix.js","sourceRoot":"","sources":["../../src/queries/getPageTitlesStartingWithPrefix.ts"],"names":[],"mappings":";;AAAA,MAAM,+BAA+B,GAAG,CAAC,MAAc,EAAY,EAAE,CACnE,MAAM,CAAC,YAAY;KAChB,CAAC,CACA,uFAAuF,MAAM,MAAM,CACpG;KACA,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAW,CAAC,CAAC;AAEhC,kBAAe,+BAA+B,CAAC","sourcesContent":["const getPageTitlesStartingWithPrefix = (prefix: string): string[] =>\n window.roamAlphaAPI\n .q(\n `[:find ?title :where [?b :node/title ?title] [(clojure.string/starts-with? ?title \"${prefix}\")]]`\n )\n .map((r) => r[0] as string);\n\nexport default getPageTitlesStartingWithPrefix;\n"]}
@@ -1,2 +1,2 @@
1
- declare const getPageUidByBlockUid: (blockUid: string) => string;
2
- export default getPageUidByBlockUid;
1
+ declare const getPageUidByBlockUid: (blockUid: string) => string;
2
+ export default getPageUidByBlockUid;
@@ -1,8 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const getPageUidByBlockUid = (blockUid) => {
4
- var _a, _b, _c;
5
- return ((_c = (_b = (_a = window.roamAlphaAPI.q(`[:find (pull ?p [:block/uid]) :where [?e :block/uid "${blockUid}"] [?e :block/page ?p]]`)) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.uid) || "";
6
- };
7
- exports.default = getPageUidByBlockUid;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const getPageUidByBlockUid = (blockUid) => {
4
+ var _a, _b, _c;
5
+ return ((_c = (_b = (_a = window.roamAlphaAPI.q(`[:find (pull ?p [:block/uid]) :where [?e :block/uid "${blockUid}"] [?e :block/page ?p]]`)) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.uid) || "";
6
+ };
7
+ exports.default = getPageUidByBlockUid;
8
8
  //# sourceMappingURL=getPageUidByBlockUid.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getPageUidByBlockUid.js","sourceRoot":"","sources":["../../src/queries/getPageUidByBlockUid.ts"],"names":[],"mappings":";;AAAA,MAAM,oBAAoB,GAAG,CAAC,QAAgB,EAAU,EAAE;;IACxD,OAAA,CAAA,MACE,MAAA,MAAA,MAAM,CAAC,YAAY,CAAC,CAAC,CACnB,wDAAwD,QAAQ,yBAAyB,CAC1F,0CAAG,CAAC,CAAC,0CAAG,CAAC,CACX,0CAAE,GAAG,KAAI,EAAE,CAAA;CAAA,CAAC;AAEf,kBAAe,oBAAoB,CAAC","sourcesContent":["const getPageUidByBlockUid = (blockUid: string): string =>\r\n (\r\n window.roamAlphaAPI.q(\r\n `[:find (pull ?p [:block/uid]) :where [?e :block/uid \"${blockUid}\"] [?e :block/page ?p]]`\r\n )?.[0]?.[0] as { uid?: string }\r\n )?.uid || \"\";\r\n\r\nexport default getPageUidByBlockUid;\r\n"]}
1
+ {"version":3,"file":"getPageUidByBlockUid.js","sourceRoot":"","sources":["../../src/queries/getPageUidByBlockUid.ts"],"names":[],"mappings":";;AAAA,MAAM,oBAAoB,GAAG,CAAC,QAAgB,EAAU,EAAE;;IACxD,OAAA,CAAA,MACE,MAAA,MAAA,MAAM,CAAC,YAAY,CAAC,CAAC,CACnB,wDAAwD,QAAQ,yBAAyB,CAC1F,0CAAG,CAAC,CAAC,0CAAG,CAAC,CACX,0CAAE,GAAG,KAAI,EAAE,CAAA;CAAA,CAAC;AAEf,kBAAe,oBAAoB,CAAC","sourcesContent":["const getPageUidByBlockUid = (blockUid: string): string =>\n (\n window.roamAlphaAPI.q(\n `[:find (pull ?p [:block/uid]) :where [?e :block/uid \"${blockUid}\"] [?e :block/page ?p]]`\n )?.[0]?.[0] as { uid?: string }\n )?.uid || \"\";\n\nexport default getPageUidByBlockUid;\n"]}
@@ -1,2 +1,2 @@
1
- declare const getPageUidByPageTitle: (title: string) => string;
2
- export default getPageUidByPageTitle;
1
+ declare const getPageUidByPageTitle: (title: string) => string;
2
+ export default getPageUidByPageTitle;
@@ -1,10 +1,10 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const getPageUidByPageTitle = (title) => {
4
- var _a;
5
- if (!title)
6
- return "";
7
- return (((_a = window.roamAlphaAPI.pull("[:block/uid]", [":node/title", title])) === null || _a === void 0 ? void 0 : _a[":block/uid"]) || "");
8
- };
9
- exports.default = getPageUidByPageTitle;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const getPageUidByPageTitle = (title) => {
4
+ var _a;
5
+ if (!title)
6
+ return "";
7
+ return (((_a = window.roamAlphaAPI.pull("[:block/uid]", [":node/title", title])) === null || _a === void 0 ? void 0 : _a[":block/uid"]) || "");
8
+ };
9
+ exports.default = getPageUidByPageTitle;
10
10
  //# sourceMappingURL=getPageUidByPageTitle.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getPageUidByPageTitle.js","sourceRoot":"","sources":["../../src/queries/getPageUidByPageTitle.ts"],"names":[],"mappings":";;AAAA,MAAM,qBAAqB,GAAG,CAAC,KAAa,EAAU,EAAE;;IACtD,IAAI,CAAC,KAAK;QAAE,OAAO,EAAE,CAAC;IACtB,OAAO,CACL,CAAA,MAAA,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC,0CAC9D,YAAY,CACb,KAAI,EAAE,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,qBAAqB,CAAC","sourcesContent":["const getPageUidByPageTitle = (title: string): string => {\r\n if (!title) return \"\";\r\n return (\r\n window.roamAlphaAPI.pull(\"[:block/uid]\", [\":node/title\", title])?.[\r\n \":block/uid\"\r\n ] || \"\"\r\n );\r\n};\r\n\r\nexport default getPageUidByPageTitle;\r\n"]}
1
+ {"version":3,"file":"getPageUidByPageTitle.js","sourceRoot":"","sources":["../../src/queries/getPageUidByPageTitle.ts"],"names":[],"mappings":";;AAAA,MAAM,qBAAqB,GAAG,CAAC,KAAa,EAAU,EAAE;;IACtD,IAAI,CAAC,KAAK;QAAE,OAAO,EAAE,CAAC;IACtB,OAAO,CACL,CAAA,MAAA,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC,0CAC9D,YAAY,CACb,KAAI,EAAE,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,qBAAqB,CAAC","sourcesContent":["const getPageUidByPageTitle = (title: string): string => {\n if (!title) return \"\";\n return (\n window.roamAlphaAPI.pull(\"[:block/uid]\", [\":node/title\", title])?.[\n \":block/uid\"\n ] || \"\"\n );\n};\n\nexport default getPageUidByPageTitle;\n"]}
@@ -1,3 +1,3 @@
1
- import type { ViewType } from "../types";
2
- declare const getPageViewType: (title: string) => ViewType;
3
- export default getPageViewType;
1
+ import type { ViewType } from "../types";
2
+ declare const getPageViewType: (title: string) => ViewType;
3
+ export default getPageViewType;
@@ -1,10 +1,10 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const normalizePageTitle_1 = tslib_1.__importDefault(require("./normalizePageTitle"));
5
- const getPageViewType = (title) => {
6
- var _a, _b;
7
- return ((_b = (_a = window.roamAlphaAPI.q(`[:find ?v :where [?e :children/view-type ?v] [?e :node/title "${(0, normalizePageTitle_1.default)(title)}"]]`)) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b[0]) || "bullet";
8
- };
9
- exports.default = getPageViewType;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const normalizePageTitle_1 = tslib_1.__importDefault(require("./normalizePageTitle"));
5
+ const getPageViewType = (title) => {
6
+ var _a, _b;
7
+ return ((_b = (_a = window.roamAlphaAPI.q(`[:find ?v :where [?e :children/view-type ?v] [?e :node/title "${(0, normalizePageTitle_1.default)(title)}"]]`)) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b[0]) || "bullet";
8
+ };
9
+ exports.default = getPageViewType;
10
10
  //# sourceMappingURL=getPageViewType.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getPageViewType.js","sourceRoot":"","sources":["../../src/queries/getPageViewType.ts"],"names":[],"mappings":";;;AAAA,sFAAsD;AAGtD,MAAM,eAAe,GAAG,CAAC,KAAa,EAAY,EAAE;;IAClD,OAAA,CAAC,MAAA,MAAA,MAAM,CAAC,YAAY,CAAC,CAAC,CACpB,iEAAiE,IAAA,4BAAkB,EACjF,KAAK,CACN,KAAK,CACP,0CAAG,CAAC,CAAC,0CAAG,CAAC,CAAc,KAAI,QAAQ,CAAA;CAAA,CAAC;AAEvC,kBAAe,eAAe,CAAC","sourcesContent":["import normalizePageTitle from \"./normalizePageTitle\";\r\nimport type { ViewType } from \"../types\";\r\n\r\nconst getPageViewType = (title: string): ViewType =>\r\n (window.roamAlphaAPI.q(\r\n `[:find ?v :where [?e :children/view-type ?v] [?e :node/title \"${normalizePageTitle(\r\n title\r\n )}\"]]`\r\n )?.[0]?.[0] as ViewType) || \"bullet\";\r\n\r\nexport default getPageViewType;\r\n"]}
1
+ {"version":3,"file":"getPageViewType.js","sourceRoot":"","sources":["../../src/queries/getPageViewType.ts"],"names":[],"mappings":";;;AAAA,sFAAsD;AAGtD,MAAM,eAAe,GAAG,CAAC,KAAa,EAAY,EAAE;;IAClD,OAAA,CAAC,MAAA,MAAA,MAAM,CAAC,YAAY,CAAC,CAAC,CACpB,iEAAiE,IAAA,4BAAkB,EACjF,KAAK,CACN,KAAK,CACP,0CAAG,CAAC,CAAC,0CAAG,CAAC,CAAc,KAAI,QAAQ,CAAA;CAAA,CAAC;AAEvC,kBAAe,eAAe,CAAC","sourcesContent":["import normalizePageTitle from \"./normalizePageTitle\";\nimport type { ViewType } from \"../types\";\n\nconst getPageViewType = (title: string): ViewType =>\n (window.roamAlphaAPI.q(\n `[:find ?v :where [?e :children/view-type ?v] [?e :node/title \"${normalizePageTitle(\n title\n )}\"]]`\n )?.[0]?.[0] as ViewType) || \"bullet\";\n\nexport default getPageViewType;\n"]}
@@ -1,2 +1,2 @@
1
- declare const getParentTextByBlockUid: (blockUid: string) => string;
2
- export default getParentTextByBlockUid;
1
+ declare const getParentTextByBlockUid: (blockUid: string) => string;
2
+ export default getParentTextByBlockUid;
@@ -1,8 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const getParentTextByBlockUid = (blockUid) => {
4
- var _a, _b;
5
- return ((_b = (_a = window.roamAlphaAPI.q(`[:find ?s :where [?e :block/uid "${blockUid}"] [?p :block/children ?e] [?p :block/string ?s]]`)) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b[0]) || "";
6
- };
7
- exports.default = getParentTextByBlockUid;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const getParentTextByBlockUid = (blockUid) => {
4
+ var _a, _b;
5
+ return ((_b = (_a = window.roamAlphaAPI.q(`[:find ?s :where [?e :block/uid "${blockUid}"] [?p :block/children ?e] [?p :block/string ?s]]`)) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b[0]) || "";
6
+ };
7
+ exports.default = getParentTextByBlockUid;
8
8
  //# sourceMappingURL=getParentTextByBlockUid.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getParentTextByBlockUid.js","sourceRoot":"","sources":["../../src/queries/getParentTextByBlockUid.ts"],"names":[],"mappings":";;AAAA,MAAM,uBAAuB,GAAG,CAAC,QAAgB,EAAU,EAAE;;IAC3D,OAAA,CAAC,MAAA,MAAA,MAAM,CAAC,YAAY,CAAC,CAAC,CACpB,oCAAoC,QAAQ,mDAAmD,CAChG,0CAAG,CAAC,CAAC,0CAAG,CAAC,CAAY,KAAI,EAAE,CAAA;CAAA,CAAC;AAE/B,kBAAe,uBAAuB,CAAC","sourcesContent":["const getParentTextByBlockUid = (blockUid: string): string =>\r\n (window.roamAlphaAPI.q(\r\n `[:find ?s :where [?e :block/uid \"${blockUid}\"] [?p :block/children ?e] [?p :block/string ?s]]`\r\n )?.[0]?.[0] as string) || \"\";\r\n\r\nexport default getParentTextByBlockUid;\r\n"]}
1
+ {"version":3,"file":"getParentTextByBlockUid.js","sourceRoot":"","sources":["../../src/queries/getParentTextByBlockUid.ts"],"names":[],"mappings":";;AAAA,MAAM,uBAAuB,GAAG,CAAC,QAAgB,EAAU,EAAE;;IAC3D,OAAA,CAAC,MAAA,MAAA,MAAM,CAAC,YAAY,CAAC,CAAC,CACpB,oCAAoC,QAAQ,mDAAmD,CAChG,0CAAG,CAAC,CAAC,0CAAG,CAAC,CAAY,KAAI,EAAE,CAAA;CAAA,CAAC;AAE/B,kBAAe,uBAAuB,CAAC","sourcesContent":["const getParentTextByBlockUid = (blockUid: string): string =>\n (window.roamAlphaAPI.q(\n `[:find ?s :where [?e :block/uid \"${blockUid}\"] [?p :block/children ?e] [?p :block/string ?s]]`\n )?.[0]?.[0] as string) || \"\";\n\nexport default getParentTextByBlockUid;\n"]}
@@ -1,5 +1,5 @@
1
- declare const getParentTextByBlockUidAndTag: ({ blockUid, tag, }: {
2
- blockUid: string;
3
- tag: string;
4
- }) => string;
5
- export default getParentTextByBlockUidAndTag;
1
+ declare const getParentTextByBlockUidAndTag: ({ blockUid, tag, }: {
2
+ blockUid: string;
3
+ tag: string;
4
+ }) => string;
5
+ export default getParentTextByBlockUidAndTag;
@@ -1,8 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const getParentTextByBlockUidAndTag = ({ blockUid, tag, }) => {
4
- var _a, _b;
5
- return ((_b = (_a = window.roamAlphaAPI.q(`[:find ?s :where [?t :node/title "${tag}"] [?p :block/refs ?t] [?p :block/string ?s] [?b :block/parents ?p] [?b :block/uid "${blockUid}"]]`)) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b[0]) || "";
6
- };
7
- exports.default = getParentTextByBlockUidAndTag;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const getParentTextByBlockUidAndTag = ({ blockUid, tag, }) => {
4
+ var _a, _b;
5
+ return ((_b = (_a = window.roamAlphaAPI.q(`[:find ?s :where [?t :node/title "${tag}"] [?p :block/refs ?t] [?p :block/string ?s] [?b :block/parents ?p] [?b :block/uid "${blockUid}"]]`)) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b[0]) || "";
6
+ };
7
+ exports.default = getParentTextByBlockUidAndTag;
8
8
  //# sourceMappingURL=getParentTextByBlockUidAndTag.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getParentTextByBlockUidAndTag.js","sourceRoot":"","sources":["../../src/queries/getParentTextByBlockUidAndTag.ts"],"names":[],"mappings":";;AAAA,MAAM,6BAA6B,GAAG,CAAC,EACrC,QAAQ,EACR,GAAG,GAIJ,EAAU,EAAE;;IACX,OAAA,CAAC,MAAA,MAAA,MAAM,CAAC,YAAY,CAAC,CAAC,CACpB,qCAAqC,GAAG,uFAAuF,QAAQ,KAAK,CAC7I,0CAAG,CAAC,CAAC,0CAAG,CAAC,CAAY,KAAI,EAAE,CAAA;CAAA,CAAC;AAE/B,kBAAe,6BAA6B,CAAC","sourcesContent":["const getParentTextByBlockUidAndTag = ({\r\n blockUid,\r\n tag,\r\n}: {\r\n blockUid: string;\r\n tag: string;\r\n}): string =>\r\n (window.roamAlphaAPI.q(\r\n `[:find ?s :where [?t :node/title \"${tag}\"] [?p :block/refs ?t] [?p :block/string ?s] [?b :block/parents ?p] [?b :block/uid \"${blockUid}\"]]`\r\n )?.[0]?.[0] as string) || \"\";\r\n\r\nexport default getParentTextByBlockUidAndTag;\r\n"]}
1
+ {"version":3,"file":"getParentTextByBlockUidAndTag.js","sourceRoot":"","sources":["../../src/queries/getParentTextByBlockUidAndTag.ts"],"names":[],"mappings":";;AAAA,MAAM,6BAA6B,GAAG,CAAC,EACrC,QAAQ,EACR,GAAG,GAIJ,EAAU,EAAE;;IACX,OAAA,CAAC,MAAA,MAAA,MAAM,CAAC,YAAY,CAAC,CAAC,CACpB,qCAAqC,GAAG,uFAAuF,QAAQ,KAAK,CAC7I,0CAAG,CAAC,CAAC,0CAAG,CAAC,CAAY,KAAI,EAAE,CAAA;CAAA,CAAC;AAE/B,kBAAe,6BAA6B,CAAC","sourcesContent":["const getParentTextByBlockUidAndTag = ({\n blockUid,\n tag,\n}: {\n blockUid: string;\n tag: string;\n}): string =>\n (window.roamAlphaAPI.q(\n `[:find ?s :where [?t :node/title \"${tag}\"] [?p :block/refs ?t] [?p :block/string ?s] [?b :block/parents ?p] [?b :block/uid \"${blockUid}\"]]`\n )?.[0]?.[0] as string) || \"\";\n\nexport default getParentTextByBlockUidAndTag;\n"]}
@@ -1,2 +1,2 @@
1
- declare const getParentUidByBlockUid: (blockUid: string) => string;
2
- export default getParentUidByBlockUid;
1
+ declare const getParentUidByBlockUid: (blockUid: string) => string;
2
+ export default getParentUidByBlockUid;
@@ -1,8 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const getParentUidByBlockUid = (blockUid) => {
4
- var _a, _b, _c;
5
- return ((_c = (_b = (_a = window.roamAlphaAPI.data.fast.q(`[:find (pull ?p [:block/uid]) :where [?e :block/uid "${blockUid}"] [?p :block/children ?e]]`)) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c[":block/uid"]) || "";
6
- };
7
- exports.default = getParentUidByBlockUid;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const getParentUidByBlockUid = (blockUid) => {
4
+ var _a, _b, _c;
5
+ return ((_c = (_b = (_a = window.roamAlphaAPI.data.fast.q(`[:find (pull ?p [:block/uid]) :where [?e :block/uid "${blockUid}"] [?p :block/children ?e]]`)) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c[":block/uid"]) || "";
6
+ };
7
+ exports.default = getParentUidByBlockUid;
8
8
  //# sourceMappingURL=getParentUidByBlockUid.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getParentUidByBlockUid.js","sourceRoot":"","sources":["../../src/queries/getParentUidByBlockUid.ts"],"names":[],"mappings":";;AAEA,MAAM,sBAAsB,GAAG,CAAC,QAAgB,EAAU,EAAE;;IAC1D,OAAA,CAAA,MACE,MAAA,MAAA,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAC7B,wDAAwD,QAAQ,6BAA6B,CAC9F,0CAAG,CAAC,CAAC,0CAAG,CAAC,CACX,0CAAG,YAAY,CAAC,KAAI,EAAE,CAAA;CAAA,CAAC;AAE1B,kBAAe,sBAAsB,CAAC","sourcesContent":["import type { PullBlock } from \"../types/native\";\r\n\r\nconst getParentUidByBlockUid = (blockUid: string): string =>\r\n (\r\n window.roamAlphaAPI.data.fast.q(\r\n `[:find (pull ?p [:block/uid]) :where [?e :block/uid \"${blockUid}\"] [?p :block/children ?e]]`\r\n )?.[0]?.[0] as PullBlock\r\n )?.[\":block/uid\"] || \"\";\r\n\r\nexport default getParentUidByBlockUid;\r\n"]}
1
+ {"version":3,"file":"getParentUidByBlockUid.js","sourceRoot":"","sources":["../../src/queries/getParentUidByBlockUid.ts"],"names":[],"mappings":";;AAEA,MAAM,sBAAsB,GAAG,CAAC,QAAgB,EAAU,EAAE;;IAC1D,OAAA,CAAA,MACE,MAAA,MAAA,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAC7B,wDAAwD,QAAQ,6BAA6B,CAC9F,0CAAG,CAAC,CAAC,0CAAG,CAAC,CACX,0CAAG,YAAY,CAAC,KAAI,EAAE,CAAA;CAAA,CAAC;AAE1B,kBAAe,sBAAsB,CAAC","sourcesContent":["import type { PullBlock } from \"../types/native\";\n\nconst getParentUidByBlockUid = (blockUid: string): string =>\n (\n window.roamAlphaAPI.data.fast.q(\n `[:find (pull ?p [:block/uid]) :where [?e :block/uid \"${blockUid}\"] [?p :block/children ?e]]`\n )?.[0]?.[0] as PullBlock\n )?.[\":block/uid\"] || \"\";\n\nexport default getParentUidByBlockUid;\n"]}
@@ -1,2 +1,2 @@
1
- declare const getParentUidsOfBlockUid: (uid: string) => string[];
2
- export default getParentUidsOfBlockUid;
1
+ declare const getParentUidsOfBlockUid: (uid: string) => string[];
2
+ export default getParentUidsOfBlockUid;
@@ -1,5 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const getParentUidsOfBlockUid = (uid) => window.roamAlphaAPI.data.fast.q(`[:find (pull ?p [:block/uid]) :where [?b :block/uid "${uid}"] [?b :block/parents ?p] ]`).map((r) => r[0][":block/uid"] || "");
4
- exports.default = getParentUidsOfBlockUid;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const getParentUidsOfBlockUid = (uid) => window.roamAlphaAPI.data.fast.q(`[:find (pull ?p [:block/uid]) :where [?b :block/uid "${uid}"] [?b :block/parents ?p] ]`).map((r) => r[0][":block/uid"] || "");
4
+ exports.default = getParentUidsOfBlockUid;
5
5
  //# sourceMappingURL=getParentUidsOfBlockUid.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getParentUidsOfBlockUid.js","sourceRoot":"","sources":["../../src/queries/getParentUidsOfBlockUid.ts"],"names":[],"mappings":";;AAEA,MAAM,uBAAuB,GAAG,CAAC,GAAW,EAAY,EAAE,CAEtD,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAC7B,wDAAwD,GAAG,6BAA6B,CAE3F,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC;AAEzC,kBAAe,uBAAuB,CAAC","sourcesContent":["import type { PullBlock } from \"../types\";\r\n\r\nconst getParentUidsOfBlockUid = (uid: string): string[] =>\r\n (\r\n window.roamAlphaAPI.data.fast.q(\r\n `[:find (pull ?p [:block/uid]) :where [?b :block/uid \"${uid}\"] [?b :block/parents ?p] ]`\r\n ) as [PullBlock][]\r\n ).map((r) => r[0][\":block/uid\"] || \"\");\r\n\r\nexport default getParentUidsOfBlockUid;\r\n"]}
1
+ {"version":3,"file":"getParentUidsOfBlockUid.js","sourceRoot":"","sources":["../../src/queries/getParentUidsOfBlockUid.ts"],"names":[],"mappings":";;AAEA,MAAM,uBAAuB,GAAG,CAAC,GAAW,EAAY,EAAE,CAEtD,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAC7B,wDAAwD,GAAG,6BAA6B,CAE3F,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC;AAEzC,kBAAe,uBAAuB,CAAC","sourcesContent":["import type { PullBlock } from \"../types\";\n\nconst getParentUidsOfBlockUid = (uid: string): string[] =>\n (\n window.roamAlphaAPI.data.fast.q(\n `[:find (pull ?p [:block/uid]) :where [?b :block/uid \"${uid}\"] [?b :block/parents ?p] ]`\n ) as [PullBlock][]\n ).map((r) => r[0][\":block/uid\"] || \"\");\n\nexport default getParentUidsOfBlockUid;\n"]}
@@ -1,3 +1,3 @@
1
- import type { UserSettings } from "../types";
2
- declare const getSettingsByEmail: (email: string) => UserSettings;
3
- export default getSettingsByEmail;
1
+ import type { UserSettings } from "../types";
2
+ declare const getSettingsByEmail: (email: string) => UserSettings;
3
+ export default getSettingsByEmail;
@@ -1,8 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const getSettingsByEmail = (email) => {
4
- var _a, _b;
5
- return ((_b = (_a = window.roamAlphaAPI.q(`[:find ?settings :where[?e :user/settings ?settings] [?e :user/email "${email}"]]`)) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b[0]) || {};
6
- };
7
- exports.default = getSettingsByEmail;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const getSettingsByEmail = (email) => {
4
+ var _a, _b;
5
+ return ((_b = (_a = window.roamAlphaAPI.q(`[:find ?settings :where[?e :user/settings ?settings] [?e :user/email "${email}"]]`)) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b[0]) || {};
6
+ };
7
+ exports.default = getSettingsByEmail;
8
8
  //# sourceMappingURL=getSettingsByEmail.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getSettingsByEmail.js","sourceRoot":"","sources":["../../src/queries/getSettingsByEmail.ts"],"names":[],"mappings":";;AAEA,MAAM,kBAAkB,GAAG,CAAC,KAAa,EAAgB,EAAE;;IACzD,OAAA,CAAC,MAAA,MAAA,MAAM,CAAC,YAAY,CAAC,CAAC,CACpB,yEAAyE,KAAK,KAAK,CACpF,0CAAG,CAAC,CAAC,0CAAG,CAAC,CAAkB,KAAI,EAAE,CAAA;CAAA,CAAC;AAErC,kBAAe,kBAAkB,CAAC","sourcesContent":["import type { UserSettings } from \"../types\";\r\n\r\nconst getSettingsByEmail = (email: string): UserSettings =>\r\n (window.roamAlphaAPI.q(\r\n `[:find ?settings :where[?e :user/settings ?settings] [?e :user/email \"${email}\"]]`\r\n )?.[0]?.[0] as UserSettings) || {};\r\n\r\nexport default getSettingsByEmail;\r\n"]}
1
+ {"version":3,"file":"getSettingsByEmail.js","sourceRoot":"","sources":["../../src/queries/getSettingsByEmail.ts"],"names":[],"mappings":";;AAEA,MAAM,kBAAkB,GAAG,CAAC,KAAa,EAAgB,EAAE;;IACzD,OAAA,CAAC,MAAA,MAAA,MAAM,CAAC,YAAY,CAAC,CAAC,CACpB,yEAAyE,KAAK,KAAK,CACpF,0CAAG,CAAC,CAAC,0CAAG,CAAC,CAAkB,KAAI,EAAE,CAAA;CAAA,CAAC;AAErC,kBAAe,kBAAkB,CAAC","sourcesContent":["import type { UserSettings } from \"../types\";\n\nconst getSettingsByEmail = (email: string): UserSettings =>\n (window.roamAlphaAPI.q(\n `[:find ?settings :where[?e :user/settings ?settings] [?e :user/email \"${email}\"]]`\n )?.[0]?.[0] as UserSettings) || {};\n\nexport default getSettingsByEmail;\n"]}
@@ -1,5 +1,5 @@
1
- declare const getShallowTreeByParentUid: (parentUid: string) => {
2
- uid: string;
3
- text: string;
4
- }[];
5
- export default getShallowTreeByParentUid;
1
+ declare const getShallowTreeByParentUid: (parentUid: string) => {
2
+ uid: string;
3
+ text: string;
4
+ }[];
5
+ export default getShallowTreeByParentUid;
@@ -1,10 +1,10 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const getShallowTreeByParentUid = (parentUid) => window.roamAlphaAPI.data.fast.q(`[:find (pull ?c [:block/uid :block/string :block/order]) :where [?b :block/uid "${parentUid}"] [?b :block/children ?c]]`)
4
- .sort((a, b) => (a[0][":block/order"] || 0) - (b[0][":block/order"] || 0))
5
- .map(([a]) => ({
6
- uid: a[":block/uid"] || "",
7
- text: a[":block/string"] || "",
8
- }));
9
- exports.default = getShallowTreeByParentUid;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const getShallowTreeByParentUid = (parentUid) => window.roamAlphaAPI.data.fast.q(`[:find (pull ?c [:block/uid :block/string :block/order]) :where [?b :block/uid "${parentUid}"] [?b :block/children ?c]]`)
4
+ .sort((a, b) => (a[0][":block/order"] || 0) - (b[0][":block/order"] || 0))
5
+ .map(([a]) => ({
6
+ uid: a[":block/uid"] || "",
7
+ text: a[":block/string"] || "",
8
+ }));
9
+ exports.default = getShallowTreeByParentUid;
10
10
  //# sourceMappingURL=getShallowTreeByParentUid.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getShallowTreeByParentUid.js","sourceRoot":"","sources":["../../src/queries/getShallowTreeByParentUid.ts"],"names":[],"mappings":";;AAEA,MAAM,yBAAyB,GAAG,CAChC,SAAiB,EACgB,EAAE,CAEjC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAC7B,mFAAmF,SAAS,6BAA6B,CAE5H;KACE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC;KACzE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACb,GAAG,EAAE,CAAC,CAAC,YAAY,CAAC,IAAI,EAAE;IAC1B,IAAI,EAAE,CAAC,CAAC,eAAe,CAAC,IAAI,EAAE;CAC/B,CAAC,CAAC,CAAC;AAER,kBAAe,yBAAyB,CAAC","sourcesContent":["import { PullBlock } from \"../types\";\r\n\r\nconst getShallowTreeByParentUid = (\r\n parentUid: string\r\n): { uid: string; text: string }[] =>\r\n (\r\n window.roamAlphaAPI.data.fast.q(\r\n `[:find (pull ?c [:block/uid :block/string :block/order]) :where [?b :block/uid \"${parentUid}\"] [?b :block/children ?c]]`\r\n ) as [PullBlock][]\r\n )\r\n .sort((a, b) => (a[0][\":block/order\"] || 0) - (b[0][\":block/order\"] || 0))\r\n .map(([a]) => ({\r\n uid: a[\":block/uid\"] || \"\",\r\n text: a[\":block/string\"] || \"\",\r\n }));\r\n\r\nexport default getShallowTreeByParentUid;\r\n"]}
1
+ {"version":3,"file":"getShallowTreeByParentUid.js","sourceRoot":"","sources":["../../src/queries/getShallowTreeByParentUid.ts"],"names":[],"mappings":";;AAEA,MAAM,yBAAyB,GAAG,CAChC,SAAiB,EACgB,EAAE,CAEjC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAC7B,mFAAmF,SAAS,6BAA6B,CAE5H;KACE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC;KACzE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACb,GAAG,EAAE,CAAC,CAAC,YAAY,CAAC,IAAI,EAAE;IAC1B,IAAI,EAAE,CAAC,CAAC,eAAe,CAAC,IAAI,EAAE;CAC/B,CAAC,CAAC,CAAC;AAER,kBAAe,yBAAyB,CAAC","sourcesContent":["import { PullBlock } from \"../types\";\n\nconst getShallowTreeByParentUid = (\n parentUid: string\n): { uid: string; text: string }[] =>\n (\n window.roamAlphaAPI.data.fast.q(\n `[:find (pull ?c [:block/uid :block/string :block/order]) :where [?b :block/uid \"${parentUid}\"] [?b :block/children ?c]]`\n ) as [PullBlock][]\n )\n .sort((a, b) => (a[0][\":block/order\"] || 0) - (b[0][\":block/order\"] || 0))\n .map(([a]) => ({\n uid: a[\":block/uid\"] || \"\",\n text: a[\":block/string\"] || \"\",\n }));\n\nexport default getShallowTreeByParentUid;\n"]}
@@ -1,2 +1,2 @@
1
- declare const getTextByBlockUid: (uid?: string) => string;
2
- export default getTextByBlockUid;
1
+ declare const getTextByBlockUid: (uid?: string) => string;
2
+ export default getTextByBlockUid;
@@ -1,10 +1,10 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const getTextByBlockUid = (uid = "") => {
4
- var _a;
5
- return (uid &&
6
- ((_a = window.roamAlphaAPI.pull("[:block/string]", [":block/uid", uid])) === null || _a === void 0 ? void 0 : _a[":block/string"])) ||
7
- "";
8
- };
9
- exports.default = getTextByBlockUid;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const getTextByBlockUid = (uid = "") => {
4
+ var _a;
5
+ return (uid &&
6
+ ((_a = window.roamAlphaAPI.pull("[:block/string]", [":block/uid", uid])) === null || _a === void 0 ? void 0 : _a[":block/string"])) ||
7
+ "";
8
+ };
9
+ exports.default = getTextByBlockUid;
10
10
  //# sourceMappingURL=getTextByBlockUid.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getTextByBlockUid.js","sourceRoot":"","sources":["../../src/queries/getTextByBlockUid.ts"],"names":[],"mappings":";;AAAA,MAAM,iBAAiB,GAAG,CAAC,GAAG,GAAG,EAAE,EAAU,EAAE;;IAC7C,OAAA,CAAC,GAAG;SACF,MAAA,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,iBAAiB,EAAE,CAAC,YAAY,EAAE,GAAG,CAAC,CAAC,0CAC9D,eAAe,CAChB,CAAA,CAAC;QACJ,EAAE,CAAA;CAAA,CAAC;AAEL,kBAAe,iBAAiB,CAAC","sourcesContent":["const getTextByBlockUid = (uid = \"\"): string =>\r\n (uid &&\r\n window.roamAlphaAPI.pull(\"[:block/string]\", [\":block/uid\", uid])?.[\r\n \":block/string\"\r\n ]) ||\r\n \"\";\r\n\r\nexport default getTextByBlockUid;\r\n"]}
1
+ {"version":3,"file":"getTextByBlockUid.js","sourceRoot":"","sources":["../../src/queries/getTextByBlockUid.ts"],"names":[],"mappings":";;AAAA,MAAM,iBAAiB,GAAG,CAAC,GAAG,GAAG,EAAE,EAAU,EAAE;;IAC7C,OAAA,CAAC,GAAG;SACF,MAAA,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,iBAAiB,EAAE,CAAC,YAAY,EAAE,GAAG,CAAC,CAAC,0CAC9D,eAAe,CAChB,CAAA,CAAC;QACJ,EAAE,CAAA;CAAA,CAAC;AAEL,kBAAe,iBAAiB,CAAC","sourcesContent":["const getTextByBlockUid = (uid = \"\"): string =>\n (uid &&\n window.roamAlphaAPI.pull(\"[:block/string]\", [\":block/uid\", uid])?.[\n \":block/string\"\n ]) ||\n \"\";\n\nexport default getTextByBlockUid;\n"]}
package/queries/index.js CHANGED
@@ -1,5 +1,5 @@
1
- "use strict";
2
- throw new Error(`Do not import from roamjs-components/queries directly. Instead import the *query* you need directly. For example:
3
-
4
- import getTextByBlockUid from "roamjs-components/queries/getTextByBlockUid;"`);
1
+ "use strict";
2
+ throw new Error(`Do not import from roamjs-components/queries directly. Instead import the *query* you need directly. For example:
3
+
4
+ import getTextByBlockUid from "roamjs-components/queries/getTextByBlockUid;"`);
5
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/queries/index.ts"],"names":[],"mappings":";AAAA,MAAM,IAAI,KAAK,CACb;;+EAE6E,CAC9E,CAAC","sourcesContent":["throw new Error(\r\n `Do not import from roamjs-components/queries directly. Instead import the *query* you need directly. For example: \r\n \r\n import getTextByBlockUid from \"roamjs-components/queries/getTextByBlockUid;\"`\r\n);\r\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/queries/index.ts"],"names":[],"mappings":";AAAA,MAAM,IAAI,KAAK,CACb;;+EAE6E,CAC9E,CAAC","sourcesContent":["throw new Error(\n `Do not import from roamjs-components/queries directly. Instead import the *query* you need directly. For example: \n \n import getTextByBlockUid from \"roamjs-components/queries/getTextByBlockUid;\"`\n);\n"]}
@@ -1,2 +1,2 @@
1
- declare const isLiveBlock: (uid: string) => boolean;
2
- export default isLiveBlock;
1
+ declare const isLiveBlock: (uid: string) => boolean;
2
+ export default isLiveBlock;
@@ -1,5 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const isLiveBlock = (uid) => !!window.roamAlphaAPI.pull("[:db/id]", [":block/uid", uid]);
4
- exports.default = isLiveBlock;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const isLiveBlock = (uid) => !!window.roamAlphaAPI.pull("[:db/id]", [":block/uid", uid]);
4
+ exports.default = isLiveBlock;
5
5
  //# sourceMappingURL=isLiveBlock.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"isLiveBlock.js","sourceRoot":"","sources":["../../src/queries/isLiveBlock.ts"],"names":[],"mappings":";;AAAA,MAAM,WAAW,GAAG,CAAC,GAAW,EAAE,EAAE,CAClC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,YAAY,EAAE,GAAG,CAAC,CAAC,CAAC;AAE9D,kBAAe,WAAW,CAAC","sourcesContent":["const isLiveBlock = (uid: string) =>\r\n !!window.roamAlphaAPI.pull(\"[:db/id]\", [\":block/uid\", uid]);\r\n\r\nexport default isLiveBlock;\r\n"]}
1
+ {"version":3,"file":"isLiveBlock.js","sourceRoot":"","sources":["../../src/queries/isLiveBlock.ts"],"names":[],"mappings":";;AAAA,MAAM,WAAW,GAAG,CAAC,GAAW,EAAE,EAAE,CAClC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,YAAY,EAAE,GAAG,CAAC,CAAC,CAAC;AAE9D,kBAAe,WAAW,CAAC","sourcesContent":["const isLiveBlock = (uid: string) =>\n !!window.roamAlphaAPI.pull(\"[:db/id]\", [\":block/uid\", uid]);\n\nexport default isLiveBlock;\n"]}
@@ -1,5 +1,5 @@
1
- declare const isTagOnPage: ({ tag, title }: {
2
- tag: string;
3
- title: string;
4
- }) => boolean;
5
- export default isTagOnPage;
1
+ declare const isTagOnPage: ({ tag, title }: {
2
+ tag: string;
3
+ title: string;
4
+ }) => boolean;
5
+ export default isTagOnPage;
@@ -1,10 +1,10 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const normalizePageTitle_1 = tslib_1.__importDefault(require("./normalizePageTitle"));
5
- const isTagOnPage = ({ tag, title }) => {
6
- var _a, _b;
7
- return !!((_b = (_a = window.roamAlphaAPI.q(`[:find ?r :where [?r :node/title "${(0, normalizePageTitle_1.default)(tag)}"] [?b :block/refs ?r] [?b :block/page ?p] [?p :node/title "${(0, normalizePageTitle_1.default)(title)}"]]`)) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b[0]);
8
- };
9
- exports.default = isTagOnPage;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const normalizePageTitle_1 = tslib_1.__importDefault(require("./normalizePageTitle"));
5
+ const isTagOnPage = ({ tag, title }) => {
6
+ var _a, _b;
7
+ return !!((_b = (_a = window.roamAlphaAPI.q(`[:find ?r :where [?r :node/title "${(0, normalizePageTitle_1.default)(tag)}"] [?b :block/refs ?r] [?b :block/page ?p] [?p :node/title "${(0, normalizePageTitle_1.default)(title)}"]]`)) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b[0]);
8
+ };
9
+ exports.default = isTagOnPage;
10
10
  //# sourceMappingURL=isTagOnPage.js.map