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.
- package/LICENSE +21 -21
- package/README.md +29 -29
- package/components/AutocompleteInput.d.ts +29 -28
- package/components/AutocompleteInput.js +132 -120
- package/components/AutocompleteInput.js.map +1 -1
- package/components/BlockErrorBoundary.d.ts +15 -16
- package/components/BlockErrorBoundary.js +27 -27
- package/components/BlockErrorBoundary.js.map +1 -1
- package/components/BlockInput.d.ts +13 -13
- package/components/BlockInput.js +55 -55
- package/components/ComponentContainer.d.ts +10 -11
- package/components/ComponentContainer.js +37 -37
- package/components/ComponentContainer.js.map +1 -1
- package/components/ConfigPage.d.ts +35 -35
- package/components/ConfigPage.js +159 -159
- package/components/ConfigPanels/BlockPanel.d.ts +3 -3
- package/components/ConfigPanels/BlockPanel.js +42 -42
- package/components/ConfigPanels/BlockPanel.js.map +1 -1
- package/components/ConfigPanels/BlocksPanel.d.ts +3 -3
- package/components/ConfigPanels/BlocksPanel.js +58 -58
- package/components/ConfigPanels/BlocksPanel.js.map +1 -1
- package/components/ConfigPanels/CustomPanel.d.ts +3 -3
- package/components/ConfigPanels/CustomPanel.js +24 -24
- package/components/ConfigPanels/FlagPanel.d.ts +3 -3
- package/components/ConfigPanels/FlagPanel.js +31 -31
- package/components/ConfigPanels/MultiChildPanel.d.ts +9 -9
- package/components/ConfigPanels/MultiChildPanel.js +58 -58
- package/components/ConfigPanels/MultiTextPanel.d.ts +3 -3
- package/components/ConfigPanels/MultiTextPanel.js +14 -14
- package/components/ConfigPanels/NumberPanel.d.ts +3 -3
- package/components/ConfigPanels/NumberPanel.js +25 -25
- package/components/ConfigPanels/OauthPanel.d.ts +3 -3
- package/components/ConfigPanels/OauthPanel.js +81 -81
- package/components/ConfigPanels/OauthPanel.js.map +1 -1
- package/components/ConfigPanels/PagesPanel.d.ts +3 -3
- package/components/ConfigPanels/PagesPanel.js +11 -11
- package/components/ConfigPanels/SelectPanel.d.ts +3 -3
- package/components/ConfigPanels/SelectPanel.js +27 -27
- package/components/ConfigPanels/TextPanel.d.ts +3 -3
- package/components/ConfigPanels/TextPanel.js +28 -28
- package/components/ConfigPanels/TimePanel.d.ts +3 -3
- package/components/ConfigPanels/TimePanel.js +34 -34
- package/components/ConfigPanels/getBrandColors.d.ts +7 -7
- package/components/ConfigPanels/getBrandColors.js +28 -28
- package/components/ConfigPanels/types.d.ts +84 -84
- package/components/ConfigPanels/types.js +2 -2
- package/components/ConfigPanels/types.js.map +1 -1
- package/components/ConfigPanels/useSingleChildValue.d.ts +13 -13
- package/components/ConfigPanels/useSingleChildValue.js +43 -43
- package/components/CursorMenu.d.ts +21 -21
- package/components/CursorMenu.js +181 -181
- package/components/CursorMenu.js.map +1 -1
- package/components/Description.d.ts +5 -5
- package/components/Description.js +16 -16
- package/components/ExtensionApiContext.d.ts +31 -31
- package/components/ExtensionApiContext.js +16 -16
- package/components/ExternalLogin.d.ts +18 -18
- package/components/ExternalLogin.js +141 -141
- package/components/Filter.d.ts +15 -15
- package/components/Filter.js +142 -142
- package/components/FormDialog.d.ts +55 -55
- package/components/FormDialog.js +220 -217
- package/components/FormDialog.js.map +1 -1
- package/components/Loading.d.ts +4 -4
- package/components/Loading.js +35 -35
- package/components/MenuItemSelect.d.ts +17 -17
- package/components/MenuItemSelect.js +23 -23
- package/components/MenuItemSelect.js.map +1 -1
- package/components/OauthPanel.d.ts +7 -7
- package/components/OauthPanel.js +30 -30
- package/components/OauthSelect.d.ts +5 -5
- package/components/OauthSelect.js +25 -25
- package/components/PageInput.d.ts +6 -6
- package/components/PageInput.js +13 -13
- package/components/PageLink.d.ts +6 -6
- package/components/PageLink.js +31 -31
- package/components/ProgressDialog.d.ts +11 -11
- package/components/ProgressDialog.js +48 -48
- package/components/SimpleAlert.d.ts +15 -15
- package/components/SimpleAlert.js +47 -47
- package/components/Toast.d.ts +15 -15
- package/components/Toast.js +50 -50
- package/components/index.js +4 -4
- package/components/index.js.map +1 -1
- package/components.d.ts +5 -5
- package/components.js +172 -201
- package/components.js.map +1 -1
- package/date/constants.d.ts +3 -3
- package/date/constants.js +19 -19
- package/date/constants.js.map +1 -1
- package/date/index.d.ts +3 -3
- package/date/index.js +9 -9
- package/date/index.js.map +1 -1
- package/date/parseNlpDate.d.ts +5 -5
- package/date/parseNlpDate.js +226 -226
- package/date/parseNlpDate.js.map +1 -1
- package/date/parseRoamDateUid.d.ts +2 -2
- package/date/parseRoamDateUid.js +7 -7
- package/date/parseRoamDateUid.js.map +1 -1
- package/dom/addBlockCommand.d.ts +5 -5
- package/dom/addBlockCommand.js +53 -53
- package/dom/addBlockCommand.js.map +1 -1
- package/dom/addKeyboardTriggers.d.ts +11 -11
- package/dom/addKeyboardTriggers.js +38 -38
- package/dom/addKeyboardTriggers.js.map +1 -1
- package/dom/addOldRoamJSDependency.d.ts +2 -2
- package/dom/addOldRoamJSDependency.js +10 -10
- package/dom/addOldRoamJSDependency.js.map +1 -1
- package/dom/addRoamJSDependency.d.ts +2 -2
- package/dom/addRoamJSDependency.js +8 -8
- package/dom/addRoamJSDependency.js.map +1 -1
- package/dom/addScriptAsDependency.d.ts +6 -6
- package/dom/addScriptAsDependency.js +16 -16
- package/dom/addScriptAsDependency.js.map +1 -1
- package/dom/addStyle.d.ts +2 -2
- package/dom/addStyle.js +14 -14
- package/dom/addStyle.js.map +1 -1
- package/dom/constants.d.ts +1 -1
- package/dom/constants.js +4 -4
- package/dom/constants.js.map +1 -1
- package/dom/createBlockObserver.d.ts +7 -7
- package/dom/createBlockObserver.js +43 -43
- package/dom/createBlockObserver.js.map +1 -1
- package/dom/createButtonObserver.d.ts +6 -6
- package/dom/createButtonObserver.js +21 -21
- package/dom/createButtonObserver.js.map +1 -1
- package/dom/createDivObserver.d.ts +2 -2
- package/dom/createDivObserver.js +13 -13
- package/dom/createDivObserver.js.map +1 -1
- package/dom/createHTMLObserver.d.ts +8 -8
- package/dom/createHTMLObserver.js +24 -24
- package/dom/createHTMLObserver.js.map +1 -1
- package/dom/createHashtagObserver.d.ts +5 -5
- package/dom/createHashtagObserver.js +16 -16
- package/dom/createHashtagObserver.js.map +1 -1
- package/dom/createIconButton.d.ts +2 -2
- package/dom/createIconButton.js +12 -12
- package/dom/createIconButton.js.map +1 -1
- package/dom/createObserver.d.ts +2 -2
- package/dom/createObserver.js +9 -9
- package/dom/createObserver.js.map +1 -1
- package/dom/createOverlayObserver.d.ts +2 -2
- package/dom/createOverlayObserver.js +6 -6
- package/dom/createOverlayObserver.js.map +1 -1
- package/dom/createPageObserver.d.ts +2 -2
- package/dom/createPageObserver.js +34 -34
- package/dom/createPageObserver.js.map +1 -1
- package/dom/createPageTitleObserver.d.ts +6 -6
- package/dom/createPageTitleObserver.js +31 -31
- package/dom/createPageTitleObserver.js.map +1 -1
- package/dom/elToTitle.d.ts +2 -2
- package/dom/elToTitle.js +22 -22
- package/dom/elToTitle.js.map +1 -1
- package/dom/genericError.d.ts +3 -3
- package/dom/genericError.js +11 -11
- package/dom/genericError.js.map +1 -1
- package/dom/getActiveUids.d.ts +3 -3
- package/dom/getActiveUids.js +6 -6
- package/dom/getActiveUids.js.map +1 -1
- package/dom/getBlockUidFromTarget.d.ts +2 -2
- package/dom/getBlockUidFromTarget.js +33 -33
- package/dom/getBlockUidFromTarget.js.map +1 -1
- package/dom/getCurrentPageUid.d.ts +2 -2
- package/dom/getCurrentPageUid.js +8 -8
- package/dom/getCurrentPageUid.js.map +1 -1
- package/dom/getDomRefs.d.ts +2 -2
- package/dom/getDomRefs.js +12 -12
- package/dom/getDomRefs.js.map +1 -1
- package/dom/getDropUidOffset.d.ts +5 -5
- package/dom/getDropUidOffset.js +27 -27
- package/dom/getDropUidOffset.js.map +1 -1
- package/dom/getMutatedNodes.d.ts +7 -7
- package/dom/getMutatedNodes.js +11 -11
- package/dom/getMutatedNodes.js.map +1 -1
- package/dom/getPageTitleByHtmlElement.d.ts +2 -2
- package/dom/getPageTitleByHtmlElement.js +12 -12
- package/dom/getPageTitleByHtmlElement.js.map +1 -1
- package/dom/getPageTitleValueByHtmlElement.d.ts +2 -2
- package/dom/getPageTitleValueByHtmlElement.js +9 -9
- package/dom/getPageTitleValueByHtmlElement.js.map +1 -1
- package/dom/getReferenceBlockUid.d.ts +2 -2
- package/dom/getReferenceBlockUid.js +18 -18
- package/dom/getReferenceBlockUid.js.map +1 -1
- package/dom/getRoamUrl.d.ts +2 -2
- package/dom/getRoamUrl.js +4 -4
- package/dom/getRoamUrl.js.map +1 -1
- package/dom/getRoamUrlByPage.d.ts +2 -2
- package/dom/getRoamUrlByPage.js +10 -10
- package/dom/getRoamUrlByPage.js.map +1 -1
- package/dom/getUids.d.ts +3 -3
- package/dom/getUids.js +8 -8
- package/dom/getUids.js.map +1 -1
- package/dom/getUidsFromButton.d.ts +3 -3
- package/dom/getUidsFromButton.js +8 -8
- package/dom/getUidsFromButton.js.map +1 -1
- package/dom/getUidsFromId.d.ts +5 -5
- package/dom/getUidsFromId.js +15 -15
- package/dom/getUidsFromId.js.map +1 -1
- package/dom/index.d.ts +30 -30
- package/dom/index.js +63 -63
- package/dom/index.js.map +1 -1
- package/dom/parseRoamBlocksToHtml.d.ts +11 -11
- package/dom/parseRoamBlocksToHtml.js +79 -79
- package/dom/parseRoamBlocksToHtml.js.map +1 -1
- package/dom/resolveRefs.d.ts +2 -2
- package/dom/resolveRefs.js +24 -24
- package/dom/resolveRefs.js.map +1 -1
- package/events/index.d.ts +1 -1
- package/events/index.js +8 -8
- package/events/index.js.map +1 -1
- package/events/watchOnce.d.ts +3 -3
- package/events/watchOnce.js +12 -12
- package/events/watchOnce.js.map +1 -1
- package/hooks/index.d.ts +2 -2
- package/hooks/index.js +10 -10
- package/hooks/index.js.map +1 -1
- package/hooks/useArrowKeyDown.d.ts +10 -10
- package/hooks/useArrowKeyDown.js +54 -54
- package/hooks/useArrowKeyDown.js.map +1 -1
- package/hooks/useSubTree.d.ts +3 -3
- package/hooks/useSubTree.js +11 -11
- package/hooks/useSubTree.js.map +1 -1
- package/marked/index.d.ts +25 -25
- package/marked/index.js +567 -567
- package/marked/index.js.map +1 -1
- package/package.json +120 -125
- package/queries/compileDatalog.d.ts +3 -3
- package/queries/compileDatalog.js +63 -63
- package/queries/compileDatalog.js.map +1 -1
- package/queries/getAllBlockUids.d.ts +2 -2
- package/queries/getAllBlockUids.js +6 -6
- package/queries/getAllBlockUids.js.map +1 -1
- package/queries/getAllBlockUidsAndTexts.d.ts +5 -5
- package/queries/getAllBlockUidsAndTexts.js +6 -6
- package/queries/getAllBlockUidsAndTexts.js.map +1 -1
- package/queries/getAllPageNames.d.ts +2 -2
- package/queries/getAllPageNames.js +6 -6
- package/queries/getAllPageNames.js.map +1 -1
- package/queries/getAttributeValueByBlockAndName.d.ts +5 -5
- package/queries/getAttributeValueByBlockAndName.js +11 -11
- package/queries/getAttributeValueByBlockAndName.js.map +1 -1
- package/queries/getBasicTreeByParentUid.d.ts +3 -3
- package/queries/getBasicTreeByParentUid.js +13 -13
- package/queries/getBasicTreeByParentUid.js.map +1 -1
- package/queries/getBlockUidAndTextIncludingText.d.ts +5 -5
- package/queries/getBlockUidAndTextIncludingText.js +7 -7
- package/queries/getBlockUidAndTextIncludingText.js.map +1 -1
- package/queries/getBlockUidByTextOnPage.d.ts +5 -5
- package/queries/getBlockUidByTextOnPage.js +7 -7
- package/queries/getBlockUidByTextOnPage.js.map +1 -1
- package/queries/getBlockUidsAndTextsReferencingPage.d.ts +5 -5
- package/queries/getBlockUidsAndTextsReferencingPage.js +9 -9
- package/queries/getBlockUidsAndTextsReferencingPage.js.map +1 -1
- package/queries/getBlockUidsByPageTitle.d.ts +2 -2
- package/queries/getBlockUidsByPageTitle.js +8 -8
- package/queries/getBlockUidsByPageTitle.js.map +1 -1
- package/queries/getBlockUidsReferencingBlock.d.ts +2 -2
- package/queries/getBlockUidsReferencingBlock.js +4 -4
- package/queries/getBlockUidsReferencingBlock.js.map +1 -1
- package/queries/getBlockUidsReferencingPage.d.ts +2 -2
- package/queries/getBlockUidsReferencingPage.js +6 -6
- package/queries/getBlockUidsReferencingPage.js.map +1 -1
- package/queries/getBlockUidsWithParentUid.d.ts +2 -2
- package/queries/getBlockUidsWithParentUid.js +6 -6
- package/queries/getBlockUidsWithParentUid.js.map +1 -1
- package/queries/getChildrenLengthByPageUid.d.ts +2 -2
- package/queries/getChildrenLengthByPageUid.js +8 -8
- package/queries/getChildrenLengthByPageUid.js.map +1 -1
- package/queries/getChildrenLengthByParentUid.d.ts +2 -2
- package/queries/getChildrenLengthByParentUid.js +7 -7
- package/queries/getChildrenLengthByParentUid.js.map +1 -1
- package/queries/getCreateTimeByBlockUid.d.ts +2 -2
- package/queries/getCreateTimeByBlockUid.js +7 -7
- package/queries/getCreateTimeByBlockUid.js.map +1 -1
- package/queries/getCurrentUser.d.ts +2 -2
- package/queries/getCurrentUser.js +11 -11
- package/queries/getCurrentUser.js.map +1 -1
- package/queries/getCurrentUserDisplayName.d.ts +2 -2
- package/queries/getCurrentUserDisplayName.js +10 -10
- package/queries/getCurrentUserDisplayName.js.map +1 -1
- package/queries/getCurrentUserEmail.d.ts +2 -2
- package/queries/getCurrentUserEmail.js +13 -13
- package/queries/getCurrentUserEmail.js.map +1 -1
- package/queries/getCurrentUserUid.d.ts +2 -2
- package/queries/getCurrentUserUid.js +13 -13
- package/queries/getCurrentUserUid.js.map +1 -1
- package/queries/getDisplayNameByEmail.d.ts +2 -2
- package/queries/getDisplayNameByEmail.js +7 -7
- package/queries/getDisplayNameByEmail.js.map +1 -1
- package/queries/getDisplayNameByUid.d.ts +2 -2
- package/queries/getDisplayNameByUid.js +7 -7
- package/queries/getDisplayNameByUid.js.map +1 -1
- package/queries/getEditTimeByBlockUid.d.ts +2 -2
- package/queries/getEditTimeByBlockUid.js +7 -7
- package/queries/getEditTimeByBlockUid.js.map +1 -1
- package/queries/getEditedUserEmailByBlockUid.d.ts +2 -2
- package/queries/getEditedUserEmailByBlockUid.js +7 -7
- package/queries/getEditedUserEmailByBlockUid.js.map +1 -1
- package/queries/getFirstChildTextByBlockUid.d.ts +2 -2
- package/queries/getFirstChildTextByBlockUid.js +7 -7
- package/queries/getFirstChildTextByBlockUid.js.map +1 -1
- package/queries/getFirstChildUidByBlockUid.d.ts +2 -2
- package/queries/getFirstChildUidByBlockUid.js +6 -6
- package/queries/getFirstChildUidByBlockUid.js.map +1 -1
- package/queries/getFullTreeByParentUid.d.ts +3 -3
- package/queries/getFullTreeByParentUid.js +51 -51
- package/queries/getFullTreeByParentUid.js.map +1 -1
- package/queries/getLinkedPageTitlesUnderUid.d.ts +2 -2
- package/queries/getLinkedPageTitlesUnderUid.js +6 -6
- package/queries/getLinkedPageTitlesUnderUid.js.map +1 -1
- package/queries/getNthChildUidByBlockUid.d.ts +5 -5
- package/queries/getNthChildUidByBlockUid.js +7 -7
- package/queries/getNthChildUidByBlockUid.js.map +1 -1
- package/queries/getOrderByBlockUid.d.ts +2 -2
- package/queries/getOrderByBlockUid.js +7 -7
- package/queries/getOrderByBlockUid.js.map +1 -1
- package/queries/getPageTitleByBlockUid.d.ts +2 -2
- package/queries/getPageTitleByBlockUid.js +7 -7
- package/queries/getPageTitleByBlockUid.js.map +1 -1
- package/queries/getPageTitleByPageUid.d.ts +2 -2
- package/queries/getPageTitleByPageUid.js +12 -12
- package/queries/getPageTitleByPageUid.js.map +1 -1
- package/queries/getPageTitleReferencesByPageTitle.d.ts +2 -2
- package/queries/getPageTitleReferencesByPageTitle.js +6 -6
- package/queries/getPageTitleReferencesByPageTitle.js.map +1 -1
- package/queries/getPageTitlesAndBlockUidsReferencingPage.d.ts +5 -5
- package/queries/getPageTitlesAndBlockUidsReferencingPage.js +9 -9
- package/queries/getPageTitlesAndBlockUidsReferencingPage.js.map +1 -1
- package/queries/getPageTitlesAndUidsDirectlyReferencingPage.d.ts +5 -5
- package/queries/getPageTitlesAndUidsDirectlyReferencingPage.js +9 -9
- package/queries/getPageTitlesAndUidsDirectlyReferencingPage.js.map +1 -1
- package/queries/getPageTitlesReferencingBlockUid.d.ts +2 -2
- package/queries/getPageTitlesReferencingBlockUid.js +4 -4
- package/queries/getPageTitlesReferencingBlockUid.js.map +1 -1
- package/queries/getPageTitlesStartingWithPrefix.d.ts +2 -2
- package/queries/getPageTitlesStartingWithPrefix.js +6 -6
- package/queries/getPageTitlesStartingWithPrefix.js.map +1 -1
- package/queries/getPageUidByBlockUid.d.ts +2 -2
- package/queries/getPageUidByBlockUid.js +7 -7
- package/queries/getPageUidByBlockUid.js.map +1 -1
- package/queries/getPageUidByPageTitle.d.ts +2 -2
- package/queries/getPageUidByPageTitle.js +9 -9
- package/queries/getPageUidByPageTitle.js.map +1 -1
- package/queries/getPageViewType.d.ts +3 -3
- package/queries/getPageViewType.js +9 -9
- package/queries/getPageViewType.js.map +1 -1
- package/queries/getParentTextByBlockUid.d.ts +2 -2
- package/queries/getParentTextByBlockUid.js +7 -7
- package/queries/getParentTextByBlockUid.js.map +1 -1
- package/queries/getParentTextByBlockUidAndTag.d.ts +5 -5
- package/queries/getParentTextByBlockUidAndTag.js +7 -7
- package/queries/getParentTextByBlockUidAndTag.js.map +1 -1
- package/queries/getParentUidByBlockUid.d.ts +2 -2
- package/queries/getParentUidByBlockUid.js +7 -7
- package/queries/getParentUidByBlockUid.js.map +1 -1
- package/queries/getParentUidsOfBlockUid.d.ts +2 -2
- package/queries/getParentUidsOfBlockUid.js +4 -4
- package/queries/getParentUidsOfBlockUid.js.map +1 -1
- package/queries/getSettingsByEmail.d.ts +3 -3
- package/queries/getSettingsByEmail.js +7 -7
- package/queries/getSettingsByEmail.js.map +1 -1
- package/queries/getShallowTreeByParentUid.d.ts +5 -5
- package/queries/getShallowTreeByParentUid.js +9 -9
- package/queries/getShallowTreeByParentUid.js.map +1 -1
- package/queries/getTextByBlockUid.d.ts +2 -2
- package/queries/getTextByBlockUid.js +9 -9
- package/queries/getTextByBlockUid.js.map +1 -1
- package/queries/index.js +4 -4
- package/queries/index.js.map +1 -1
- package/queries/isLiveBlock.d.ts +2 -2
- package/queries/isLiveBlock.js +4 -4
- package/queries/isLiveBlock.js.map +1 -1
- package/queries/isTagOnPage.d.ts +5 -5
- package/queries/isTagOnPage.js +9 -9
- package/queries/isTagOnPage.js.map +1 -1
- package/queries/normalizePageTitle.d.ts +2 -2
- package/queries/normalizePageTitle.js +4 -4
- package/queries/normalizePageTitle.js.map +1 -1
- package/scripts/index.d.ts +1 -1
- package/scripts/index.js +26 -26
- package/scripts/index.js.map +1 -1
- package/scripts/publishToRoamDepot.d.ts +7 -7
- package/scripts/publishToRoamDepot.js +113 -113
- package/scripts/publishToRoamDepot.js.map +1 -1
- package/testing/mockRoamEnvironment.d.ts +2 -2
- package/testing/mockRoamEnvironment.js +1253 -1253
- package/testing/mockRoamEnvironment.js.map +1 -1
- package/types/index.d.ts +393 -250
- package/types/index.js +4 -4
- package/types/index.js.map +1 -1
- package/types/native.d.ts +405 -402
- package/types/native.js +4 -4
- package/types/native.js.map +1 -1
- package/types/query-builder.d.ts +10 -10
- package/types/query-builder.js +2 -2
- package/types/query-builder.js.map +1 -1
- package/types/smartblocks.d.ts +35 -35
- package/types/smartblocks.js +2 -2
- package/types/smartblocks.js.map +1 -1
- package/util/addInputSetting.d.ts +7 -7
- package/util/addInputSetting.js +25 -25
- package/util/addInputSetting.js.map +1 -1
- package/util/apiDelete.d.ts +2 -2
- package/util/apiDelete.js +6 -6
- package/util/apiDelete.js.map +1 -1
- package/util/apiGet.d.ts +2 -2
- package/util/apiGet.js +6 -6
- package/util/apiGet.js.map +1 -1
- package/util/apiPost.d.ts +2 -2
- package/util/apiPost.js +6 -6
- package/util/apiPost.js.map +1 -1
- package/util/apiPut.d.ts +2 -2
- package/util/apiPut.js +6 -6
- package/util/apiPut.js.map +1 -1
- package/util/createOverlayRender.d.ts +4 -4
- package/util/createOverlayRender.js +6 -6
- package/util/createOverlayRender.js.map +1 -1
- package/util/createTagRegex.d.ts +2 -2
- package/util/createTagRegex.js +7 -7
- package/util/createTagRegex.js.map +1 -1
- package/util/dispatchToRegistry.d.ts +3 -3
- package/util/dispatchToRegistry.js +7 -7
- package/util/dispatchToRegistry.js.map +1 -1
- package/util/env.d.ts +4 -4
- package/util/env.js +47 -47
- package/util/env.js.map +1 -1
- package/util/extensionApiContext.d.ts +29 -29
- package/util/extensionApiContext.js +17 -17
- package/util/extensionApiContext.js.map +1 -1
- package/util/extensionDeprecatedWarning.d.ts +5 -5
- package/util/extensionDeprecatedWarning.js +39 -39
- package/util/extensionDeprecatedWarning.js.map +1 -1
- package/util/extractRef.d.ts +2 -2
- package/util/extractRef.js +8 -8
- package/util/extractRef.js.map +1 -1
- package/util/extractTag.d.ts +2 -2
- package/util/extractTag.js +15 -15
- package/util/extractTag.js.map +1 -1
- package/util/focusMainWindowBlock.d.ts +2 -2
- package/util/focusMainWindowBlock.js +12 -12
- package/util/focusMainWindowBlock.js.map +1 -1
- package/util/getAuthorizationHeader.d.ts +2 -2
- package/util/getAuthorizationHeader.js +12 -12
- package/util/getAuthorizationHeader.js.map +1 -1
- package/util/getLocalStorageKey.d.ts +2 -2
- package/util/getLocalStorageKey.js +4 -4
- package/util/getLocalStorageKey.js.map +1 -1
- package/util/getOauth.d.ts +2 -2
- package/util/getOauth.js +52 -52
- package/util/getOauth.js.map +1 -1
- package/util/getOauthAccounts.d.ts +2 -2
- package/util/getOauthAccounts.js +22 -22
- package/util/getOauthAccounts.js.map +1 -1
- package/util/getRenderRoot.d.ts +2 -2
- package/util/getRenderRoot.js +18 -18
- package/util/getRenderRoot.js.map +1 -1
- package/util/getSettingIntFromTree.d.ts +7 -7
- package/util/getSettingIntFromTree.js +11 -11
- package/util/getSettingIntFromTree.js.map +1 -1
- package/util/getSettingValueFromTree.d.ts +8 -8
- package/util/getSettingValueFromTree.js +14 -14
- package/util/getSettingValueFromTree.js.map +1 -1
- package/util/getSettingValuesFromTree.d.ts +7 -7
- package/util/getSettingValuesFromTree.js +12 -12
- package/util/getSettingValuesFromTree.js.map +1 -1
- package/util/getSubTree.d.ts +8 -8
- package/util/getSubTree.js +19 -19
- package/util/getSubTree.js.map +1 -1
- package/util/getToken.d.ts +2 -2
- package/util/getToken.js +10 -10
- package/util/getToken.js.map +1 -1
- package/util/getTokenFromTree.d.ts +3 -3
- package/util/getTokenFromTree.js +4 -4
- package/util/getTokenFromTree.js.map +1 -1
- package/util/getWorkerClient.d.ts +12 -12
- package/util/getWorkerClient.js +41 -41
- package/util/getWorkerClient.js.map +1 -1
- package/util/handleBodyFetch.d.ts +3 -3
- package/util/handleBodyFetch.js +21 -21
- package/util/handleBodyFetch.js.map +1 -1
- package/util/handleFetch.d.ts +13 -13
- package/util/handleFetch.js +40 -40
- package/util/handleFetch.js.map +1 -1
- package/util/handleUrlFetch.d.ts +3 -3
- package/util/handleUrlFetch.js +19 -19
- package/util/handleUrlFetch.js.map +1 -1
- package/util/idToTitle.d.ts +2 -2
- package/util/idToTitle.js +8 -8
- package/util/idToTitle.js.map +1 -1
- package/util/index.d.ts +24 -24
- package/util/index.js +54 -54
- package/util/index.js.map +1 -1
- package/util/isControl.d.ts +2 -2
- package/util/isControl.js +4 -4
- package/util/isControl.js.map +1 -1
- package/util/localStorageGet.d.ts +2 -2
- package/util/localStorageGet.js +8 -8
- package/util/localStorageGet.js.map +1 -1
- package/util/localStorageRemove.d.ts +2 -2
- package/util/localStorageRemove.js +6 -6
- package/util/localStorageRemove.js.map +1 -1
- package/util/localStorageSet.d.ts +2 -2
- package/util/localStorageSet.js +8 -8
- package/util/localStorageSet.js.map +1 -1
- package/util/registerExperimentalMode.d.ts +6 -6
- package/util/registerExperimentalMode.js +65 -65
- package/util/registerExperimentalMode.js.map +1 -1
- package/util/registerSmartBlocksCommand.d.ts +3 -3
- package/util/registerSmartBlocksCommand.js +23 -23
- package/util/registerSmartBlocksCommand.js.map +1 -1
- package/util/removeFromRegistry.d.ts +3 -3
- package/util/removeFromRegistry.js +7 -7
- package/util/removeFromRegistry.js.map +1 -1
- package/util/renderOverlay.d.ts +12 -12
- package/util/renderOverlay.js +48 -48
- package/util/renderOverlay.js.map +1 -1
- package/util/renderWithUnmount.d.ts +4 -4
- package/util/renderWithUnmount.js +44 -44
- package/util/renderWithUnmount.js.map +1 -1
- package/util/runExtension.d.ts +11 -11
- package/util/runExtension.js +174 -174
- package/util/runExtension.js.map +1 -1
- package/util/setInputSetting.d.ts +7 -7
- package/util/setInputSetting.js +37 -37
- package/util/setInputSetting.js.map +1 -1
- package/util/setInputSettings.d.ts +7 -7
- package/util/setInputSettings.js +28 -28
- package/util/setInputSettings.js.map +1 -1
- package/util/stripUid.d.ts +3 -3
- package/util/stripUid.js +10 -10
- package/util/stripUid.js.map +1 -1
- package/util/toConfigPageName.d.ts +2 -2
- package/util/toConfigPageName.js +4 -4
- package/util/toConfigPageName.js.map +1 -1
- package/util/toFlexRegex.d.ts +2 -2
- package/util/toFlexRegex.js +4 -4
- package/util/toFlexRegex.js.map +1 -1
- package/writes/clearBlockById.d.ts +2 -2
- package/writes/clearBlockById.js +17 -17
- package/writes/clearBlockById.js.map +1 -1
- package/writes/clearBlockByUid.d.ts +2 -2
- package/writes/clearBlockByUid.js +16 -16
- package/writes/clearBlockByUid.js.map +1 -1
- package/writes/createBlock.d.ts +8 -8
- package/writes/createBlock.js +28 -28
- package/writes/createBlock.js.map +1 -1
- package/writes/createPage.d.ts +7 -7
- package/writes/createPage.js +20 -20
- package/writes/createPage.js.map +1 -1
- package/writes/deleteBlock.d.ts +2 -2
- package/writes/deleteBlock.js +10 -10
- package/writes/deleteBlock.js.map +1 -1
- package/writes/index.d.ts +8 -8
- package/writes/index.js +22 -22
- package/writes/index.js.map +1 -1
- package/writes/openBlockInSidebar.d.ts +2 -2
- package/writes/openBlockInSidebar.js +13 -13
- package/writes/openBlockInSidebar.js.map +1 -1
- package/writes/submitActions.d.ts +8 -8
- package/writes/submitActions.js +36 -36
- package/writes/submitActions.js.map +1 -1
- package/writes/updateActiveBlock.d.ts +2 -2
- package/writes/updateActiveBlock.js +17 -17
- package/writes/updateActiveBlock.js.map +1 -1
- package/writes/updateBlock.d.ts +5 -5
- package/writes/updateBlock.js +23 -23
- 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\";\
|
|
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\";\
|
|
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\";\
|
|
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\";\
|
|
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[] =>\
|
|
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 =>\
|
|
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 => {\
|
|
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\";\
|
|
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 =>\
|
|
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 = ({\
|
|
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\";\
|
|
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\";\
|
|
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\";\
|
|
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\";\
|
|
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 =>\
|
|
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
|
package/queries/index.js.map
CHANGED
|
@@ -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(\
|
|
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"]}
|
package/queries/isLiveBlock.d.ts
CHANGED
|
@@ -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;
|
package/queries/isLiveBlock.js
CHANGED
|
@@ -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) =>\
|
|
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"]}
|
package/queries/isTagOnPage.d.ts
CHANGED
|
@@ -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;
|
package/queries/isTagOnPage.js
CHANGED
|
@@ -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
|