roamjs-components 0.85.3 → 0.85.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +29 -29
- package/components/AutocompleteInput.d.ts +28 -28
- package/components/AutocompleteInput.js +120 -120
- package/components/BlockErrorBoundary.d.ts +15 -15
- package/components/BlockErrorBoundary.js +27 -27
- package/components/BlockInput.d.ts +13 -13
- package/components/BlockInput.js +55 -55
- package/components/ComponentContainer.d.ts +10 -10
- package/components/ComponentContainer.js +37 -37
- 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/BlocksPanel.d.ts +3 -3
- package/components/ConfigPanels/BlocksPanel.js +58 -58
- 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/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/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 +217 -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/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 +170 -170
- 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 +116 -116
- 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 +389 -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,5 +1,5 @@
|
|
|
1
|
-
declare const getAllBlockUidsAndTexts: () => {
|
|
2
|
-
uid: string;
|
|
3
|
-
text: string;
|
|
4
|
-
}[];
|
|
5
|
-
export default getAllBlockUidsAndTexts;
|
|
1
|
+
declare const getAllBlockUidsAndTexts: () => {
|
|
2
|
+
uid: string;
|
|
3
|
+
text: string;
|
|
4
|
+
}[];
|
|
5
|
+
export default getAllBlockUidsAndTexts;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const getAllBlockUidsAndTexts = () => window.roamAlphaAPI
|
|
4
|
-
.q(`[:find ?u ?s :where [?e :block/uid ?u] [?e :block/string ?s]]`)
|
|
5
|
-
.map((f) => ({ uid: f[0], text: f[1] }));
|
|
6
|
-
exports.default = getAllBlockUidsAndTexts;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const getAllBlockUidsAndTexts = () => window.roamAlphaAPI
|
|
4
|
+
.q(`[:find ?u ?s :where [?e :block/uid ?u] [?e :block/string ?s]]`)
|
|
5
|
+
.map((f) => ({ uid: f[0], text: f[1] }));
|
|
6
|
+
exports.default = getAllBlockUidsAndTexts;
|
|
7
7
|
//# sourceMappingURL=getAllBlockUidsAndTexts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAllBlockUidsAndTexts.js","sourceRoot":"","sources":["../../src/queries/getAllBlockUidsAndTexts.ts"],"names":[],"mappings":";;AAAA,MAAM,uBAAuB,GAAG,GAAoC,EAAE,CACpE,MAAM,CAAC,YAAY;KAChB,CAAC,CAAC,+DAA+D,CAAC;KAClE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,CAAW,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAW,EAAE,CAAC,CAAC,CAAC;AAEjE,kBAAe,uBAAuB,CAAC","sourcesContent":["const getAllBlockUidsAndTexts = (): { uid: string; text: string }[] =>\
|
|
1
|
+
{"version":3,"file":"getAllBlockUidsAndTexts.js","sourceRoot":"","sources":["../../src/queries/getAllBlockUidsAndTexts.ts"],"names":[],"mappings":";;AAAA,MAAM,uBAAuB,GAAG,GAAoC,EAAE,CACpE,MAAM,CAAC,YAAY;KAChB,CAAC,CAAC,+DAA+D,CAAC;KAClE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,CAAW,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAW,EAAE,CAAC,CAAC,CAAC;AAEjE,kBAAe,uBAAuB,CAAC","sourcesContent":["const getAllBlockUidsAndTexts = (): { uid: string; text: string }[] =>\n window.roamAlphaAPI\n .q(`[:find ?u ?s :where [?e :block/uid ?u] [?e :block/string ?s]]`)\n .map((f) => ({ uid: f[0] as string, text: f[1] as string }));\n\nexport default getAllBlockUidsAndTexts;\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const getAllPageNames: () => string[];
|
|
2
|
-
export default getAllPageNames;
|
|
1
|
+
declare const getAllPageNames: () => string[];
|
|
2
|
+
export default getAllPageNames;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const getAllPageNames = () => window.roamAlphaAPI
|
|
4
|
-
.q("[:find ?s :where [?e :node/title ?s]]")
|
|
5
|
-
.map((b) => b[0]);
|
|
6
|
-
exports.default = getAllPageNames;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const getAllPageNames = () => window.roamAlphaAPI
|
|
4
|
+
.q("[:find ?s :where [?e :node/title ?s]]")
|
|
5
|
+
.map((b) => b[0]);
|
|
6
|
+
exports.default = getAllPageNames;
|
|
7
7
|
//# sourceMappingURL=getAllPageNames.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAllPageNames.js","sourceRoot":"","sources":["../../src/queries/getAllPageNames.ts"],"names":[],"mappings":";;AAAA,MAAM,eAAe,GAAG,GAAa,EAAE,CACrC,MAAM,CAAC,YAAY;KAChB,CAAC,CAAC,uCAAuC,CAAC;KAC1C,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAW,CAAC,CAAC;AAEhC,kBAAe,eAAe,CAAC","sourcesContent":["const getAllPageNames = (): string[] =>\
|
|
1
|
+
{"version":3,"file":"getAllPageNames.js","sourceRoot":"","sources":["../../src/queries/getAllPageNames.ts"],"names":[],"mappings":";;AAAA,MAAM,eAAe,GAAG,GAAa,EAAE,CACrC,MAAM,CAAC,YAAY;KAChB,CAAC,CAAC,uCAAuC,CAAC;KAC1C,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAW,CAAC,CAAC;AAEhC,kBAAe,eAAe,CAAC","sourcesContent":["const getAllPageNames = (): string[] =>\n window.roamAlphaAPI\n .q(\"[:find ?s :where [?e :node/title ?s]]\")\n .map((b) => b[0] as string);\n\nexport default getAllPageNames;\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare const getAttributeValueByBlockAndName: ({ name, uid, }: {
|
|
2
|
-
name: string;
|
|
3
|
-
uid: string;
|
|
4
|
-
}) => string;
|
|
5
|
-
export default getAttributeValueByBlockAndName;
|
|
1
|
+
declare const getAttributeValueByBlockAndName: ({ name, uid, }: {
|
|
2
|
+
name: string;
|
|
3
|
+
uid: string;
|
|
4
|
+
}) => string;
|
|
5
|
+
export default getAttributeValueByBlockAndName;
|
|
@@ -1,12 +1,12 @@
|
|
|
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 getAttributeValueByBlockAndName = ({ name, uid, }) => {
|
|
6
|
-
var _a, _b, _c;
|
|
7
|
-
return (((_c = (_b = (_a = window.roamAlphaAPI.data.fast.q(`[:find (pull ?b [:block/string]) :where [?a :node/title "${(0, normalizePageTitle_1.default)(name)}"] [?p :block/uid "${uid}"] [?b :block/refs ?a] [?b :block/parents ?p]]`)) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c[":block/string"]) || "")
|
|
8
|
-
.slice(name.length + 2)
|
|
9
|
-
.trim();
|
|
10
|
-
};
|
|
11
|
-
exports.default = getAttributeValueByBlockAndName;
|
|
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 getAttributeValueByBlockAndName = ({ name, uid, }) => {
|
|
6
|
+
var _a, _b, _c;
|
|
7
|
+
return (((_c = (_b = (_a = window.roamAlphaAPI.data.fast.q(`[:find (pull ?b [:block/string]) :where [?a :node/title "${(0, normalizePageTitle_1.default)(name)}"] [?p :block/uid "${uid}"] [?b :block/refs ?a] [?b :block/parents ?p]]`)) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c[":block/string"]) || "")
|
|
8
|
+
.slice(name.length + 2)
|
|
9
|
+
.trim();
|
|
10
|
+
};
|
|
11
|
+
exports.default = getAttributeValueByBlockAndName;
|
|
12
12
|
//# sourceMappingURL=getAttributeValueByBlockAndName.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAttributeValueByBlockAndName.js","sourceRoot":"","sources":["../../src/queries/getAttributeValueByBlockAndName.ts"],"names":[],"mappings":";;;AACA,sFAAsD;AAEtD,MAAM,+BAA+B,GAAG,CAAC,EACvC,IAAI,EACJ,GAAG,GAIJ,EAAE,EAAE;;IACH,OAAA,CACE,CAAA,MACE,MAAA,MAAA,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAC7B,4DAA4D,IAAA,4BAAkB,EAC5E,IAAI,CACL,sBAAsB,GAAG,gDAAgD,CAC3E,0CAAG,CAAC,CAAC,0CAAG,CAAC,CACX,0CAAG,eAAe,CAAC,KAAI,EAAE,CAC3B;SACE,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;SACtB,IAAI,EAAE,CAAA;CAAA,CAAC;AAEZ,kBAAe,+BAA+B,CAAC","sourcesContent":["import { PullBlock } from \"../types\";\
|
|
1
|
+
{"version":3,"file":"getAttributeValueByBlockAndName.js","sourceRoot":"","sources":["../../src/queries/getAttributeValueByBlockAndName.ts"],"names":[],"mappings":";;;AACA,sFAAsD;AAEtD,MAAM,+BAA+B,GAAG,CAAC,EACvC,IAAI,EACJ,GAAG,GAIJ,EAAE,EAAE;;IACH,OAAA,CACE,CAAA,MACE,MAAA,MAAA,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAC7B,4DAA4D,IAAA,4BAAkB,EAC5E,IAAI,CACL,sBAAsB,GAAG,gDAAgD,CAC3E,0CAAG,CAAC,CAAC,0CAAG,CAAC,CACX,0CAAG,eAAe,CAAC,KAAI,EAAE,CAC3B;SACE,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;SACtB,IAAI,EAAE,CAAA;CAAA,CAAC;AAEZ,kBAAe,+BAA+B,CAAC","sourcesContent":["import { PullBlock } from \"../types\";\nimport normalizePageTitle from \"./normalizePageTitle\";\n\nconst getAttributeValueByBlockAndName = ({\n name,\n uid,\n}: {\n name: string;\n uid: string;\n}) =>\n (\n (\n window.roamAlphaAPI.data.fast.q(\n `[:find (pull ?b [:block/string]) :where [?a :node/title \"${normalizePageTitle(\n name\n )}\"] [?p :block/uid \"${uid}\"] [?b :block/refs ?a] [?b :block/parents ?p]]`\n )?.[0]?.[0] as PullBlock\n )?.[\":block/string\"] || \"\"\n )\n .slice(name.length + 2)\n .trim();\n\nexport default getAttributeValueByBlockAndName;\n"]}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { RoamBasicNode } from "../types";
|
|
2
|
-
declare const getBasicTreeByParentUid: (uid: string) => RoamBasicNode[];
|
|
3
|
-
export default getBasicTreeByParentUid;
|
|
1
|
+
import { RoamBasicNode } from "../types";
|
|
2
|
+
declare const getBasicTreeByParentUid: (uid: string) => RoamBasicNode[];
|
|
3
|
+
export default getBasicTreeByParentUid;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const sortBasicNodes = (c) => c
|
|
4
|
-
.sort((a, b) => (a[":block/order"] || 0) - (b[":block/order"] || 0))
|
|
5
|
-
.map((node) => ({
|
|
6
|
-
children: sortBasicNodes(node[":block/children"] || []),
|
|
7
|
-
uid: node[":block/uid"] || "",
|
|
8
|
-
text: node[":block/string"] || "",
|
|
9
|
-
}));
|
|
10
|
-
const getBasicTreeByParentUid = (uid) => sortBasicNodes(window.roamAlphaAPI.data.fast
|
|
11
|
-
.q(`[:find (pull ?c [:block/string :block/uid :block/order {:block/children ...}]) :where [?b :block/uid "${uid}"] [?b :block/children ?c]]`)
|
|
12
|
-
.map((a) => a[0]));
|
|
13
|
-
exports.default = getBasicTreeByParentUid;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const sortBasicNodes = (c) => c
|
|
4
|
+
.sort((a, b) => (a[":block/order"] || 0) - (b[":block/order"] || 0))
|
|
5
|
+
.map((node) => ({
|
|
6
|
+
children: sortBasicNodes(node[":block/children"] || []),
|
|
7
|
+
uid: node[":block/uid"] || "",
|
|
8
|
+
text: node[":block/string"] || "",
|
|
9
|
+
}));
|
|
10
|
+
const getBasicTreeByParentUid = (uid) => sortBasicNodes(window.roamAlphaAPI.data.fast
|
|
11
|
+
.q(`[:find (pull ?c [:block/string :block/uid :block/order {:block/children ...}]) :where [?b :block/uid "${uid}"] [?b :block/children ?c]]`)
|
|
12
|
+
.map((a) => a[0]));
|
|
13
|
+
exports.default = getBasicTreeByParentUid;
|
|
14
14
|
//# sourceMappingURL=getBasicTreeByParentUid.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getBasicTreeByParentUid.js","sourceRoot":"","sources":["../../src/queries/getBasicTreeByParentUid.ts"],"names":[],"mappings":";;AAEA,MAAM,cAAc,GAAG,CAAC,CAAc,EAAmB,EAAE,CACzD,CAAC;KACE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC;KACnE,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IACd,QAAQ,EAAE,cAAc,CAAC,IAAI,CAAC,iBAAiB,CAAC,IAAI,EAAE,CAAC;IACvD,GAAG,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE;IAC7B,IAAI,EAAE,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE;CAClC,CAAC,CAAC,CAAC;AAER,MAAM,uBAAuB,GAAG,CAAC,GAAW,EAAmB,EAAE,CAC/D,cAAc,CACZ,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI;KAC1B,CAAC,CACA,yGAAyG,GAAG,6BAA6B,CAC1I;KACA,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAc,CAAC,CACjC,CAAC;AAEJ,kBAAe,uBAAuB,CAAC","sourcesContent":["import { PullBlock, RoamBasicNode } from \"../types\";\
|
|
1
|
+
{"version":3,"file":"getBasicTreeByParentUid.js","sourceRoot":"","sources":["../../src/queries/getBasicTreeByParentUid.ts"],"names":[],"mappings":";;AAEA,MAAM,cAAc,GAAG,CAAC,CAAc,EAAmB,EAAE,CACzD,CAAC;KACE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC;KACnE,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IACd,QAAQ,EAAE,cAAc,CAAC,IAAI,CAAC,iBAAiB,CAAC,IAAI,EAAE,CAAC;IACvD,GAAG,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE;IAC7B,IAAI,EAAE,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE;CAClC,CAAC,CAAC,CAAC;AAER,MAAM,uBAAuB,GAAG,CAAC,GAAW,EAAmB,EAAE,CAC/D,cAAc,CACZ,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI;KAC1B,CAAC,CACA,yGAAyG,GAAG,6BAA6B,CAC1I;KACA,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAc,CAAC,CACjC,CAAC;AAEJ,kBAAe,uBAAuB,CAAC","sourcesContent":["import { PullBlock, RoamBasicNode } from \"../types\";\n\nconst sortBasicNodes = (c: PullBlock[]): RoamBasicNode[] =>\n c\n .sort((a, b) => (a[\":block/order\"] || 0) - (b[\":block/order\"] || 0))\n .map((node) => ({\n children: sortBasicNodes(node[\":block/children\"] || []),\n uid: node[\":block/uid\"] || \"\",\n text: node[\":block/string\"] || \"\",\n }));\n\nconst getBasicTreeByParentUid = (uid: string): RoamBasicNode[] =>\n sortBasicNodes(\n window.roamAlphaAPI.data.fast\n .q(\n `[:find (pull ?c [:block/string :block/uid :block/order {:block/children ...}]) :where [?b :block/uid \"${uid}\"] [?b :block/children ?c]]`\n )\n .map((a) => a[0] as PullBlock)\n );\n\nexport default getBasicTreeByParentUid;\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare const getBlockUidAndTextIncludingText: (t: string) => {
|
|
2
|
-
uid: string;
|
|
3
|
-
text: string;
|
|
4
|
-
}[];
|
|
5
|
-
export default getBlockUidAndTextIncludingText;
|
|
1
|
+
declare const getBlockUidAndTextIncludingText: (t: string) => {
|
|
2
|
+
uid: string;
|
|
3
|
+
text: string;
|
|
4
|
+
}[];
|
|
5
|
+
export default getBlockUidAndTextIncludingText;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const getBlockUidAndTextIncludingText = (t) => window.roamAlphaAPI.data.fast.q(`[:find (pull ?block [:block/uid :block/string]) :where [?block :block/string ?contents] [(clojure.string/includes? ?contents "${t}")]]`).map(([block]) => ({
|
|
4
|
-
uid: block[":block/uid"] || "",
|
|
5
|
-
text: block[":block/string"] || "",
|
|
6
|
-
}));
|
|
7
|
-
exports.default = getBlockUidAndTextIncludingText;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const getBlockUidAndTextIncludingText = (t) => window.roamAlphaAPI.data.fast.q(`[:find (pull ?block [:block/uid :block/string]) :where [?block :block/string ?contents] [(clojure.string/includes? ?contents "${t}")]]`).map(([block]) => ({
|
|
4
|
+
uid: block[":block/uid"] || "",
|
|
5
|
+
text: block[":block/string"] || "",
|
|
6
|
+
}));
|
|
7
|
+
exports.default = getBlockUidAndTextIncludingText;
|
|
8
8
|
//# sourceMappingURL=getBlockUidAndTextIncludingText.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getBlockUidAndTextIncludingText.js","sourceRoot":"","sources":["../../src/queries/getBlockUidAndTextIncludingText.ts"],"names":[],"mappings":";;AAEA,MAAM,+BAA+B,GAAG,CACtC,CAAS,EACwB,EAAE,CAEjC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAC7B,kIAAkI,CAAC,MAAM,CAE5I,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;IAClB,GAAG,EAAE,KAAK,CAAC,YAAY,CAAC,IAAI,EAAE;IAC9B,IAAI,EAAE,KAAK,CAAC,eAAe,CAAC,IAAI,EAAE;CACnC,CAAC,CAAC,CAAC;AAEN,kBAAe,+BAA+B,CAAC","sourcesContent":["import { PullBlock } from \"../types\";\
|
|
1
|
+
{"version":3,"file":"getBlockUidAndTextIncludingText.js","sourceRoot":"","sources":["../../src/queries/getBlockUidAndTextIncludingText.ts"],"names":[],"mappings":";;AAEA,MAAM,+BAA+B,GAAG,CACtC,CAAS,EACwB,EAAE,CAEjC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAC7B,kIAAkI,CAAC,MAAM,CAE5I,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;IAClB,GAAG,EAAE,KAAK,CAAC,YAAY,CAAC,IAAI,EAAE;IAC9B,IAAI,EAAE,KAAK,CAAC,eAAe,CAAC,IAAI,EAAE;CACnC,CAAC,CAAC,CAAC;AAEN,kBAAe,+BAA+B,CAAC","sourcesContent":["import { PullBlock } from \"../types\";\n\nconst getBlockUidAndTextIncludingText = (\n t: string\n): { uid: string; text: string }[] =>\n (\n window.roamAlphaAPI.data.fast.q(\n `[:find (pull ?block [:block/uid :block/string]) :where [?block :block/string ?contents] [(clojure.string/includes? ?contents \"${t}\")]]`\n ) as [PullBlock][]\n ).map(([block]) => ({\n uid: block[\":block/uid\"] || \"\",\n text: block[\":block/string\"] || \"\",\n }));\n\nexport default getBlockUidAndTextIncludingText;\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare const getBlockUidByTextOnPage: ({ text, title, }: {
|
|
2
|
-
text: string;
|
|
3
|
-
title: string;
|
|
4
|
-
}) => string;
|
|
5
|
-
export default getBlockUidByTextOnPage;
|
|
1
|
+
declare const getBlockUidByTextOnPage: ({ text, title, }: {
|
|
2
|
+
text: string;
|
|
3
|
+
title: string;
|
|
4
|
+
}) => string;
|
|
5
|
+
export default getBlockUidByTextOnPage;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const getBlockUidByTextOnPage = ({ text, title, }) => {
|
|
4
|
-
var _a, _b;
|
|
5
|
-
return ((_b = (_a = window.roamAlphaAPI.q(`[:find ?u :where [?b :block/page ?p] [?b :block/uid ?u] [?b :block/string "${text}"] [?p :node/title "${title}"]]`)) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b[0]) || "";
|
|
6
|
-
};
|
|
7
|
-
exports.default = getBlockUidByTextOnPage;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const getBlockUidByTextOnPage = ({ text, title, }) => {
|
|
4
|
+
var _a, _b;
|
|
5
|
+
return ((_b = (_a = window.roamAlphaAPI.q(`[:find ?u :where [?b :block/page ?p] [?b :block/uid ?u] [?b :block/string "${text}"] [?p :node/title "${title}"]]`)) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b[0]) || "";
|
|
6
|
+
};
|
|
7
|
+
exports.default = getBlockUidByTextOnPage;
|
|
8
8
|
//# sourceMappingURL=getBlockUidByTextOnPage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getBlockUidByTextOnPage.js","sourceRoot":"","sources":["../../src/queries/getBlockUidByTextOnPage.ts"],"names":[],"mappings":";;AAAA,MAAM,uBAAuB,GAAG,CAAC,EAC/B,IAAI,EACJ,KAAK,GAIN,EAAU,EAAE;;IACX,OAAA,CAAC,MAAA,MAAA,MAAM,CAAC,YAAY,CAAC,CAAC,CACpB,8EAA8E,IAAI,uBAAuB,KAAK,KAAK,CACpH,0CAAG,CAAC,CAAC,0CAAG,CAAC,CAAY,KAAI,EAAE,CAAA;CAAA,CAAC;AAE/B,kBAAe,uBAAuB,CAAC","sourcesContent":["const getBlockUidByTextOnPage = ({\
|
|
1
|
+
{"version":3,"file":"getBlockUidByTextOnPage.js","sourceRoot":"","sources":["../../src/queries/getBlockUidByTextOnPage.ts"],"names":[],"mappings":";;AAAA,MAAM,uBAAuB,GAAG,CAAC,EAC/B,IAAI,EACJ,KAAK,GAIN,EAAU,EAAE;;IACX,OAAA,CAAC,MAAA,MAAA,MAAM,CAAC,YAAY,CAAC,CAAC,CACpB,8EAA8E,IAAI,uBAAuB,KAAK,KAAK,CACpH,0CAAG,CAAC,CAAC,0CAAG,CAAC,CAAY,KAAI,EAAE,CAAA;CAAA,CAAC;AAE/B,kBAAe,uBAAuB,CAAC","sourcesContent":["const getBlockUidByTextOnPage = ({\n text,\n title,\n}: {\n text: string;\n title: string;\n}): string =>\n (window.roamAlphaAPI.q(\n `[:find ?u :where [?b :block/page ?p] [?b :block/uid ?u] [?b :block/string \"${text}\"] [?p :node/title \"${title}\"]]`\n )?.[0]?.[0] as string) || \"\";\n\nexport default getBlockUidByTextOnPage;\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare const getBlockUidsAndTextsReferencingPage: (title: string) => {
|
|
2
|
-
uid: string;
|
|
3
|
-
text: string;
|
|
4
|
-
}[];
|
|
5
|
-
export default getBlockUidsAndTextsReferencingPage;
|
|
1
|
+
declare const getBlockUidsAndTextsReferencingPage: (title: string) => {
|
|
2
|
+
uid: string;
|
|
3
|
+
text: string;
|
|
4
|
+
}[];
|
|
5
|
+
export default getBlockUidsAndTextsReferencingPage;
|
|
@@ -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 getBlockUidsAndTextsReferencingPage = (title) => window.roamAlphaAPI.data.fast.q(`[:find (pull ?r [:block/uid :block/string]) :where [?p :node/title "${(0, normalizePageTitle_1.default)(title)}"] [?r :block/refs ?p]]`).map(([node]) => ({
|
|
6
|
-
uid: node[":block/uid"] || "",
|
|
7
|
-
text: node[":block/string"] || "",
|
|
8
|
-
}));
|
|
9
|
-
exports.default = getBlockUidsAndTextsReferencingPage;
|
|
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 getBlockUidsAndTextsReferencingPage = (title) => window.roamAlphaAPI.data.fast.q(`[:find (pull ?r [:block/uid :block/string]) :where [?p :node/title "${(0, normalizePageTitle_1.default)(title)}"] [?r :block/refs ?p]]`).map(([node]) => ({
|
|
6
|
+
uid: node[":block/uid"] || "",
|
|
7
|
+
text: node[":block/string"] || "",
|
|
8
|
+
}));
|
|
9
|
+
exports.default = getBlockUidsAndTextsReferencingPage;
|
|
10
10
|
//# sourceMappingURL=getBlockUidsAndTextsReferencingPage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getBlockUidsAndTextsReferencingPage.js","sourceRoot":"","sources":["../../src/queries/getBlockUidsAndTextsReferencingPage.ts"],"names":[],"mappings":";;;AACA,sFAAsD;AAEtD,MAAM,mCAAmC,GAAG,CAC1C,KAAa,EACoB,EAAE,CAEjC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAC7B,uEAAuE,IAAA,4BAAkB,EACvF,KAAK,CACN,yBAAyB,CAE7B,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;IACjB,GAAG,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE;IAC7B,IAAI,EAAE,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE;CAClC,CAAC,CAAC,CAAC;AAEN,kBAAe,mCAAmC,CAAC","sourcesContent":["import { PullBlock } from \"../types\";\
|
|
1
|
+
{"version":3,"file":"getBlockUidsAndTextsReferencingPage.js","sourceRoot":"","sources":["../../src/queries/getBlockUidsAndTextsReferencingPage.ts"],"names":[],"mappings":";;;AACA,sFAAsD;AAEtD,MAAM,mCAAmC,GAAG,CAC1C,KAAa,EACoB,EAAE,CAEjC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAC7B,uEAAuE,IAAA,4BAAkB,EACvF,KAAK,CACN,yBAAyB,CAE7B,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;IACjB,GAAG,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE;IAC7B,IAAI,EAAE,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE;CAClC,CAAC,CAAC,CAAC;AAEN,kBAAe,mCAAmC,CAAC","sourcesContent":["import { PullBlock } from \"../types\";\nimport normalizePageTitle from \"./normalizePageTitle\";\n\nconst getBlockUidsAndTextsReferencingPage = (\n title: string\n): { uid: string; text: string }[] =>\n (\n window.roamAlphaAPI.data.fast.q(\n `[:find (pull ?r [:block/uid :block/string]) :where [?p :node/title \"${normalizePageTitle(\n title\n )}\"] [?r :block/refs ?p]]`\n ) as [PullBlock][]\n ).map(([node]) => ({\n uid: node[\":block/uid\"] || \"\",\n text: node[\":block/string\"] || \"\",\n }));\n\nexport default getBlockUidsAndTextsReferencingPage;\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const getBlockUidsByPageTitle: (title: string) => string[];
|
|
2
|
-
export default getBlockUidsByPageTitle;
|
|
1
|
+
declare const getBlockUidsByPageTitle: (title: string) => string[];
|
|
2
|
+
export default getBlockUidsByPageTitle;
|
|
@@ -1,9 +1,9 @@
|
|
|
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 getBlockUidsByPageTitle = (title) => window.roamAlphaAPI
|
|
6
|
-
.q(`[:find ?u :where [?b :block/uid ?u] [?b :block/page ?e] [?e :node/title "${(0, normalizePageTitle_1.default)(title)}"]]`)
|
|
7
|
-
.map((b) => b[0]);
|
|
8
|
-
exports.default = getBlockUidsByPageTitle;
|
|
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 getBlockUidsByPageTitle = (title) => window.roamAlphaAPI
|
|
6
|
+
.q(`[:find ?u :where [?b :block/uid ?u] [?b :block/page ?e] [?e :node/title "${(0, normalizePageTitle_1.default)(title)}"]]`)
|
|
7
|
+
.map((b) => b[0]);
|
|
8
|
+
exports.default = getBlockUidsByPageTitle;
|
|
9
9
|
//# sourceMappingURL=getBlockUidsByPageTitle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getBlockUidsByPageTitle.js","sourceRoot":"","sources":["../../src/queries/getBlockUidsByPageTitle.ts"],"names":[],"mappings":";;;AAAA,sFAAsD;AAEtD,MAAM,uBAAuB,GAAG,CAAC,KAAa,EAAY,EAAE,CAC1D,MAAM,CAAC,YAAY;KAChB,CAAC,CACA,6EAA6E,IAAA,4BAAkB,EAC7F,KAAK,CACN,KAAK,CACP;KACA,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAW,CAAC,CAAC;AAEhC,kBAAe,uBAAuB,CAAC","sourcesContent":["import normalizePageTitle from \"./normalizePageTitle\";\
|
|
1
|
+
{"version":3,"file":"getBlockUidsByPageTitle.js","sourceRoot":"","sources":["../../src/queries/getBlockUidsByPageTitle.ts"],"names":[],"mappings":";;;AAAA,sFAAsD;AAEtD,MAAM,uBAAuB,GAAG,CAAC,KAAa,EAAY,EAAE,CAC1D,MAAM,CAAC,YAAY;KAChB,CAAC,CACA,6EAA6E,IAAA,4BAAkB,EAC7F,KAAK,CACN,KAAK,CACP;KACA,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAW,CAAC,CAAC;AAEhC,kBAAe,uBAAuB,CAAC","sourcesContent":["import normalizePageTitle from \"./normalizePageTitle\";\n\nconst getBlockUidsByPageTitle = (title: string): string[] =>\n window.roamAlphaAPI\n .q(\n `[:find ?u :where [?b :block/uid ?u] [?b :block/page ?e] [?e :node/title \"${normalizePageTitle(\n title\n )}\"]]`\n )\n .map((b) => b[0] as string);\n\nexport default getBlockUidsByPageTitle;\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const getBlockUidsReferencingBlock: (uid: string) => string[];
|
|
2
|
-
export default getBlockUidsReferencingBlock;
|
|
1
|
+
declare const getBlockUidsReferencingBlock: (uid: string) => string[];
|
|
2
|
+
export default getBlockUidsReferencingBlock;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const getBlockUidsReferencingBlock = (uid) => window.roamAlphaAPI.data.fast.q(`[:find (pull ?r [:block/uid]) :where [?b :block/uid "${uid}"] [?r :block/refs ?b]]`).map((s) => s[0][":block/uid"] || "");
|
|
4
|
-
exports.default = getBlockUidsReferencingBlock;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const getBlockUidsReferencingBlock = (uid) => window.roamAlphaAPI.data.fast.q(`[:find (pull ?r [:block/uid]) :where [?b :block/uid "${uid}"] [?r :block/refs ?b]]`).map((s) => s[0][":block/uid"] || "");
|
|
4
|
+
exports.default = getBlockUidsReferencingBlock;
|
|
5
5
|
//# sourceMappingURL=getBlockUidsReferencingBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getBlockUidsReferencingBlock.js","sourceRoot":"","sources":["../../src/queries/getBlockUidsReferencingBlock.ts"],"names":[],"mappings":";;AAEA,MAAM,4BAA4B,GAAG,CAAC,GAAW,EAAY,EAAE,CAE3D,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAC7B,wDAAwD,GAAG,yBAAyB,CAEvF,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC;AAEzC,kBAAe,4BAA4B,CAAC","sourcesContent":["import { PullBlock } from \"../types\";\
|
|
1
|
+
{"version":3,"file":"getBlockUidsReferencingBlock.js","sourceRoot":"","sources":["../../src/queries/getBlockUidsReferencingBlock.ts"],"names":[],"mappings":";;AAEA,MAAM,4BAA4B,GAAG,CAAC,GAAW,EAAY,EAAE,CAE3D,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAC7B,wDAAwD,GAAG,yBAAyB,CAEvF,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC;AAEzC,kBAAe,4BAA4B,CAAC","sourcesContent":["import { PullBlock } from \"../types\";\n\nconst getBlockUidsReferencingBlock = (uid: string): string[] =>\n (\n window.roamAlphaAPI.data.fast.q(\n `[:find (pull ?r [:block/uid]) :where [?b :block/uid \"${uid}\"] [?r :block/refs ?b]]`\n ) as [PullBlock][]\n ).map((s) => s[0][\":block/uid\"] || \"\");\n\nexport default getBlockUidsReferencingBlock;\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const getBlockUidsReferencingPage: (title: string) => string[];
|
|
2
|
-
export default getBlockUidsReferencingPage;
|
|
1
|
+
declare const getBlockUidsReferencingPage: (title: string) => string[];
|
|
2
|
+
export default getBlockUidsReferencingPage;
|
|
@@ -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 getBlockUidsReferencingPage = (title) => window.roamAlphaAPI.data.fast.q(`[:find (pull ?r [:block/uid]) :where [?p :node/title "${(0, normalizePageTitle_1.default)(title)}"] [?r :block/refs ?p]]`).map((s) => s[0][":block/uid"] || "");
|
|
6
|
-
exports.default = getBlockUidsReferencingPage;
|
|
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 getBlockUidsReferencingPage = (title) => window.roamAlphaAPI.data.fast.q(`[:find (pull ?r [:block/uid]) :where [?p :node/title "${(0, normalizePageTitle_1.default)(title)}"] [?r :block/refs ?p]]`).map((s) => s[0][":block/uid"] || "");
|
|
6
|
+
exports.default = getBlockUidsReferencingPage;
|
|
7
7
|
//# sourceMappingURL=getBlockUidsReferencingPage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getBlockUidsReferencingPage.js","sourceRoot":"","sources":["../../src/queries/getBlockUidsReferencingPage.ts"],"names":[],"mappings":";;;AACA,sFAAsD;AAEtD,MAAM,2BAA2B,GAAG,CAAC,KAAa,EAAY,EAAE,CAE5D,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAC7B,yDAAyD,IAAA,4BAAkB,EACzE,KAAK,CACN,yBAAyB,CAE7B,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC;AAEzC,kBAAe,2BAA2B,CAAC","sourcesContent":["import { PullBlock } from \"../types\";\
|
|
1
|
+
{"version":3,"file":"getBlockUidsReferencingPage.js","sourceRoot":"","sources":["../../src/queries/getBlockUidsReferencingPage.ts"],"names":[],"mappings":";;;AACA,sFAAsD;AAEtD,MAAM,2BAA2B,GAAG,CAAC,KAAa,EAAY,EAAE,CAE5D,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAC7B,yDAAyD,IAAA,4BAAkB,EACzE,KAAK,CACN,yBAAyB,CAE7B,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC;AAEzC,kBAAe,2BAA2B,CAAC","sourcesContent":["import { PullBlock } from \"../types\";\nimport normalizePageTitle from \"./normalizePageTitle\";\n\nconst getBlockUidsReferencingPage = (title: string): string[] =>\n (\n window.roamAlphaAPI.data.fast.q(\n `[:find (pull ?r [:block/uid]) :where [?p :node/title \"${normalizePageTitle(\n title\n )}\"] [?r :block/refs ?p]]`\n ) as [PullBlock][]\n ).map((s) => s[0][\":block/uid\"] || \"\");\n\nexport default getBlockUidsReferencingPage;\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const getBlockUidsWithParentUid: (uid: string) => string[];
|
|
2
|
-
export default getBlockUidsWithParentUid;
|
|
1
|
+
declare const getBlockUidsWithParentUid: (uid: string) => string[];
|
|
2
|
+
export default getBlockUidsWithParentUid;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const getBlockUidsWithParentUid = (uid) => window.roamAlphaAPI
|
|
4
|
-
.q(`[:find ?u :where [?c :block/uid ?u] [?c :block/parents ?b] [?b :block/uid "${uid}"]]`)
|
|
5
|
-
.map((r) => r[0]);
|
|
6
|
-
exports.default = getBlockUidsWithParentUid;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const getBlockUidsWithParentUid = (uid) => window.roamAlphaAPI
|
|
4
|
+
.q(`[:find ?u :where [?c :block/uid ?u] [?c :block/parents ?b] [?b :block/uid "${uid}"]]`)
|
|
5
|
+
.map((r) => r[0]);
|
|
6
|
+
exports.default = getBlockUidsWithParentUid;
|
|
7
7
|
//# sourceMappingURL=getBlockUidsWithParentUid.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getBlockUidsWithParentUid.js","sourceRoot":"","sources":["../../src/queries/getBlockUidsWithParentUid.ts"],"names":[],"mappings":";;AAEA,MAAM,yBAAyB,GAAG,CAAC,GAAW,EAAY,EAAE,CAC1D,MAAM,CAAC,YAAY;KAChB,CAAC,CACA,8EAA8E,GAAG,KAAK,CACvF;KACA,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAW,CAAC,CAAC;AAEhC,kBAAe,yBAAyB,CAAC","sourcesContent":["\
|
|
1
|
+
{"version":3,"file":"getBlockUidsWithParentUid.js","sourceRoot":"","sources":["../../src/queries/getBlockUidsWithParentUid.ts"],"names":[],"mappings":";;AAEA,MAAM,yBAAyB,GAAG,CAAC,GAAW,EAAY,EAAE,CAC1D,MAAM,CAAC,YAAY;KAChB,CAAC,CACA,8EAA8E,GAAG,KAAK,CACvF;KACA,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAW,CAAC,CAAC;AAEhC,kBAAe,yBAAyB,CAAC","sourcesContent":["\n\nconst getBlockUidsWithParentUid = (uid: string): string[] =>\n window.roamAlphaAPI\n .q(\n `[:find ?u :where [?c :block/uid ?u] [?c :block/parents ?b] [?b :block/uid \"${uid}\"]]`\n )\n .map((r) => r[0] as string);\n\nexport default getBlockUidsWithParentUid;\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const getChildrenLengthByPageUid: (uid: string) => number;
|
|
2
|
-
export default getChildrenLengthByPageUid;
|
|
1
|
+
declare const getChildrenLengthByPageUid: (uid: string) => number;
|
|
2
|
+
export default getChildrenLengthByPageUid;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
// @deprecated - use getChildrenLengthByParentUid instead
|
|
4
|
-
const getChildrenLengthByPageUid = (uid) => {
|
|
5
|
-
var _a, _b;
|
|
6
|
-
return ((_b = (_a = window.roamAlphaAPI.pull("[:block/children]", [":block/uid", uid])) === null || _a === void 0 ? void 0 : _a[":block/children"]) === null || _b === void 0 ? void 0 : _b.length) || 0;
|
|
7
|
-
};
|
|
8
|
-
exports.default = getChildrenLengthByPageUid;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
// @deprecated - use getChildrenLengthByParentUid instead
|
|
4
|
+
const getChildrenLengthByPageUid = (uid) => {
|
|
5
|
+
var _a, _b;
|
|
6
|
+
return ((_b = (_a = window.roamAlphaAPI.pull("[:block/children]", [":block/uid", uid])) === null || _a === void 0 ? void 0 : _a[":block/children"]) === null || _b === void 0 ? void 0 : _b.length) || 0;
|
|
7
|
+
};
|
|
8
|
+
exports.default = getChildrenLengthByPageUid;
|
|
9
9
|
//# sourceMappingURL=getChildrenLengthByPageUid.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getChildrenLengthByPageUid.js","sourceRoot":"","sources":["../../src/queries/getChildrenLengthByPageUid.ts"],"names":[],"mappings":";;AAAA,yDAAyD;AACzD,MAAM,0BAA0B,GAAG,CAAC,GAAW,EAAU,EAAE;;IACzD,OAAA,CAAA,MAAA,MAAA,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,mBAAmB,EAAE,CAAC,YAAY,EAAE,GAAG,CAAC,CAAC,0CAChE,iBAAiB,CAClB,0CAAE,MAAM,KAAI,CAAC,CAAA;CAAA,CAAC;AAEjB,kBAAe,0BAA0B,CAAC","sourcesContent":["// @deprecated - use getChildrenLengthByParentUid instead\
|
|
1
|
+
{"version":3,"file":"getChildrenLengthByPageUid.js","sourceRoot":"","sources":["../../src/queries/getChildrenLengthByPageUid.ts"],"names":[],"mappings":";;AAAA,yDAAyD;AACzD,MAAM,0BAA0B,GAAG,CAAC,GAAW,EAAU,EAAE;;IACzD,OAAA,CAAA,MAAA,MAAA,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,mBAAmB,EAAE,CAAC,YAAY,EAAE,GAAG,CAAC,CAAC,0CAChE,iBAAiB,CAClB,0CAAE,MAAM,KAAI,CAAC,CAAA;CAAA,CAAC;AAEjB,kBAAe,0BAA0B,CAAC","sourcesContent":["// @deprecated - use getChildrenLengthByParentUid instead\nconst getChildrenLengthByPageUid = (uid: string): number =>\n window.roamAlphaAPI.pull(\"[:block/children]\", [\":block/uid\", uid])?.[\n \":block/children\"\n ]?.length || 0;\n\nexport default getChildrenLengthByPageUid;\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const getChildrenLengthByPageUid: (uid: string) => number;
|
|
2
|
-
export default getChildrenLengthByPageUid;
|
|
1
|
+
declare const getChildrenLengthByPageUid: (uid: string) => number;
|
|
2
|
+
export default getChildrenLengthByPageUid;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const getChildrenLengthByPageUid = (uid) => {
|
|
4
|
-
var _a, _b;
|
|
5
|
-
return ((_b = (_a = window.roamAlphaAPI.pull("[:block/children]", [":block/uid", uid])) === null || _a === void 0 ? void 0 : _a[":block/children"]) === null || _b === void 0 ? void 0 : _b.length) || 0;
|
|
6
|
-
};
|
|
7
|
-
exports.default = getChildrenLengthByPageUid;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const getChildrenLengthByPageUid = (uid) => {
|
|
4
|
+
var _a, _b;
|
|
5
|
+
return ((_b = (_a = window.roamAlphaAPI.pull("[:block/children]", [":block/uid", uid])) === null || _a === void 0 ? void 0 : _a[":block/children"]) === null || _b === void 0 ? void 0 : _b.length) || 0;
|
|
6
|
+
};
|
|
7
|
+
exports.default = getChildrenLengthByPageUid;
|
|
8
8
|
//# sourceMappingURL=getChildrenLengthByParentUid.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getChildrenLengthByParentUid.js","sourceRoot":"","sources":["../../src/queries/getChildrenLengthByParentUid.ts"],"names":[],"mappings":";;AAAA,MAAM,0BAA0B,GAAG,CAAC,GAAW,EAAU,EAAE;;IACzD,OAAA,CAAA,MAAA,MAAA,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,mBAAmB,EAAE,CAAC,YAAY,EAAE,GAAG,CAAC,CAAC,0CAChE,iBAAiB,CAClB,0CAAE,MAAM,KAAI,CAAC,CAAA;CAAA,CAAC;AAEjB,kBAAe,0BAA0B,CAAC","sourcesContent":["const getChildrenLengthByPageUid = (uid: string): number =>\
|
|
1
|
+
{"version":3,"file":"getChildrenLengthByParentUid.js","sourceRoot":"","sources":["../../src/queries/getChildrenLengthByParentUid.ts"],"names":[],"mappings":";;AAAA,MAAM,0BAA0B,GAAG,CAAC,GAAW,EAAU,EAAE;;IACzD,OAAA,CAAA,MAAA,MAAA,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,mBAAmB,EAAE,CAAC,YAAY,EAAE,GAAG,CAAC,CAAC,0CAChE,iBAAiB,CAClB,0CAAE,MAAM,KAAI,CAAC,CAAA;CAAA,CAAC;AAEjB,kBAAe,0BAA0B,CAAC","sourcesContent":["const getChildrenLengthByPageUid = (uid: string): number =>\n window.roamAlphaAPI.pull(\"[:block/children]\", [\":block/uid\", uid])?.[\n \":block/children\"\n ]?.length || 0;\n\nexport default getChildrenLengthByPageUid;\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const getCreateTimeByBlockUid: (uid: string) => number;
|
|
2
|
-
export default getCreateTimeByBlockUid;
|
|
1
|
+
declare const getCreateTimeByBlockUid: (uid: string) => number;
|
|
2
|
+
export default getCreateTimeByBlockUid;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const getCreateTimeByBlockUid = (uid) => {
|
|
4
|
-
var _a;
|
|
5
|
-
return ((_a = window.roamAlphaAPI.pull(`[:edit/time]`, [":block/uid", uid])) === null || _a === void 0 ? void 0 : _a[":create/time"]) || 0;
|
|
6
|
-
};
|
|
7
|
-
exports.default = getCreateTimeByBlockUid;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const getCreateTimeByBlockUid = (uid) => {
|
|
4
|
+
var _a;
|
|
5
|
+
return ((_a = window.roamAlphaAPI.pull(`[:edit/time]`, [":block/uid", uid])) === null || _a === void 0 ? void 0 : _a[":create/time"]) || 0;
|
|
6
|
+
};
|
|
7
|
+
exports.default = getCreateTimeByBlockUid;
|
|
8
8
|
//# sourceMappingURL=getCreateTimeByBlockUid.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCreateTimeByBlockUid.js","sourceRoot":"","sources":["../../src/queries/getCreateTimeByBlockUid.ts"],"names":[],"mappings":";;AAAA,MAAM,uBAAuB,GAAG,CAAC,GAAW,EAAU,EAAE;;IACtD,OAAA,CAAA,MAAA,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC,YAAY,EAAE,GAAG,CAAC,CAAC,0CAC3D,cAAc,CACf,KAAI,CAAC,CAAA;CAAA,CAAC;AAET,kBAAe,uBAAuB,CAAC","sourcesContent":["const getCreateTimeByBlockUid = (uid: string): number =>\
|
|
1
|
+
{"version":3,"file":"getCreateTimeByBlockUid.js","sourceRoot":"","sources":["../../src/queries/getCreateTimeByBlockUid.ts"],"names":[],"mappings":";;AAAA,MAAM,uBAAuB,GAAG,CAAC,GAAW,EAAU,EAAE;;IACtD,OAAA,CAAA,MAAA,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC,YAAY,EAAE,GAAG,CAAC,CAAC,0CAC3D,cAAc,CACf,KAAI,CAAC,CAAA;CAAA,CAAC;AAET,kBAAe,uBAAuB,CAAC","sourcesContent":["const getCreateTimeByBlockUid = (uid: string): number =>\n window.roamAlphaAPI.pull(`[:edit/time]`, [\":block/uid\", uid])?.[\n \":create/time\"\n ] || 0;\n\nexport default getCreateTimeByBlockUid;\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const getCurrentUser: () => string[];
|
|
2
|
-
export default getCurrentUser;
|
|
1
|
+
declare const getCurrentUser: () => string[];
|
|
2
|
+
export default getCurrentUser;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const getCurrentUser = () => {
|
|
4
|
-
const globalAppState = JSON.parse(localStorage.getItem("globalAppState") || '["","",[]]');
|
|
5
|
-
const userIndex = globalAppState.findIndex((s) => s === "~:user");
|
|
6
|
-
if (userIndex > 0) {
|
|
7
|
-
return globalAppState[userIndex + 1];
|
|
8
|
-
}
|
|
9
|
-
return [];
|
|
10
|
-
};
|
|
11
|
-
exports.default = getCurrentUser;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const getCurrentUser = () => {
|
|
4
|
+
const globalAppState = JSON.parse(localStorage.getItem("globalAppState") || '["","",[]]');
|
|
5
|
+
const userIndex = globalAppState.findIndex((s) => s === "~:user");
|
|
6
|
+
if (userIndex > 0) {
|
|
7
|
+
return globalAppState[userIndex + 1];
|
|
8
|
+
}
|
|
9
|
+
return [];
|
|
10
|
+
};
|
|
11
|
+
exports.default = getCurrentUser;
|
|
12
12
|
//# sourceMappingURL=getCurrentUser.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCurrentUser.js","sourceRoot":"","sources":["../../src/queries/getCurrentUser.ts"],"names":[],"mappings":";;AAAA,MAAM,cAAc,GAAG,GAAa,EAAE;IACpC,MAAM,cAAc,GAAG,IAAI,CAAC,KAAK,CAC/B,YAAY,CAAC,OAAO,CAAC,gBAAgB,CAAC,IAAI,YAAY,CAC9B,CAAC;IAC3B,MAAM,SAAS,GAAG,cAAc,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,QAAQ,CAAC,CAAC;IAClE,IAAI,SAAS,GAAG,CAAC,EAAE;QACjB,OAAO,cAAc,CAAC,SAAS,GAAG,CAAC,CAAa,CAAC;KAClD;IACD,OAAO,EAAE,CAAC;AACZ,CAAC,CAAC;AAEF,kBAAe,cAAc,CAAC","sourcesContent":["const getCurrentUser = (): string[] => {\
|
|
1
|
+
{"version":3,"file":"getCurrentUser.js","sourceRoot":"","sources":["../../src/queries/getCurrentUser.ts"],"names":[],"mappings":";;AAAA,MAAM,cAAc,GAAG,GAAa,EAAE;IACpC,MAAM,cAAc,GAAG,IAAI,CAAC,KAAK,CAC/B,YAAY,CAAC,OAAO,CAAC,gBAAgB,CAAC,IAAI,YAAY,CAC9B,CAAC;IAC3B,MAAM,SAAS,GAAG,cAAc,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,QAAQ,CAAC,CAAC;IAClE,IAAI,SAAS,GAAG,CAAC,EAAE;QACjB,OAAO,cAAc,CAAC,SAAS,GAAG,CAAC,CAAa,CAAC;KAClD;IACD,OAAO,EAAE,CAAC;AACZ,CAAC,CAAC;AAEF,kBAAe,cAAc,CAAC","sourcesContent":["const getCurrentUser = (): string[] => {\n const globalAppState = JSON.parse(\n localStorage.getItem(\"globalAppState\") || '[\"\",\"\",[]]'\n ) as (string | string[])[];\n const userIndex = globalAppState.findIndex((s) => s === \"~:user\");\n if (userIndex > 0) {\n return globalAppState[userIndex + 1] as string[];\n }\n return [];\n};\n\nexport default getCurrentUser;\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const getCurrentUserDisplayName: () => string;
|
|
2
|
-
export default getCurrentUserDisplayName;
|
|
1
|
+
declare const getCurrentUserDisplayName: () => string;
|
|
2
|
+
export default getCurrentUserDisplayName;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const getCurrentUserUid_1 = tslib_1.__importDefault(require("./getCurrentUserUid"));
|
|
5
|
-
const getDisplayNameByUid_1 = tslib_1.__importDefault(require("./getDisplayNameByUid"));
|
|
6
|
-
const getCurrentUserDisplayName = () => {
|
|
7
|
-
const uid = (0, getCurrentUserUid_1.default)();
|
|
8
|
-
return (0, getDisplayNameByUid_1.default)(uid);
|
|
9
|
-
};
|
|
10
|
-
exports.default = getCurrentUserDisplayName;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const getCurrentUserUid_1 = tslib_1.__importDefault(require("./getCurrentUserUid"));
|
|
5
|
+
const getDisplayNameByUid_1 = tslib_1.__importDefault(require("./getDisplayNameByUid"));
|
|
6
|
+
const getCurrentUserDisplayName = () => {
|
|
7
|
+
const uid = (0, getCurrentUserUid_1.default)();
|
|
8
|
+
return (0, getDisplayNameByUid_1.default)(uid);
|
|
9
|
+
};
|
|
10
|
+
exports.default = getCurrentUserDisplayName;
|
|
11
11
|
//# sourceMappingURL=getCurrentUserDisplayName.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCurrentUserDisplayName.js","sourceRoot":"","sources":["../../src/queries/getCurrentUserDisplayName.ts"],"names":[],"mappings":";;;AAAA,oFAAoD;AACpD,wFAAwD;AAExD,MAAM,yBAAyB,GAAG,GAAW,EAAE;IAC7C,MAAM,GAAG,GAAG,IAAA,2BAAiB,GAAE,CAAC;IAChC,OAAO,IAAA,6BAAmB,EAAC,GAAG,CAAC,CAAC;AAClC,CAAC,CAAC;AAEF,kBAAe,yBAAyB,CAAC","sourcesContent":["import getCurrentUserUid from \"./getCurrentUserUid\";\
|
|
1
|
+
{"version":3,"file":"getCurrentUserDisplayName.js","sourceRoot":"","sources":["../../src/queries/getCurrentUserDisplayName.ts"],"names":[],"mappings":";;;AAAA,oFAAoD;AACpD,wFAAwD;AAExD,MAAM,yBAAyB,GAAG,GAAW,EAAE;IAC7C,MAAM,GAAG,GAAG,IAAA,2BAAiB,GAAE,CAAC;IAChC,OAAO,IAAA,6BAAmB,EAAC,GAAG,CAAC,CAAC;AAClC,CAAC,CAAC;AAEF,kBAAe,yBAAyB,CAAC","sourcesContent":["import getCurrentUserUid from \"./getCurrentUserUid\";\nimport getDisplayNameByUid from \"./getDisplayNameByUid\";\n\nconst getCurrentUserDisplayName = (): string => {\n const uid = getCurrentUserUid();\n return getDisplayNameByUid(uid);\n};\n\nexport default getCurrentUserDisplayName;\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const getCurrentUserEmail: () => string;
|
|
2
|
-
export default getCurrentUserEmail;
|
|
1
|
+
declare const getCurrentUserEmail: () => string;
|
|
2
|
+
export default getCurrentUserEmail;
|