@looker/api-explorer 0.9.43-alpha.1650 → 0.9.43
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/CHANGELOG.md +23 -0
- package/jest.config.js +4 -1
- package/lib/ApiExplorer.js +3 -33
- package/lib/ApiExplorer.js.map +1 -1
- package/lib/App.js +1 -12
- package/lib/App.js.map +1 -1
- package/lib/StandaloneApiExplorer.js +0 -17
- package/lib/StandaloneApiExplorer.js.map +1 -1
- package/lib/components/Banner/Banner.js +0 -14
- package/lib/components/Banner/Banner.js.map +1 -1
- package/lib/components/Banner/index.js +0 -1
- package/lib/components/Banner/index.js.map +1 -1
- package/lib/components/DocActivityType/DocActivityType.js +0 -5
- package/lib/components/DocActivityType/DocActivityType.js.map +1 -1
- package/lib/components/DocActivityType/index.js +0 -1
- package/lib/components/DocActivityType/index.js.map +1 -1
- package/lib/components/DocCode/DocCode.js +0 -8
- package/lib/components/DocCode/DocCode.js.map +1 -1
- package/lib/components/DocCode/index.js +0 -1
- package/lib/components/DocCode/index.js.map +1 -1
- package/lib/components/DocMarkdown/DocMarkdown.js +0 -12
- package/lib/components/DocMarkdown/DocMarkdown.js.map +1 -1
- package/lib/components/DocMarkdown/index.js +0 -1
- package/lib/components/DocMarkdown/index.js.map +1 -1
- package/lib/components/DocMarkdown/utils.js +0 -5
- package/lib/components/DocMarkdown/utils.js.map +1 -1
- package/lib/components/DocMethodSummary/DocMethodSummary.js +0 -8
- package/lib/components/DocMethodSummary/DocMethodSummary.js.map +1 -1
- package/lib/components/DocMethodSummary/DocSummaryStatus.js +0 -6
- package/lib/components/DocMethodSummary/DocSummaryStatus.js.map +1 -1
- package/lib/components/DocMethodSummary/index.js +0 -3
- package/lib/components/DocMethodSummary/index.js.map +1 -1
- package/lib/components/DocMethodSummary/utils.js +1 -25
- package/lib/components/DocMethodSummary/utils.js.map +1 -1
- package/lib/components/DocPseudo/DocParam.js +0 -6
- package/lib/components/DocPseudo/DocParam.js.map +1 -1
- package/lib/components/DocPseudo/DocParams.js +0 -6
- package/lib/components/DocPseudo/DocParams.js.map +1 -1
- package/lib/components/DocPseudo/DocPrimaryResponse.js +0 -5
- package/lib/components/DocPseudo/DocPrimaryResponse.js.map +1 -1
- package/lib/components/DocPseudo/DocPseudo.js +0 -7
- package/lib/components/DocPseudo/DocPseudo.js.map +1 -1
- package/lib/components/DocPseudo/index.js +0 -1
- package/lib/components/DocPseudo/index.js.map +1 -1
- package/lib/components/DocRateLimited/DocRateLimited.js +0 -5
- package/lib/components/DocRateLimited/DocRateLimited.js.map +1 -1
- package/lib/components/DocRateLimited/index.js +0 -1
- package/lib/components/DocRateLimited/index.js.map +1 -1
- package/lib/components/DocReferences/DocReferences.js +0 -8
- package/lib/components/DocReferences/DocReferences.js.map +1 -1
- package/lib/components/DocReferences/index.js +0 -1
- package/lib/components/DocReferences/index.js.map +1 -1
- package/lib/components/DocReferences/utils.js +0 -7
- package/lib/components/DocReferences/utils.js.map +1 -1
- package/lib/components/DocSDKs/DocDeclarations.js +0 -6
- package/lib/components/DocSDKs/DocDeclarations.js.map +1 -1
- package/lib/components/DocSDKs/DocSDKs.js +0 -15
- package/lib/components/DocSDKs/DocSDKs.js.map +1 -1
- package/lib/components/DocSDKs/index.js +0 -1
- package/lib/components/DocSDKs/index.js.map +1 -1
- package/lib/components/DocSDKs/utils.js +0 -4
- package/lib/components/DocSDKs/utils.js.map +1 -1
- package/lib/components/DocSchema/DocSchema.js +0 -6
- package/lib/components/DocSchema/DocSchema.js.map +1 -1
- package/lib/components/DocSchema/index.js +0 -1
- package/lib/components/DocSchema/index.js.map +1 -1
- package/lib/components/DocSdkUsage/DocSdkExampleCell.js +0 -6
- package/lib/components/DocSdkUsage/DocSdkExampleCell.js.map +1 -1
- package/lib/components/DocSdkUsage/DocSdkUsage.js +0 -14
- package/lib/components/DocSdkUsage/DocSdkUsage.js.map +1 -1
- package/lib/components/DocSdkUsage/index.js +0 -1
- package/lib/components/DocSdkUsage/index.js.map +1 -1
- package/lib/components/DocSdkUsage/utils.js +2 -11
- package/lib/components/DocSdkUsage/utils.js.map +1 -1
- package/lib/components/DocSource/DocSource.js +0 -11
- package/lib/components/DocSource/DocSource.js.map +1 -1
- package/lib/components/DocSource/index.js +0 -1
- package/lib/components/DocSource/index.js.map +1 -1
- package/lib/components/DocStatus/DocStatus.js +0 -7
- package/lib/components/DocStatus/DocStatus.js.map +1 -1
- package/lib/components/DocStatus/index.js +0 -1
- package/lib/components/DocStatus/index.js.map +1 -1
- package/lib/components/DocTitle/DocTitle.js +1 -7
- package/lib/components/DocTitle/DocTitle.js.map +1 -1
- package/lib/components/DocTitle/index.js +0 -1
- package/lib/components/DocTitle/index.js.map +1 -1
- package/lib/components/DocTypeSummary/DocTypeSummary.js +0 -8
- package/lib/components/DocTypeSummary/DocTypeSummary.js.map +1 -1
- package/lib/components/DocTypeSummary/index.js +0 -1
- package/lib/components/DocTypeSummary/index.js.map +1 -1
- package/lib/components/ErrorBoundary/ErrorBoundary.js +0 -12
- package/lib/components/ErrorBoundary/ErrorBoundary.js.map +1 -1
- package/lib/components/ErrorBoundary/components/SomethingWentWrong/SomethingWentWrong.js +0 -9
- package/lib/components/ErrorBoundary/components/SomethingWentWrong/SomethingWentWrong.js.map +1 -1
- package/lib/components/ErrorBoundary/components/SomethingWentWrong/components/SomethingWentWrongGraphic/SomethingWentWrongGraphic.js +0 -5
- package/lib/components/ErrorBoundary/components/SomethingWentWrong/components/SomethingWentWrongGraphic/SomethingWentWrongGraphic.js.map +1 -1
- package/lib/components/ErrorBoundary/components/SomethingWentWrong/components/SomethingWentWrongGraphic/index.js +0 -1
- package/lib/components/ErrorBoundary/components/SomethingWentWrong/components/SomethingWentWrongGraphic/index.js.map +1 -1
- package/lib/components/ErrorBoundary/components/SomethingWentWrong/components/index.js +0 -1
- package/lib/components/ErrorBoundary/components/SomethingWentWrong/components/index.js.map +1 -1
- package/lib/components/ErrorBoundary/components/SomethingWentWrong/index.js +0 -1
- package/lib/components/ErrorBoundary/components/SomethingWentWrong/index.js.map +1 -1
- package/lib/components/ErrorBoundary/index.js +0 -1
- package/lib/components/ErrorBoundary/index.js.map +1 -1
- package/lib/components/ExploreType/ExploreProperty.js +2 -33
- package/lib/components/ExploreType/ExploreProperty.js.map +1 -1
- package/lib/components/ExploreType/ExploreType.js +1 -13
- package/lib/components/ExploreType/ExploreType.js.map +1 -1
- package/lib/components/ExploreType/exploreUtils.js +1 -44
- package/lib/components/ExploreType/exploreUtils.js.map +1 -1
- package/lib/components/ExploreType/index.js +24 -27
- package/lib/components/ExploreType/index.js.map +1 -1
- package/lib/components/Header/Header.js +1 -12
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/index.js +6 -7
- package/lib/components/Header/index.js.map +1 -1
- package/lib/components/Link/Link.js +1 -5
- package/lib/components/Link/Link.js.map +1 -1
- package/lib/components/Link/index.js +0 -1
- package/lib/components/Link/index.js.map +1 -1
- package/lib/components/SelectorContainer/ApiSpecSelector.js +0 -11
- package/lib/components/SelectorContainer/ApiSpecSelector.js.map +1 -1
- package/lib/components/SelectorContainer/SdkLanguageSelector.js +0 -13
- package/lib/components/SelectorContainer/SdkLanguageSelector.js.map +1 -1
- package/lib/components/SelectorContainer/SelectorContainer.js +5 -19
- package/lib/components/SelectorContainer/SelectorContainer.js.map +1 -1
- package/lib/components/SelectorContainer/index.js +0 -1
- package/lib/components/SelectorContainer/index.js.map +1 -1
- package/lib/components/SelectorContainer/utils.js +0 -4
- package/lib/components/SelectorContainer/utils.js.map +1 -1
- package/lib/components/SideNav/SearchMessage.js +0 -6
- package/lib/components/SideNav/SearchMessage.js.map +1 -1
- package/lib/components/SideNav/SideNav.js +1 -30
- package/lib/components/SideNav/SideNav.js.map +1 -1
- package/lib/components/SideNav/SideNavMethodTags.js +1 -6
- package/lib/components/SideNav/SideNavMethodTags.js.map +1 -1
- package/lib/components/SideNav/SideNavMethods.js +0 -16
- package/lib/components/SideNav/SideNavMethods.js.map +1 -1
- package/lib/components/SideNav/SideNavTypeTags.js +1 -6
- package/lib/components/SideNav/SideNavTypeTags.js.map +1 -1
- package/lib/components/SideNav/SideNavTypes.js +1 -17
- package/lib/components/SideNav/SideNavTypes.js.map +1 -1
- package/lib/components/SideNav/index.js +0 -1
- package/lib/components/SideNav/index.js.map +1 -1
- package/lib/components/SideNav/searchUtils.js +1 -8
- package/lib/components/SideNav/searchUtils.js.map +1 -1
- package/lib/components/common/Loader.js +0 -5
- package/lib/components/common/Loader.js.map +1 -1
- package/lib/components/common/common.js +2 -13
- package/lib/components/common/common.js.map +1 -1
- package/lib/components/common/index.js +0 -4
- package/lib/components/common/index.js.map +1 -1
- package/lib/components/index.js +32 -54
- package/lib/components/index.js.map +1 -1
- package/lib/custom.d.js.map +1 -1
- package/lib/esm/ApiExplorer.js +65 -68
- package/lib/esm/ApiExplorer.js.map +1 -1
- package/lib/esm/App.js +11 -12
- package/lib/esm/App.js.map +1 -1
- package/lib/esm/StandaloneApiExplorer.js +29 -24
- package/lib/esm/StandaloneApiExplorer.js.map +1 -1
- package/lib/esm/components/Banner/Banner.js +17 -15
- package/lib/esm/components/Banner/Banner.js.map +1 -1
- package/lib/esm/components/Banner/index.js +12 -1
- package/lib/esm/components/Banner/index.js.map +1 -1
- package/lib/esm/components/DocActivityType/DocActivityType.js +15 -7
- package/lib/esm/components/DocActivityType/DocActivityType.js.map +1 -1
- package/lib/esm/components/DocActivityType/index.js +12 -1
- package/lib/esm/components/DocActivityType/index.js.map +1 -1
- package/lib/esm/components/DocCode/DocCode.js +17 -9
- package/lib/esm/components/DocCode/DocCode.js.map +1 -1
- package/lib/esm/components/DocCode/index.js +12 -1
- package/lib/esm/components/DocCode/index.js.map +1 -1
- package/lib/esm/components/DocMarkdown/DocMarkdown.js +21 -15
- package/lib/esm/components/DocMarkdown/DocMarkdown.js.map +1 -1
- package/lib/esm/components/DocMarkdown/index.js +12 -1
- package/lib/esm/components/DocMarkdown/index.js.map +1 -1
- package/lib/esm/components/DocMarkdown/utils.js +10 -3
- package/lib/esm/components/DocMarkdown/utils.js.map +1 -1
- package/lib/esm/components/DocMethodSummary/DocMethodSummary.js +23 -15
- package/lib/esm/components/DocMethodSummary/DocMethodSummary.js.map +1 -1
- package/lib/esm/components/DocMethodSummary/DocSummaryStatus.js +15 -7
- package/lib/esm/components/DocMethodSummary/DocSummaryStatus.js.map +1 -1
- package/lib/esm/components/DocMethodSummary/index.js +26 -3
- package/lib/esm/components/DocMethodSummary/index.js.map +1 -1
- package/lib/esm/components/DocMethodSummary/utils.js +28 -32
- package/lib/esm/components/DocMethodSummary/utils.js.map +1 -1
- package/lib/esm/components/DocPseudo/DocParam.js +15 -7
- package/lib/esm/components/DocPseudo/DocParam.js.map +1 -1
- package/lib/esm/components/DocPseudo/DocParams.js +14 -5
- package/lib/esm/components/DocPseudo/DocParams.js.map +1 -1
- package/lib/esm/components/DocPseudo/DocPrimaryResponse.js +13 -5
- package/lib/esm/components/DocPseudo/DocPrimaryResponse.js.map +1 -1
- package/lib/esm/components/DocPseudo/DocPseudo.js +17 -9
- package/lib/esm/components/DocPseudo/DocPseudo.js.map +1 -1
- package/lib/esm/components/DocPseudo/index.js +12 -1
- package/lib/esm/components/DocPseudo/index.js.map +1 -1
- package/lib/esm/components/DocRateLimited/DocRateLimited.js +13 -5
- package/lib/esm/components/DocRateLimited/DocRateLimited.js.map +1 -1
- package/lib/esm/components/DocRateLimited/index.js +12 -1
- package/lib/esm/components/DocRateLimited/index.js.map +1 -1
- package/lib/esm/components/DocReferences/DocReferences.js +18 -10
- package/lib/esm/components/DocReferences/DocReferences.js.map +1 -1
- package/lib/esm/components/DocReferences/index.js +12 -1
- package/lib/esm/components/DocReferences/index.js.map +1 -1
- package/lib/esm/components/DocReferences/utils.js +19 -11
- package/lib/esm/components/DocReferences/utils.js.map +1 -1
- package/lib/esm/components/DocSDKs/DocDeclarations.js +15 -7
- package/lib/esm/components/DocSDKs/DocDeclarations.js.map +1 -1
- package/lib/esm/components/DocSDKs/DocSDKs.js +29 -24
- package/lib/esm/components/DocSDKs/DocSDKs.js.map +1 -1
- package/lib/esm/components/DocSDKs/index.js +12 -1
- package/lib/esm/components/DocSDKs/index.js.map +1 -1
- package/lib/esm/components/DocSDKs/utils.js +11 -3
- package/lib/esm/components/DocSDKs/utils.js.map +1 -1
- package/lib/esm/components/DocSchema/DocSchema.js +15 -7
- package/lib/esm/components/DocSchema/DocSchema.js.map +1 -1
- package/lib/esm/components/DocSchema/index.js +12 -1
- package/lib/esm/components/DocSchema/index.js.map +1 -1
- package/lib/esm/components/DocSdkUsage/DocSdkExampleCell.js +14 -6
- package/lib/esm/components/DocSdkUsage/DocSdkExampleCell.js.map +1 -1
- package/lib/esm/components/DocSdkUsage/DocSdkUsage.js +47 -39
- package/lib/esm/components/DocSdkUsage/DocSdkUsage.js.map +1 -1
- package/lib/esm/components/DocSdkUsage/index.js +12 -1
- package/lib/esm/components/DocSdkUsage/index.js.map +1 -1
- package/lib/esm/components/DocSdkUsage/utils.js +24 -13
- package/lib/esm/components/DocSdkUsage/utils.js.map +1 -1
- package/lib/esm/components/DocSource/DocSource.js +21 -15
- package/lib/esm/components/DocSource/DocSource.js.map +1 -1
- package/lib/esm/components/DocSource/index.js +12 -1
- package/lib/esm/components/DocSource/index.js.map +1 -1
- package/lib/esm/components/DocStatus/DocStatus.js +16 -8
- package/lib/esm/components/DocStatus/DocStatus.js.map +1 -1
- package/lib/esm/components/DocStatus/index.js +12 -1
- package/lib/esm/components/DocStatus/index.js.map +1 -1
- package/lib/esm/components/DocTitle/DocTitle.js +11 -4
- package/lib/esm/components/DocTitle/DocTitle.js.map +1 -1
- package/lib/esm/components/DocTitle/index.js +12 -1
- package/lib/esm/components/DocTitle/index.js.map +1 -1
- package/lib/esm/components/DocTypeSummary/DocTypeSummary.js +18 -12
- package/lib/esm/components/DocTypeSummary/DocTypeSummary.js.map +1 -1
- package/lib/esm/components/DocTypeSummary/index.js +12 -1
- package/lib/esm/components/DocTypeSummary/index.js.map +1 -1
- package/lib/esm/components/ErrorBoundary/ErrorBoundary.js +14 -11
- package/lib/esm/components/ErrorBoundary/ErrorBoundary.js.map +1 -1
- package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/SomethingWentWrong.js +19 -11
- package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/SomethingWentWrong.js.map +1 -1
- package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/components/SomethingWentWrongGraphic/SomethingWentWrongGraphic.js +53 -47
- package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/components/SomethingWentWrongGraphic/SomethingWentWrongGraphic.js.map +1 -1
- package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/components/SomethingWentWrongGraphic/index.js +12 -1
- package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/components/SomethingWentWrongGraphic/index.js.map +1 -1
- package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/components/index.js +12 -1
- package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/components/index.js.map +1 -1
- package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/index.js +12 -1
- package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/index.js.map +1 -1
- package/lib/esm/components/ErrorBoundary/index.js +12 -1
- package/lib/esm/components/ErrorBoundary/index.js.map +1 -1
- package/lib/esm/components/ExploreType/ExploreProperty.js +63 -56
- package/lib/esm/components/ExploreType/ExploreProperty.js.map +1 -1
- package/lib/esm/components/ExploreType/ExploreType.js +32 -23
- package/lib/esm/components/ExploreType/ExploreType.js.map +1 -1
- package/lib/esm/components/ExploreType/exploreUtils.js +51 -57
- package/lib/esm/components/ExploreType/exploreUtils.js.map +1 -1
- package/lib/esm/components/ExploreType/index.js +80 -3
- package/lib/esm/components/ExploreType/index.js.map +1 -1
- package/lib/esm/components/Header/Header.js +31 -20
- package/lib/esm/components/Header/Header.js.map +1 -1
- package/lib/esm/components/Header/index.js +24 -1
- package/lib/esm/components/Header/index.js.map +1 -1
- package/lib/esm/components/Link/Link.js +12 -4
- package/lib/esm/components/Link/Link.js.map +1 -1
- package/lib/esm/components/Link/index.js +12 -1
- package/lib/esm/components/Link/index.js.map +1 -1
- package/lib/esm/components/SelectorContainer/ApiSpecSelector.js +19 -13
- package/lib/esm/components/SelectorContainer/ApiSpecSelector.js.map +1 -1
- package/lib/esm/components/SelectorContainer/SdkLanguageSelector.js +25 -18
- package/lib/esm/components/SelectorContainer/SdkLanguageSelector.js.map +1 -1
- package/lib/esm/components/SelectorContainer/SelectorContainer.js +29 -23
- package/lib/esm/components/SelectorContainer/SelectorContainer.js.map +1 -1
- package/lib/esm/components/SelectorContainer/index.js +12 -1
- package/lib/esm/components/SelectorContainer/index.js.map +1 -1
- package/lib/esm/components/SelectorContainer/utils.js +11 -5
- package/lib/esm/components/SelectorContainer/utils.js.map +1 -1
- package/lib/esm/components/SideNav/SearchMessage.js +16 -8
- package/lib/esm/components/SideNav/SearchMessage.js.map +1 -1
- package/lib/esm/components/SideNav/SideNav.js +50 -53
- package/lib/esm/components/SideNav/SideNav.js.map +1 -1
- package/lib/esm/components/SideNav/SideNavMethodTags.js +15 -7
- package/lib/esm/components/SideNav/SideNavMethodTags.js.map +1 -1
- package/lib/esm/components/SideNav/SideNavMethods.js +32 -26
- package/lib/esm/components/SideNav/SideNavMethods.js.map +1 -1
- package/lib/esm/components/SideNav/SideNavTypeTags.js +15 -7
- package/lib/esm/components/SideNav/SideNavTypeTags.js.map +1 -1
- package/lib/esm/components/SideNav/SideNavTypes.js +33 -27
- package/lib/esm/components/SideNav/SideNavTypes.js.map +1 -1
- package/lib/esm/components/SideNav/index.js +12 -1
- package/lib/esm/components/SideNav/index.js.map +1 -1
- package/lib/esm/components/SideNav/searchUtils.js +15 -6
- package/lib/esm/components/SideNav/searchUtils.js.map +1 -1
- package/lib/esm/components/common/Loader.js +16 -8
- package/lib/esm/components/common/Loader.js.map +1 -1
- package/lib/esm/components/common/common.js +21 -13
- package/lib/esm/components/common/common.js.map +1 -1
- package/lib/esm/components/common/index.js +27 -2
- package/lib/esm/components/common/index.js.map +1 -1
- package/lib/esm/components/index.js +183 -22
- package/lib/esm/components/index.js.map +1 -1
- package/lib/esm/index.js +60 -5
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/routes/AppRouter.js +30 -22
- package/lib/esm/routes/AppRouter.js.map +1 -1
- package/lib/esm/routes/index.js +12 -1
- package/lib/esm/routes/index.js.map +1 -1
- package/lib/esm/scenes/DiffScene/DiffScene.js +52 -51
- package/lib/esm/scenes/DiffScene/DiffScene.js.map +1 -1
- package/lib/esm/scenes/DiffScene/DocDiff/DiffBanner.js +18 -10
- package/lib/esm/scenes/DiffScene/DocDiff/DiffBanner.js.map +1 -1
- package/lib/esm/scenes/DiffScene/DocDiff/DiffItem.js +44 -35
- package/lib/esm/scenes/DiffScene/DocDiff/DiffItem.js.map +1 -1
- package/lib/esm/scenes/DiffScene/DocDiff/DiffLegend.js +26 -18
- package/lib/esm/scenes/DiffScene/DocDiff/DiffLegend.js.map +1 -1
- package/lib/esm/scenes/DiffScene/DocDiff/DocDiff.js +20 -11
- package/lib/esm/scenes/DiffScene/DocDiff/DocDiff.js.map +1 -1
- package/lib/esm/scenes/DiffScene/DocDiff/docDiffUtils.js +13 -11
- package/lib/esm/scenes/DiffScene/DocDiff/docDiffUtils.js.map +1 -1
- package/lib/esm/scenes/DiffScene/DocDiff/index.js +12 -1
- package/lib/esm/scenes/DiffScene/DocDiff/index.js.map +1 -1
- package/lib/esm/scenes/DiffScene/diffUtils.js +19 -14
- package/lib/esm/scenes/DiffScene/diffUtils.js.map +1 -1
- package/lib/esm/scenes/DiffScene/index.js +12 -1
- package/lib/esm/scenes/DiffScene/index.js.map +1 -1
- package/lib/esm/scenes/ErrorDetailScene/ErrorDetailScene.js +19 -11
- package/lib/esm/scenes/ErrorDetailScene/ErrorDetailScene.js.map +1 -1
- package/lib/esm/scenes/ErrorDetailScene/index.js +12 -1
- package/lib/esm/scenes/ErrorDetailScene/index.js.map +1 -1
- package/lib/esm/scenes/HomeScene/HomeScene.js +20 -6
- package/lib/esm/scenes/HomeScene/HomeScene.js.map +1 -1
- package/lib/esm/scenes/HomeScene/index.js +12 -1
- package/lib/esm/scenes/HomeScene/index.js.map +1 -1
- package/lib/esm/scenes/MethodScene/MethodScene.js +56 -57
- package/lib/esm/scenes/MethodScene/MethodScene.js.map +1 -1
- package/lib/esm/scenes/MethodScene/components/DocOperation.js +20 -12
- package/lib/esm/scenes/MethodScene/components/DocOperation.js.map +1 -1
- package/lib/esm/scenes/MethodScene/components/DocRequestBody.js +15 -7
- package/lib/esm/scenes/MethodScene/components/DocRequestBody.js.map +1 -1
- package/lib/esm/scenes/MethodScene/components/DocResponses/DocResponseTypes.js +20 -11
- package/lib/esm/scenes/MethodScene/components/DocResponses/DocResponseTypes.js.map +1 -1
- package/lib/esm/scenes/MethodScene/components/DocResponses/DocResponses.js +28 -26
- package/lib/esm/scenes/MethodScene/components/DocResponses/DocResponses.js.map +1 -1
- package/lib/esm/scenes/MethodScene/components/DocResponses/index.js +12 -1
- package/lib/esm/scenes/MethodScene/components/DocResponses/index.js.map +1 -1
- package/lib/esm/scenes/MethodScene/components/DocResponses/utils.js +8 -1
- package/lib/esm/scenes/MethodScene/components/DocResponses/utils.js.map +1 -1
- package/lib/esm/scenes/MethodScene/components/index.js +26 -3
- package/lib/esm/scenes/MethodScene/components/index.js.map +1 -1
- package/lib/esm/scenes/MethodScene/index.js +12 -1
- package/lib/esm/scenes/MethodScene/index.js.map +1 -1
- package/lib/esm/scenes/MethodTagScene/MethodTagScene.js +40 -35
- package/lib/esm/scenes/MethodTagScene/MethodTagScene.js.map +1 -1
- package/lib/esm/scenes/MethodTagScene/index.js +12 -1
- package/lib/esm/scenes/MethodTagScene/index.js.map +1 -1
- package/lib/esm/scenes/MethodTagScene/utils.js +8 -1
- package/lib/esm/scenes/MethodTagScene/utils.js.map +1 -1
- package/lib/esm/scenes/TypeScene/TypeScene.js +29 -20
- package/lib/esm/scenes/TypeScene/TypeScene.js.map +1 -1
- package/lib/esm/scenes/TypeScene/index.js +12 -1
- package/lib/esm/scenes/TypeScene/index.js.map +1 -1
- package/lib/esm/scenes/TypeTagScene/TypeTagScene.js +39 -34
- package/lib/esm/scenes/TypeTagScene/TypeTagScene.js.map +1 -1
- package/lib/esm/scenes/TypeTagScene/index.js +12 -1
- package/lib/esm/scenes/TypeTagScene/index.js.map +1 -1
- package/lib/esm/scenes/TypeTagScene/utils.js +8 -1
- package/lib/esm/scenes/TypeTagScene/utils.js.map +1 -1
- package/lib/esm/scenes/index.js +47 -6
- package/lib/esm/scenes/index.js.map +1 -1
- package/lib/esm/scenes/utils/hooks/index.js +12 -1
- package/lib/esm/scenes/utils/hooks/index.js.map +1 -1
- package/lib/esm/scenes/utils/hooks/tagStoreSync.js +21 -15
- package/lib/esm/scenes/utils/hooks/tagStoreSync.js.map +1 -1
- package/lib/esm/scenes/utils/index.js +12 -1
- package/lib/esm/scenes/utils/index.js.map +1 -1
- package/lib/esm/state/index.js +49 -4
- package/lib/esm/state/index.js.map +1 -1
- package/lib/esm/state/lodes/index.js +27 -2
- package/lib/esm/state/lodes/index.js.map +1 -1
- package/lib/esm/state/lodes/sagas.js +15 -12
- package/lib/esm/state/lodes/sagas.js.map +1 -1
- package/lib/esm/state/lodes/selectors.js +10 -3
- package/lib/esm/state/lodes/selectors.js.map +1 -1
- package/lib/esm/state/lodes/slice.js +19 -11
- package/lib/esm/state/lodes/slice.js.map +1 -1
- package/lib/esm/state/settings/index.js +27 -2
- package/lib/esm/state/settings/index.js.map +1 -1
- package/lib/esm/state/settings/sagas.js +29 -32
- package/lib/esm/state/settings/sagas.js.map +1 -1
- package/lib/esm/state/settings/selectors.js +16 -6
- package/lib/esm/state/settings/selectors.js.map +1 -1
- package/lib/esm/state/settings/slice.js +27 -22
- package/lib/esm/state/settings/slice.js.map +1 -1
- package/lib/esm/state/specs/index.js +27 -2
- package/lib/esm/state/specs/index.js.map +1 -1
- package/lib/esm/state/specs/sagas.js +24 -25
- package/lib/esm/state/specs/sagas.js.map +1 -1
- package/lib/esm/state/specs/selectors.js +10 -3
- package/lib/esm/state/specs/selectors.js.map +1 -1
- package/lib/esm/state/specs/slice.js +19 -14
- package/lib/esm/state/specs/slice.js.map +1 -1
- package/lib/esm/state/store.js +25 -26
- package/lib/esm/state/store.js.map +1 -1
- package/lib/esm/test-data/declarations.js +24 -0
- package/lib/esm/test-data/declarations.js.map +1 -0
- package/lib/esm/test-data/examples.js +376 -0
- package/lib/esm/test-data/examples.js.map +1 -0
- package/lib/esm/test-data/index.js +52 -0
- package/lib/esm/test-data/index.js.map +1 -0
- package/lib/esm/test-data/sdkLanguages.js +19 -0
- package/lib/esm/test-data/sdkLanguages.js.map +1 -0
- package/lib/esm/test-data/specs.js +48 -0
- package/lib/esm/test-data/specs.js.map +1 -0
- package/lib/esm/test-utils/index.js +38 -3
- package/lib/esm/test-utils/index.js.map +1 -1
- package/lib/esm/test-utils/lodes.js +12 -5
- package/lib/esm/test-utils/lodes.js.map +1 -1
- package/lib/esm/test-utils/redux.js +41 -30
- package/lib/esm/test-utils/redux.js.map +1 -1
- package/lib/esm/test-utils/router.js +15 -6
- package/lib/esm/test-utils/router.js.map +1 -1
- package/lib/esm/utils/adaptorUtils.js +26 -33
- package/lib/esm/utils/adaptorUtils.js.map +1 -1
- package/lib/esm/utils/apixAdaptor.js +22 -22
- package/lib/esm/utils/apixAdaptor.js.map +1 -1
- package/lib/esm/utils/highlight.js +11 -6
- package/lib/esm/utils/highlight.js.map +1 -1
- package/lib/esm/utils/hooks/globalStoreSync.js +22 -18
- package/lib/esm/utils/hooks/globalStoreSync.js.map +1 -1
- package/lib/esm/utils/hooks/index.js +26 -3
- package/lib/esm/utils/hooks/index.js.map +1 -1
- package/lib/esm/utils/hooks/navigation.js +10 -13
- package/lib/esm/utils/hooks/navigation.js.map +1 -1
- package/lib/esm/utils/hooks/useQuery.js +12 -5
- package/lib/esm/utils/hooks/useQuery.js.map +1 -1
- package/lib/esm/utils/index.js +101 -8
- package/lib/esm/utils/index.js.map +1 -1
- package/lib/esm/utils/lodeUtils.js +10 -15
- package/lib/esm/utils/lodeUtils.js.map +1 -1
- package/lib/esm/utils/path.js +35 -31
- package/lib/esm/utils/path.js.map +1 -1
- package/lib/esm/utils/sdkLanguage.js +18 -12
- package/lib/esm/utils/sdkLanguage.js.map +1 -1
- package/lib/esm/utils/useWindowSize.js +10 -5
- package/lib/esm/utils/useWindowSize.js.map +1 -1
- package/lib/index.js +0 -10
- package/lib/index.js.map +1 -1
- package/lib/routes/AppRouter.js +0 -8
- package/lib/routes/AppRouter.js.map +1 -1
- package/lib/routes/index.js +0 -1
- package/lib/routes/index.js.map +1 -1
- package/lib/scenes/DiffScene/DiffScene.js +0 -22
- package/lib/scenes/DiffScene/DiffScene.js.map +1 -1
- package/lib/scenes/DiffScene/DocDiff/DiffBanner.js +1 -7
- package/lib/scenes/DiffScene/DocDiff/DiffBanner.js.map +1 -1
- package/lib/scenes/DiffScene/DocDiff/DiffItem.js +1 -20
- package/lib/scenes/DiffScene/DocDiff/DiffItem.js.map +1 -1
- package/lib/scenes/DiffScene/DocDiff/DiffLegend.js +0 -8
- package/lib/scenes/DiffScene/DocDiff/DiffLegend.js.map +1 -1
- package/lib/scenes/DiffScene/DocDiff/DocDiff.js +0 -7
- package/lib/scenes/DiffScene/DocDiff/DocDiff.js.map +1 -1
- package/lib/scenes/DiffScene/DocDiff/docDiffUtils.js +0 -11
- package/lib/scenes/DiffScene/DocDiff/docDiffUtils.js.map +1 -1
- package/lib/scenes/DiffScene/DocDiff/index.js +0 -1
- package/lib/scenes/DiffScene/DocDiff/index.js.map +1 -1
- package/lib/scenes/DiffScene/diffUtils.js +1 -14
- package/lib/scenes/DiffScene/diffUtils.js.map +1 -1
- package/lib/scenes/DiffScene/index.js +0 -1
- package/lib/scenes/DiffScene/index.js.map +1 -1
- package/lib/scenes/ErrorDetailScene/ErrorDetailScene.js +0 -8
- package/lib/scenes/ErrorDetailScene/ErrorDetailScene.js.map +1 -1
- package/lib/scenes/ErrorDetailScene/index.js +0 -1
- package/lib/scenes/ErrorDetailScene/index.js.map +1 -1
- package/lib/scenes/HomeScene/HomeScene.js +8 -8
- package/lib/scenes/HomeScene/HomeScene.js.map +1 -1
- package/lib/scenes/HomeScene/index.js +0 -1
- package/lib/scenes/HomeScene/index.js.map +1 -1
- package/lib/scenes/MethodScene/MethodScene.js +0 -26
- package/lib/scenes/MethodScene/MethodScene.js.map +1 -1
- package/lib/scenes/MethodScene/components/DocOperation.js +0 -7
- package/lib/scenes/MethodScene/components/DocOperation.js.map +1 -1
- package/lib/scenes/MethodScene/components/DocRequestBody.js +0 -6
- package/lib/scenes/MethodScene/components/DocRequestBody.js.map +1 -1
- package/lib/scenes/MethodScene/components/DocResponses/DocResponseTypes.js +0 -7
- package/lib/scenes/MethodScene/components/DocResponses/DocResponseTypes.js.map +1 -1
- package/lib/scenes/MethodScene/components/DocResponses/DocResponses.js +0 -18
- package/lib/scenes/MethodScene/components/DocResponses/DocResponses.js.map +1 -1
- package/lib/scenes/MethodScene/components/DocResponses/index.js +0 -1
- package/lib/scenes/MethodScene/components/DocResponses/index.js.map +1 -1
- package/lib/scenes/MethodScene/components/DocResponses/utils.js +0 -2
- package/lib/scenes/MethodScene/components/DocResponses/utils.js.map +1 -1
- package/lib/scenes/MethodScene/components/index.js +0 -3
- package/lib/scenes/MethodScene/components/index.js.map +1 -1
- package/lib/scenes/MethodScene/index.js +0 -1
- package/lib/scenes/MethodScene/index.js.map +1 -1
- package/lib/scenes/MethodTagScene/MethodTagScene.js +0 -17
- package/lib/scenes/MethodTagScene/MethodTagScene.js.map +1 -1
- package/lib/scenes/MethodTagScene/index.js +0 -1
- package/lib/scenes/MethodTagScene/index.js.map +1 -1
- package/lib/scenes/MethodTagScene/utils.js +0 -2
- package/lib/scenes/MethodTagScene/utils.js.map +1 -1
- package/lib/scenes/TypeScene/TypeScene.js +0 -10
- package/lib/scenes/TypeScene/TypeScene.js.map +1 -1
- package/lib/scenes/TypeScene/index.js +0 -1
- package/lib/scenes/TypeScene/index.js.map +1 -1
- package/lib/scenes/TypeTagScene/TypeTagScene.js +0 -17
- package/lib/scenes/TypeTagScene/TypeTagScene.js.map +1 -1
- package/lib/scenes/TypeTagScene/index.js +0 -1
- package/lib/scenes/TypeTagScene/index.js.map +1 -1
- package/lib/scenes/TypeTagScene/utils.js +0 -2
- package/lib/scenes/TypeTagScene/utils.js.map +1 -1
- package/lib/scenes/index.js +4 -10
- package/lib/scenes/index.js.map +1 -1
- package/lib/scenes/utils/hooks/index.js +0 -1
- package/lib/scenes/utils/hooks/index.js.map +1 -1
- package/lib/scenes/utils/hooks/tagStoreSync.js +0 -8
- package/lib/scenes/utils/hooks/tagStoreSync.js.map +1 -1
- package/lib/scenes/utils/index.js +0 -1
- package/lib/scenes/utils/index.js.map +1 -1
- package/lib/state/index.js +0 -8
- package/lib/state/index.js.map +1 -1
- package/lib/state/lodes/index.js +0 -4
- package/lib/state/lodes/index.js.map +1 -1
- package/lib/state/lodes/sagas.js +0 -6
- package/lib/state/lodes/sagas.js.map +1 -1
- package/lib/state/lodes/selectors.js +1 -6
- package/lib/state/lodes/selectors.js.map +1 -1
- package/lib/state/lodes/slice.d.ts +2 -2
- package/lib/state/lodes/slice.js +1 -8
- package/lib/state/lodes/slice.js.map +1 -1
- package/lib/state/settings/index.js +0 -4
- package/lib/state/settings/index.js.map +1 -1
- package/lib/state/settings/sagas.js +5 -18
- package/lib/state/settings/sagas.js.map +1 -1
- package/lib/state/settings/selectors.d.ts +1 -1
- package/lib/state/settings/selectors.js +1 -12
- package/lib/state/settings/selectors.js.map +1 -1
- package/lib/state/settings/slice.d.ts +3 -3
- package/lib/state/settings/slice.js +6 -20
- package/lib/state/settings/slice.js.map +1 -1
- package/lib/state/specs/index.js +0 -4
- package/lib/state/specs/index.js.map +1 -1
- package/lib/state/specs/sagas.js +0 -10
- package/lib/state/specs/sagas.js.map +1 -1
- package/lib/state/specs/selectors.js +1 -6
- package/lib/state/specs/selectors.js.map +1 -1
- package/lib/state/specs/slice.d.ts +2 -2
- package/lib/state/specs/slice.js +1 -11
- package/lib/state/specs/slice.js.map +1 -1
- package/lib/state/store.js +5 -20
- package/lib/state/store.js.map +1 -1
- package/lib/test-data/declarations.js.map +1 -1
- package/lib/test-data/examples.js.map +1 -1
- package/lib/test-data/index.js +0 -7
- package/lib/test-data/index.js.map +1 -1
- package/lib/test-data/sdkLanguages.js +1 -1
- package/lib/test-data/sdkLanguages.js.map +1 -1
- package/lib/test-data/specs.js +6 -19
- package/lib/test-data/specs.js.map +1 -1
- package/lib/test-utils/index.js +0 -6
- package/lib/test-utils/index.js.map +1 -1
- package/lib/test-utils/lodes.d.ts +1 -1
- package/lib/test-utils/lodes.js +0 -4
- package/lib/test-utils/lodes.js.map +1 -1
- package/lib/test-utils/redux.d.ts +2 -2
- package/lib/test-utils/redux.js +6 -25
- package/lib/test-utils/redux.js.map +1 -1
- package/lib/test-utils/router.d.ts +1 -1
- package/lib/test-utils/router.js +1 -9
- package/lib/test-utils/router.js.map +1 -1
- package/lib/utils/adaptorUtils.js +1 -31
- package/lib/utils/adaptorUtils.js.map +1 -1
- package/lib/utils/apixAdaptor.js +1 -20
- package/lib/utils/apixAdaptor.js.map +1 -1
- package/lib/utils/highlight.js +0 -7
- package/lib/utils/highlight.js.map +1 -1
- package/lib/utils/hooks/globalStoreSync.js +0 -10
- package/lib/utils/hooks/globalStoreSync.js.map +1 -1
- package/lib/utils/hooks/index.js +4 -7
- package/lib/utils/hooks/index.js.map +1 -1
- package/lib/utils/hooks/navigation.js +0 -14
- package/lib/utils/hooks/navigation.js.map +1 -1
- package/lib/utils/hooks/useQuery.js +0 -4
- package/lib/utils/hooks/useQuery.js.map +1 -1
- package/lib/utils/index.js +10 -22
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/lodeUtils.js +0 -15
- package/lib/utils/lodeUtils.js.map +1 -1
- package/lib/utils/path.js +5 -33
- package/lib/utils/path.js.map +1 -1
- package/lib/utils/sdkLanguage.js +5 -16
- package/lib/utils/sdkLanguage.js.map +1 -1
- package/lib/utils/useWindowSize.js +0 -3
- package/lib/utils/useWindowSize.js.map +1 -1
- package/package.json +27 -26
- package/src/ApiExplorer.tsx +2 -2
- package/src/components/ErrorBoundary/components/SomethingWentWrong/components/SomethingWentWrongGraphic/SomethingWentWrongGraphic.tsx +169 -168
- package/src/components/SelectorContainer/ApiSpecSelector.spec.tsx +4 -2
- package/src/components/SelectorContainer/SdkLanguageSelector.spec.tsx +1 -1
- package/src/components/SideNav/SideNav.spec.tsx +2 -2
- package/src/components/SideNav/SideNavMethods.spec.tsx +1 -1
- package/src/components/SideNav/SideNavTypes.spec.tsx +1 -1
- package/src/scenes/DiffScene/DocDiff/DiffBanner.tsx +1 -1
- package/src/scenes/HomeScene/HomeScene.tsx +10 -1
- package/src/scenes/MethodScene/components/DocResponses/DocResponses.spec.tsx +2 -2
- package/src/scenes/utils/hooks/tagStoreSync.spec.ts +4 -2
- package/src/state/store.ts +2 -2
- package/src/utils/hooks/globalStoreSync.spec.tsx +5 -3
- package/webpack.dev.config.js +6 -2
- package/dist/bundle.js +0 -3
- package/dist/bundle.js.LICENSE.txt +0 -115
- package/dist/bundle.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"MethodTagScene.js","names":["MethodTagScene","api","specKey","methodTag","useParams","location","useLocation","history","useHistory","methods","tags","navigate","buildPathWithGlobalParams","navigateWithGlobalParams","useNavigation","selectedTagFilter","useSelector","selectTagFilter","setTagFilterAction","useSettingActions","tagFilter","setTagFilter","useState","useTagStoreSync","handleChange","filter","pathname","t","toLowerCase","useEffect","searchParams","URLSearchParams","search","verbParam","get","isValidFilter","toUpperCase","tag","Object","values","spec","find","name","operations","getOperations","description","map","op","method","index","httpMethod","buildMethodPath"],"sources":["../../../src/scenes/MethodTagScene/MethodTagScene.tsx"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport type { FC } from 'react'\nimport React, { useEffect, useState } from 'react'\nimport { useHistory, useLocation, useParams } from 'react-router-dom'\nimport { Grid, ButtonToggle, ButtonItem } from '@looker/components'\nimport type { ApiModel } from '@looker/sdk-codegen'\nimport { useSelector } from 'react-redux'\nimport { ApixSection, DocTitle, DocMethodSummary, Link } from '../../components'\nimport { buildMethodPath, isValidFilter, useNavigation } from '../../utils'\nimport { selectTagFilter, useSettingActions } from '../../state'\nimport { useTagStoreSync } from '../utils'\nimport { getOperations } from './utils'\n\ninterface MethodTagSceneProps {\n api: ApiModel\n}\n\ninterface MethodTagSceneParams {\n specKey: string\n methodTag: string\n}\n\nexport const MethodTagScene: FC<MethodTagSceneProps> = ({ api }) => {\n const { specKey, methodTag } = useParams<MethodTagSceneParams>()\n const location = useLocation()\n const history = useHistory()\n const methods = api.tags[methodTag]\n const { navigate, buildPathWithGlobalParams, navigateWithGlobalParams } =\n useNavigation()\n const selectedTagFilter = useSelector(selectTagFilter)\n const { setTagFilterAction } = useSettingActions()\n const [tagFilter, setTagFilter] = useState(selectedTagFilter)\n useTagStoreSync()\n\n const handleChange = (filter: string) => {\n navigate(location.pathname, {\n t: filter === 'ALL' ? null : filter.toLowerCase(),\n })\n }\n\n useEffect(() => {\n const searchParams = new URLSearchParams(location.search)\n let verbParam = searchParams.get('t') || 'ALL'\n verbParam = isValidFilter(location.pathname, verbParam)\n ? verbParam.toUpperCase()\n : 'ALL'\n setTagFilterAction({\n tagFilter: verbParam,\n })\n }, [location.search])\n\n useEffect(() => {\n setTagFilter(selectedTagFilter)\n }, [selectedTagFilter])\n\n useEffect(() => {\n if (!methods) {\n navigateWithGlobalParams(`/${specKey}/methods`)\n }\n }, [history, methods])\n if (!methods) {\n return <></>\n }\n const tag = Object.values(api.spec.tags!).find(\n (tag) => tag.name === methodTag\n )!\n const operations = getOperations(methods)\n\n return (\n <ApixSection>\n <DocTitle>{`${tag.name}: ${tag.description}`}</DocTitle>\n <ButtonToggle\n mb=\"small\"\n mt=\"xlarge\"\n value={tagFilter}\n onChange={handleChange}\n >\n <ButtonItem key=\"ALL\" px=\"large\" py=\"xsmall\">\n ALL\n </ButtonItem>\n {operations.map((op) => (\n <ButtonItem key={op} px=\"large\" py=\"xsmall\">\n {op}\n </ButtonItem>\n ))}\n </ButtonToggle>\n {Object.values(methods).map(\n (method, index) =>\n (selectedTagFilter === 'ALL' ||\n selectedTagFilter === method.httpMethod) && (\n <Link\n key={index}\n to={buildPathWithGlobalParams(\n buildMethodPath(specKey, tag.name, method.name)\n )}\n >\n <Grid columns={1} py=\"xsmall\">\n <DocMethodSummary key={index} method={method} />\n </Grid>\n </Link>\n )\n )}\n </ApixSection>\n )\n}\n"],"mappings":";;;;;;AA0BA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAAuC;AAAA;AAWhC,IAAMA,cAAuC,GAAG,QAAa;EAAA,IAAZ;IAAEC;EAAI,CAAC;EAC7D,IAAM;IAAEC,OAAO;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ACjD,OAAO,EAAEmC,GAAG,CAACK,IAAI,EAAEM,MAAM,CAACN,IAAI,CAAC;EAC/C,GAEF,6BAAC,gBAAI;IAAC,OAAO,EAAE,CAAE;IAAC,EAAE,EAAC;EAAQ,GAC3B,6BAAC,6BAAgB;IAAC,GAAG,EAAEO,KAAM;IAAC,MAAM,EAAED;EAAO,EAAG,CAC3C,CAEV,CACJ,CACW;AAElB,CAAC;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/scenes/MethodTagScene/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport { MethodTagScene } from './MethodTagScene'\n"],"mappings":";;;;;;;;;;;AAyBA"}
|
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getOperations = void 0;
|
|
7
|
-
|
|
8
7
|
var getOperations = methods => {
|
|
9
8
|
var operationsSet = new Set();
|
|
10
9
|
Object.values(methods).forEach(method => {
|
|
@@ -12,6 +11,5 @@ var getOperations = methods => {
|
|
|
12
11
|
});
|
|
13
12
|
return Array.from(operationsSet.values());
|
|
14
13
|
};
|
|
15
|
-
|
|
16
14
|
exports.getOperations = getOperations;
|
|
17
15
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"utils.js","names":["getOperations","methods","operationsSet","Set","Object","values","forEach","method","add","httpMethod","Array","from"],"sources":["../../../src/scenes/MethodTagScene/utils.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport type { MethodList } from '@looker/sdk-codegen'\n\n/**\n * Given a list of methods it returns a list of distinct operations\n * @param methods A list of methods\n */\nexport const getOperations = (methods: MethodList) => {\n const operationsSet = new Set<string>()\n Object.values(methods).forEach((method) => {\n operationsSet.add(method.httpMethod)\n })\n return Array.from(operationsSet.values())\n}\n"],"mappings":";;;;;;AA+BO,IAAMA,aAAa,GAAIC,OAAmB,IAAK;EACpD,IAAMC,aAAa,GAAG,IAAIC,GAAG,EAAU;EACvCC,MAAM,CAACC,MAAM,CAACJ,OAAO,CAAC,CAACK,OAAO,CAAEC,MAAM,IAAK;IACzCL,aAAa,CAACM,GAAG,CAACD,MAAM,CAACE,UAAU,CAAC;EACtC,CAAC,CAAC;EACF,OAAOC,KAAK,CAACC,IAAI,CAACT,aAAa,CAACG,MAAM,EAAE,CAAC;AAC3C,CAAC;AAAA"}
|
|
@@ -4,23 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.TypeScene = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
|
|
10
8
|
var _sdkCodegen = require("@looker/sdk-codegen");
|
|
11
|
-
|
|
12
9
|
var _reactRouterDom = require("react-router-dom");
|
|
13
|
-
|
|
14
10
|
var _components = require("@looker/components");
|
|
15
|
-
|
|
16
11
|
var _components2 = require("../../components");
|
|
17
|
-
|
|
18
12
|
var _utils = require("../../utils");
|
|
19
|
-
|
|
20
13
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
|
-
|
|
22
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
|
-
|
|
24
15
|
var TypeScene = _ref => {
|
|
25
16
|
var {
|
|
26
17
|
api
|
|
@@ -64,6 +55,5 @@ var TypeScene = _ref => {
|
|
|
64
55
|
object: type.schema
|
|
65
56
|
})));
|
|
66
57
|
};
|
|
67
|
-
|
|
68
58
|
exports.TypeScene = TypeScene;
|
|
69
59
|
//# sourceMappingURL=TypeScene.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"TypeScene.js","names":["TypeScene","api","specKey","typeTag","typeName","useParams","type","types","history","useHistory","navigate","useNavigation","typesUsed","typeRefs","customTypes","methodsUsedBy","methodRefs","typesUsedBy","parentTypes","useEffect","route","typeTags","name","schema"],"sources":["../../../src/scenes/TypeScene/TypeScene.tsx"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport type { FC } from 'react'\nimport React, { useEffect } from 'react'\nimport type { ApiModel } from '@looker/sdk-codegen'\nimport { typeRefs, methodRefs } from '@looker/sdk-codegen'\nimport { useHistory, useParams } from 'react-router-dom'\nimport { Space, Box } from '@looker/components'\n\nimport {\n ApixSection,\n DocReferences,\n DocSDKs,\n DocSource,\n DocTitle,\n ExploreType,\n DocSchema,\n} from '../../components'\nimport { useNavigation } from '../../utils'\n\ninterface DocTypeProps {\n api: ApiModel\n}\n\ninterface DocTypeParams {\n specKey: string\n typeTag: string\n typeName: string\n}\n\nexport const TypeScene: FC<DocTypeProps> = ({ api }) => {\n const { specKey, typeTag, typeName } = useParams<DocTypeParams>()\n const type = api.types[typeName]\n const history = useHistory()\n const { navigate } = useNavigation()\n const typesUsed = typeRefs(api, type?.customTypes)\n const methodsUsedBy = methodRefs(api, type?.methodRefs)\n const typesUsedBy = typeRefs(api, type?.parentTypes)\n useEffect(() => {\n if (!type) {\n const route = api.typeTags[typeTag]\n ? `/${specKey}/types/${typeTag}`\n : `/${specKey}/types`\n navigate(route)\n }\n }, [history, specKey, type])\n\n return (\n <>\n {type && (\n <ApixSection>\n <Space>\n <DocTitle>{type.name}</DocTitle>\n <DocSource type={type} />\n </Space>\n <Box pb=\"xlarge\">\n <ExploreType api={api} type={type} />\n </Box>\n <DocReferences\n typesUsed={typesUsed}\n typesUsedBy={typesUsedBy}\n methodsUsedBy={methodsUsedBy}\n api={api}\n specKey={specKey}\n />\n <DocSDKs type={type} api={api} />\n <DocSchema object={type.schema} />\n </ApixSection>\n )}\n </>\n )\n}\n"],"mappings":";;;;;;AA2BA;AAEA;AACA;AACA;AAEA;AASA;AAA2C;AAAA;AAYpC,IAAMA,SAA2B,GAAG,QAAa;EAA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IACZ,SAAS,EAAEM,SAAU;IACrB,WAAW,EAAEK,WAAY;IACzB,aAAa,EAAEF,aAAc;IAC7B,GAAG,EAAEd,GAAI;IACT,OAAO,EAAEC;EAAQ,EACjB,EACF,6BAAC,oBAAO;IAAC,IAAI,EAAEI,IAAK;IAAC,GAAG,EAAEL;EAAI,EAAG,EACjC,6BAAC,sBAAS;IAAC,MAAM,EAAEK,IAAI,CAACiB;EAAO,EAAG,CAErC,CACA;AAEP,CAAC;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/scenes/TypeScene/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport { TypeScene } from './TypeScene'\n"],"mappings":";;;;;;;;;;;AAyBA"}
|
|
@@ -4,29 +4,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.TypeTagScene = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
|
|
10
8
|
var _components = require("@looker/components");
|
|
11
|
-
|
|
12
9
|
var _reactRouterDom = require("react-router-dom");
|
|
13
|
-
|
|
14
10
|
var _reactRedux = require("react-redux");
|
|
15
|
-
|
|
16
11
|
var _components2 = require("../../components");
|
|
17
|
-
|
|
18
12
|
var _utils = require("../../utils");
|
|
19
|
-
|
|
20
13
|
var _state = require("../../state");
|
|
21
|
-
|
|
22
14
|
var _utils2 = require("../utils");
|
|
23
|
-
|
|
24
15
|
var _utils3 = require("./utils");
|
|
25
|
-
|
|
26
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
27
|
-
|
|
28
17
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
|
-
|
|
30
18
|
var TypeTagScene = _ref => {
|
|
31
19
|
var {
|
|
32
20
|
api
|
|
@@ -47,13 +35,11 @@ var TypeTagScene = _ref => {
|
|
|
47
35
|
} = (0, _state.useSettingActions)();
|
|
48
36
|
var [tagFilter, setTagFilter] = (0, _react.useState)(selectedTagFilter);
|
|
49
37
|
(0, _utils2.useTagStoreSync)();
|
|
50
|
-
|
|
51
38
|
var handleChange = filter => {
|
|
52
39
|
navigate(location.pathname, {
|
|
53
40
|
t: filter === 'ALL' ? null : filter.toLowerCase()
|
|
54
41
|
});
|
|
55
42
|
};
|
|
56
|
-
|
|
57
43
|
(0, _react.useEffect)(() => {
|
|
58
44
|
var searchParams = new URLSearchParams(location.search);
|
|
59
45
|
var verbParam = searchParams.get('t') || 'ALL';
|
|
@@ -71,11 +57,9 @@ var TypeTagScene = _ref => {
|
|
|
71
57
|
(0, _react.useEffect)(() => {
|
|
72
58
|
setTagFilter(selectedTagFilter);
|
|
73
59
|
}, [selectedTagFilter]);
|
|
74
|
-
|
|
75
60
|
if (!types) {
|
|
76
61
|
return _react.default.createElement(_react.default.Fragment, null);
|
|
77
62
|
}
|
|
78
|
-
|
|
79
63
|
var tag = Object.values(api.spec.tags).find(tag => tag.name === typeTag);
|
|
80
64
|
var metaTypes = (0, _utils3.getMetaTypes)(types);
|
|
81
65
|
return _react.default.createElement(_components2.ApixSection, null, _react.default.createElement(_components2.DocTitle, null, "".concat(tag.name, ": ").concat(tag.description)), _react.default.createElement(_components.ButtonToggle, {
|
|
@@ -102,6 +86,5 @@ var TypeTagScene = _ref => {
|
|
|
102
86
|
type: type
|
|
103
87
|
})))));
|
|
104
88
|
};
|
|
105
|
-
|
|
106
89
|
exports.TypeTagScene = TypeTagScene;
|
|
107
90
|
//# sourceMappingURL=TypeTagScene.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"TypeTagScene.js","names":["TypeTagScene","api","specKey","typeTag","useParams","location","useLocation","navigate","buildPathWithGlobalParams","navigateWithGlobalParams","useNavigation","selectedTagFilter","useSelector","selectTagFilter","setTagFilterAction","useSettingActions","tagFilter","setTagFilter","useState","useTagStoreSync","handleChange","filter","pathname","t","toLowerCase","useEffect","searchParams","URLSearchParams","search","verbParam","get","isValidFilter","toUpperCase","types","typeTags","tag","Object","values","spec","tags","find","name","metaTypes","getMetaTypes","description","map","op","type","index","metaType","toString","buildTypePath"],"sources":["../../../src/scenes/TypeTagScene/TypeTagScene.tsx"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport type { FC } from 'react'\nimport React, { useEffect, useState } from 'react'\nimport { Grid, ButtonToggle, ButtonItem } from '@looker/components'\nimport type { ApiModel } from '@looker/sdk-codegen'\nimport { useLocation, useParams } from 'react-router-dom'\nimport { useSelector } from 'react-redux'\nimport { ApixSection, DocTitle, DocTypeSummary, Link } from '../../components'\nimport { buildTypePath, isValidFilter, useNavigation } from '../../utils'\nimport { selectTagFilter, useSettingActions } from '../../state'\nimport { useTagStoreSync } from '../utils'\nimport { getMetaTypes } from './utils'\n\ninterface TypeTagSceneProps {\n api: ApiModel\n}\n\ninterface TypeTagSceneParams {\n specKey: string\n typeTag: string\n}\n\nexport const TypeTagScene: FC<TypeTagSceneProps> = ({ api }) => {\n const { specKey, typeTag } = useParams<TypeTagSceneParams>()\n const location = useLocation()\n const { navigate, buildPathWithGlobalParams, navigateWithGlobalParams } =\n useNavigation()\n const selectedTagFilter = useSelector(selectTagFilter)\n const { setTagFilterAction } = useSettingActions()\n const [tagFilter, setTagFilter] = useState(selectedTagFilter)\n useTagStoreSync()\n\n const handleChange = (filter: string) => {\n navigate(location.pathname, {\n t: filter === 'ALL' ? null : filter.toLowerCase(),\n })\n }\n\n useEffect(() => {\n const searchParams = new URLSearchParams(location.search)\n let verbParam = searchParams.get('t') || 'ALL'\n verbParam = isValidFilter(location.pathname, verbParam)\n ? verbParam.toUpperCase()\n : 'ALL'\n setTagFilterAction({\n tagFilter: verbParam,\n })\n }, [location.search])\n\n const types = api.typeTags[typeTag]\n useEffect(() => {\n if (!types) {\n navigateWithGlobalParams(`/${specKey}/types`)\n }\n }, [types])\n\n useEffect(() => {\n setTagFilter(selectedTagFilter)\n }, [selectedTagFilter])\n\n if (!types) {\n return <></>\n }\n\n const tag = Object.values(api.spec.tags!).find((tag) => tag.name === typeTag)!\n const metaTypes = getMetaTypes(types)\n return (\n <ApixSection>\n <DocTitle>{`${tag.name}: ${tag.description}`}</DocTitle>\n <ButtonToggle\n mb=\"small\"\n mt=\"xlarge\"\n value={tagFilter}\n onChange={handleChange}\n >\n <ButtonItem key=\"ALL\" px=\"large\" py=\"xsmall\">\n ALL\n </ButtonItem>\n {metaTypes.map((op) => (\n <ButtonItem key={op} px=\"large\" py=\"xsmall\">\n {op}\n </ButtonItem>\n ))}\n </ButtonToggle>\n {Object.values(types).map(\n (type, index) =>\n (selectedTagFilter === 'ALL' ||\n selectedTagFilter === type.metaType.toString().toUpperCase()) && (\n <Link\n key={index}\n to={buildPathWithGlobalParams(\n buildTypePath(specKey, tag.name, type.name)\n )}\n >\n <Grid columns={1} py=\"xsmall\">\n <DocTypeSummary key={index} type={type} />\n </Grid>\n </Link>\n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AiB,KAAKoC,IAAI,CAACE,QAAQ,CAACC,QAAQ,EAAE,CAAClB,WAAW,EAAE,KAC5D,6BAAC,iBAAI;IACH,GAAG,EAAEgB,KAAM;IACX,EAAE,EAAExC,yBAAyB,CAC3B,IAAA2C,oBAAa,EAACjD,OAAO,EAAEiC,GAAG,CAACM,IAAI,EAAEM,IAAI,CAACN,IAAI,CAAC;EAC3C,GAEF,6BAAC,gBAAI;IAAC,OAAO,EAAE,CAAE;IAAC,EAAE,EAAC;EAAQ,GAC3B,6BAAC,2BAAc;IAAC,GAAG,EAAEO,KAAM;IAAC,IAAI,EAAED;EAAK,EAAG,CACrC,CAEV,CACJ,CACW;AAElB,CAAC;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/scenes/TypeTagScene/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport { TypeTagScene } from './TypeTagScene'\n"],"mappings":";;;;;;;;;;;AAyBA"}
|
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getMetaTypes = void 0;
|
|
7
|
-
|
|
8
7
|
var getMetaTypes = types => {
|
|
9
8
|
var typeSet = new Set();
|
|
10
9
|
Object.values(types).forEach(type => {
|
|
@@ -12,6 +11,5 @@ var getMetaTypes = types => {
|
|
|
12
11
|
});
|
|
13
12
|
return Array.from(typeSet.values());
|
|
14
13
|
};
|
|
15
|
-
|
|
16
14
|
exports.getMetaTypes = getMetaTypes;
|
|
17
15
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"utils.js","names":["getMetaTypes","types","typeSet","Set","Object","values","forEach","type","add","metaType","toString","toUpperCase","Array","from"],"sources":["../../../src/scenes/TypeTagScene/utils.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport type { TypeList } from '@looker/sdk-codegen'\n\n/**\n * Given a list of types it returns a list of distinct types\n * @param types A list of types\n */\nexport const getMetaTypes = (types: TypeList) => {\n const typeSet = new Set<string>()\n Object.values(types).forEach((type) => {\n typeSet.add(type.metaType.toString().toUpperCase())\n })\n return Array.from(typeSet.values())\n}\n"],"mappings":";;;;;;AAgCO,IAAMA,YAAY,GAAIC,KAAe,IAAK;EAC/C,IAAMC,OAAO,GAAG,IAAIC,GAAG,EAAU;EACjCC,MAAM,CAACC,MAAM,CAACJ,KAAK,CAAC,CAACK,OAAO,CAAEC,IAAI,IAAK;IACrCL,OAAO,CAACM,GAAG,CAACD,IAAI,CAACE,QAAQ,CAACC,QAAQ,EAAE,CAACC,WAAW,EAAE,CAAC;EACrD,CAAC,CAAC;EACF,OAAOC,KAAK,CAACC,IAAI,CAACX,OAAO,CAACG,MAAM,EAAE,CAAC;AACrC,CAAC;AAAA"}
|
package/lib/scenes/index.js
CHANGED
|
@@ -21,16 +21,16 @@ Object.defineProperty(exports, "MethodScene", {
|
|
|
21
21
|
return _MethodScene.MethodScene;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
-
Object.defineProperty(exports, "
|
|
24
|
+
Object.defineProperty(exports, "MethodTagScene", {
|
|
25
25
|
enumerable: true,
|
|
26
26
|
get: function get() {
|
|
27
|
-
return
|
|
27
|
+
return _MethodTagScene.MethodTagScene;
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
-
Object.defineProperty(exports, "
|
|
30
|
+
Object.defineProperty(exports, "TypeScene", {
|
|
31
31
|
enumerable: true,
|
|
32
32
|
get: function get() {
|
|
33
|
-
return
|
|
33
|
+
return _TypeScene.TypeScene;
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "TypeTagScene", {
|
|
@@ -39,16 +39,10 @@ Object.defineProperty(exports, "TypeTagScene", {
|
|
|
39
39
|
return _TypeTagScene.TypeTagScene;
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
|
-
|
|
43
42
|
var _ErrorDetailScene = require("./ErrorDetailScene");
|
|
44
|
-
|
|
45
43
|
var _HomeScene = require("./HomeScene");
|
|
46
|
-
|
|
47
44
|
var _MethodScene = require("./MethodScene");
|
|
48
|
-
|
|
49
45
|
var _TypeScene = require("./TypeScene");
|
|
50
|
-
|
|
51
46
|
var _MethodTagScene = require("./MethodTagScene");
|
|
52
|
-
|
|
53
47
|
var _TypeTagScene = require("./TypeTagScene");
|
|
54
48
|
//# sourceMappingURL=index.js.map
|
package/lib/scenes/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/scenes/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport { ErrorDetailScene } from './ErrorDetailScene'\nexport { HomeScene } from './HomeScene'\nexport { MethodScene } from './MethodScene'\nexport { TypeScene } from './TypeScene'\nexport { MethodTagScene } from './MethodTagScene'\nexport { TypeTagScene } from './TypeTagScene'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA;AACA;AACA;AACA;AACA;AACA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/scenes/utils/hooks/index.ts"],"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/scenes/utils/hooks/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nexport { useTagStoreSync } from './tagStoreSync'\n"],"mappings":";;;;;;;;;;;AA0BA"}
|
|
@@ -4,17 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.useTagStoreSync = void 0;
|
|
7
|
-
|
|
8
7
|
var _reactRouterDom = require("react-router-dom");
|
|
9
|
-
|
|
10
8
|
var _reactRedux = require("react-redux");
|
|
11
|
-
|
|
12
9
|
var _react = require("react");
|
|
13
|
-
|
|
14
10
|
var _state = require("../../../state");
|
|
15
|
-
|
|
16
11
|
var _utils = require("../../../utils");
|
|
17
|
-
|
|
18
12
|
var useTagStoreSync = () => {
|
|
19
13
|
var location = (0, _reactRouterDom.useLocation)();
|
|
20
14
|
var {
|
|
@@ -32,7 +26,6 @@ var useTagStoreSync = () => {
|
|
|
32
26
|
var params = new URLSearchParams(location.search);
|
|
33
27
|
var verbParam = params.get('t') || 'ALL';
|
|
34
28
|
var validVerbParam = (0, _utils.isValidFilter)(location.pathname, verbParam);
|
|
35
|
-
|
|
36
29
|
if (validVerbParam) {
|
|
37
30
|
setTagFilterAction({
|
|
38
31
|
tagFilter: verbParam.toUpperCase()
|
|
@@ -46,6 +39,5 @@ var useTagStoreSync = () => {
|
|
|
46
39
|
}
|
|
47
40
|
}, [initialized]);
|
|
48
41
|
};
|
|
49
|
-
|
|
50
42
|
exports.useTagStoreSync = useTagStoreSync;
|
|
51
43
|
//# sourceMappingURL=tagStoreSync.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"tagStoreSync.js","names":["useTagStoreSync","location","useLocation","navigate","useNavigation","setTagFilterAction","useSettingActions","initialized","useSettingStoreState","selectedTagFilter","useSelector","selectTagFilter","useEffect","params","URLSearchParams","search","verbParam","get","validVerbParam","isValidFilter","pathname","tagFilter","toUpperCase","verb","t","toLowerCase"],"sources":["../../../../src/scenes/utils/hooks/tagStoreSync.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2022 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport { useLocation } from 'react-router-dom'\nimport { useSelector } from 'react-redux'\nimport { useEffect } from 'react'\nimport {\n selectTagFilter,\n useSettingActions,\n useSettingStoreState,\n} from '../../../state'\nimport { isValidFilter, useNavigation } from '../../../utils'\n\n/**\n * Hook for syncing tag scene URL params with the Redux store\n *\n * Tag scene specific search parameters: 't'\n */\nexport const useTagStoreSync = () => {\n const location = useLocation()\n const { navigate } = useNavigation()\n const { setTagFilterAction } = useSettingActions()\n const { initialized } = useSettingStoreState()\n const selectedTagFilter = useSelector(selectTagFilter)\n\n useEffect(() => {\n if (initialized) {\n const params = new URLSearchParams(location.search)\n\n // syncing verb filter on tag scene page\n const verbParam = params.get('t') || 'ALL'\n const validVerbParam = isValidFilter(location.pathname, verbParam)\n if (validVerbParam) {\n setTagFilterAction({ tagFilter: verbParam.toUpperCase() })\n } else {\n // must confirm store tag filter param is valid for tag type before updating\n const verb = isValidFilter(location.pathname, selectedTagFilter)\n ? selectedTagFilter\n : 'ALL'\n navigate(location.pathname, {\n t: verb === 'ALL' ? null : verb.toLowerCase(),\n })\n }\n }\n }, [initialized])\n}\n"],"mappings":";;;;;;AAyBA;AACA;AACA;AACA;AAKA;AAOO,IAAMA,eAAe,GAAG,MAAM;EACnC,IAAMC,QAAQ,GAAG,IAAAC,2BAAW,GAAE;EAC9B,IAAM;IAAEC;EAAS,CAAC,GAAG,IAAAC,oBAAa,GAAE;EACpC,IAAM;IAAEC;EAAmB,CAAC,GAAG,IAAAC,wBAAiB,GAAE;EAClD,IAAM;IAAEC;EAAY,CAAC,GAAG,IAAAC,2BAAoB,GAAE;EAC9C,IAAMC,iBAAiB,GAAG,IAAAC,uBAAW,EAACC,sBAAe,CAAC;EAEtD,IAAAC,gBAAS,EAAC,MAAM;IACd,IAAIL,WAAW,EAAE;MACf,IAAMM,MAAM,GAAG,IAAIC,eAAe,CAACb,QAAQ,CAACc,MAAM,CAAC;MAGnD,IAAMC,SAAS,GAAGH,MAAM,CAACI,GAAG,CAAC,GAAG,CAAC,IAAI,KAAK;MAC1C,IAAMC,cAAc,GAAG,IAAAC,oBAAa,EAAClB,QAAQ,CAACmB,QAAQ,EAAEJ,SAAS,CAAC;MAClE,IAAIE,cAAc,EAAE;QAClBb,kBAAkB,CAAC;UAAEgB,SAAS,EAAEL,SAAS,CAACM,WAAW;QAAG,CAAC,CAAC;MAC5D,CAAC,MAAM;QAEL,IAAMC,IAAI,GAAG,IAAAJ,oBAAa,EAAClB,QAAQ,CAACmB,QAAQ,EAAEX,iBAAiB,CAAC,GAC5DA,iBAAiB,GACjB,KAAK;QACTN,QAAQ,CAACF,QAAQ,CAACmB,QAAQ,EAAE;UAC1BI,CAAC,EAAED,IAAI,KAAK,KAAK,GAAG,IAAI,GAAGA,IAAI,CAACE,WAAW;QAC7C,CAAC,CAAC;MACJ;IACF;EACF,CAAC,EAAE,CAAClB,WAAW,CAAC,CAAC;AACnB,CAAC;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/scenes/utils/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nexport { useTagStoreSync } from './hooks'\n"],"mappings":";;;;;;;;;;;AA0BA"}
|
package/lib/state/index.js
CHANGED
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
6
|
var _store = require("./store");
|
|
8
|
-
|
|
9
7
|
Object.keys(_store).forEach(function (key) {
|
|
10
8
|
if (key === "default" || key === "__esModule") return;
|
|
11
9
|
if (key in exports && exports[key] === _store[key]) return;
|
|
@@ -16,9 +14,7 @@ Object.keys(_store).forEach(function (key) {
|
|
|
16
14
|
}
|
|
17
15
|
});
|
|
18
16
|
});
|
|
19
|
-
|
|
20
17
|
var _settings = require("./settings");
|
|
21
|
-
|
|
22
18
|
Object.keys(_settings).forEach(function (key) {
|
|
23
19
|
if (key === "default" || key === "__esModule") return;
|
|
24
20
|
if (key in exports && exports[key] === _settings[key]) return;
|
|
@@ -29,9 +25,7 @@ Object.keys(_settings).forEach(function (key) {
|
|
|
29
25
|
}
|
|
30
26
|
});
|
|
31
27
|
});
|
|
32
|
-
|
|
33
28
|
var _lodes = require("./lodes");
|
|
34
|
-
|
|
35
29
|
Object.keys(_lodes).forEach(function (key) {
|
|
36
30
|
if (key === "default" || key === "__esModule") return;
|
|
37
31
|
if (key in exports && exports[key] === _lodes[key]) return;
|
|
@@ -42,9 +36,7 @@ Object.keys(_lodes).forEach(function (key) {
|
|
|
42
36
|
}
|
|
43
37
|
});
|
|
44
38
|
});
|
|
45
|
-
|
|
46
39
|
var _specs = require("./specs");
|
|
47
|
-
|
|
48
40
|
Object.keys(_specs).forEach(function (key) {
|
|
49
41
|
if (key === "default" || key === "__esModule") return;
|
|
50
42
|
if (key in exports && exports[key] === _specs[key]) return;
|
package/lib/state/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/state/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport * from './store'\nexport * from './settings'\nexport * from './lodes'\nexport * from './specs'\n"],"mappings":";;;;;AAyBA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
|
package/lib/state/lodes/index.js
CHANGED
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
6
|
var _selectors = require("./selectors");
|
|
8
|
-
|
|
9
7
|
Object.keys(_selectors).forEach(function (key) {
|
|
10
8
|
if (key === "default" || key === "__esModule") return;
|
|
11
9
|
if (key in exports && exports[key] === _selectors[key]) return;
|
|
@@ -16,9 +14,7 @@ Object.keys(_selectors).forEach(function (key) {
|
|
|
16
14
|
}
|
|
17
15
|
});
|
|
18
16
|
});
|
|
19
|
-
|
|
20
17
|
var _slice = require("./slice");
|
|
21
|
-
|
|
22
18
|
Object.keys(_slice).forEach(function (key) {
|
|
23
19
|
if (key === "default" || key === "__esModule") return;
|
|
24
20
|
if (key in exports && exports[key] === _slice[key]) return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/state/lodes/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport * from './selectors'\nexport * from './slice'\n"],"mappings":";;;;;AAyBA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
|
package/lib/state/lodes/sagas.js
CHANGED
|
@@ -4,19 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.saga = saga;
|
|
7
|
-
|
|
8
7
|
var _typedReduxSaga = require("typed-redux-saga");
|
|
9
|
-
|
|
10
8
|
var _utils = require("../../utils");
|
|
11
|
-
|
|
12
9
|
var _slice = require("./slice");
|
|
13
|
-
|
|
14
10
|
function* initSaga(action) {
|
|
15
11
|
var {
|
|
16
12
|
initLodesSuccessAction,
|
|
17
13
|
initLodesFailureAction
|
|
18
14
|
} = _slice.lodeActions;
|
|
19
|
-
|
|
20
15
|
try {
|
|
21
16
|
var lode = yield* (0, _typedReduxSaga.call)(_utils.getLoded, action.payload.examplesLodeUrl, action.payload.declarationsLodeUrl);
|
|
22
17
|
yield* (0, _typedReduxSaga.put)(initLodesSuccessAction(lode));
|
|
@@ -24,7 +19,6 @@ function* initSaga(action) {
|
|
|
24
19
|
yield* (0, _typedReduxSaga.put)(initLodesFailureAction(error));
|
|
25
20
|
}
|
|
26
21
|
}
|
|
27
|
-
|
|
28
22
|
function* saga() {
|
|
29
23
|
var {
|
|
30
24
|
initLodesAction
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"sagas.js","names":["initSaga","action","initLodesSuccessAction","initLodesFailureAction","lodeActions","lode","call","getLoded","payload","examplesLodeUrl","declarationsLodeUrl","put","error","saga","initLodesAction","takeEvery"],"sources":["../../../src/state/lodes/sagas.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport { call, put, takeEvery } from 'typed-redux-saga'\nimport type { PayloadAction } from '@reduxjs/toolkit'\n\nimport { getLoded } from '../../utils'\nimport type { InitPayload } from './slice'\nimport { lodeActions } from './slice'\n\nfunction* initSaga(action: PayloadAction<InitPayload>) {\n const { initLodesSuccessAction, initLodesFailureAction } = lodeActions\n try {\n const lode = yield* call(\n getLoded,\n action.payload.examplesLodeUrl,\n action.payload.declarationsLodeUrl\n )\n yield* put(initLodesSuccessAction(lode))\n } catch (error: any) {\n yield* put(initLodesFailureAction(error))\n }\n}\n\nexport function* saga() {\n const { initLodesAction } = lodeActions\n\n yield* takeEvery(initLodesAction, initSaga)\n}\n"],"mappings":";;;;;;AAyBA;AAGA;AAEA;AAEA,UAAUA,QAAQ,CAACC,MAAkC,EAAE;EACrD,IAAM;IAAEC,sBAAsB;IAAEC;EAAuB,CAAC,GAAGC,kBAAW;EACtE,IAAI;IACF,IAAMC,IAAI,GAAG,OAAO,IAAAC,oBAAI,EACtBC,eAAQ,EACRN,MAAM,CAACO,OAAO,CAACC,eAAe,EAC9BR,MAAM,CAACO,OAAO,CAACE,mBAAmB,CACnC;IACD,OAAO,IAAAC,mBAAG,EAACT,sBAAsB,CAACG,IAAI,CAAC,CAAC;EAC1C,CAAC,CAAC,OAAOO,KAAU,EAAE;IACnB,OAAO,IAAAD,mBAAG,EAACR,sBAAsB,CAACS,KAAK,CAAC,CAAC;EAC3C;AACF;AAEO,UAAUC,IAAI,GAAG;EACtB,IAAM;IAAEC;EAAgB,CAAC,GAAGV,kBAAW;EAEvC,OAAO,IAAAW,yBAAS,EAACD,eAAe,EAAEd,QAAQ,CAAC;AAC7C"}
|
|
@@ -3,15 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
|
|
6
|
+
exports.selectExamplesLode = exports.selectDeclarationsLode = void 0;
|
|
8
7
|
var selectLodeState = state => state.lodes;
|
|
9
|
-
|
|
10
8
|
var selectExamplesLode = state => selectLodeState(state).examples;
|
|
11
|
-
|
|
12
9
|
exports.selectExamplesLode = selectExamplesLode;
|
|
13
|
-
|
|
14
10
|
var selectDeclarationsLode = state => selectLodeState(state).declarations;
|
|
15
|
-
|
|
16
11
|
exports.selectDeclarationsLode = selectDeclarationsLode;
|
|
17
12
|
//# sourceMappingURL=selectors.js.map
|