@looker/api-explorer 0.9.85 → 0.9.87
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 +26 -0
- package/lib/ApiExplorer.js +2 -3
- package/lib/ApiExplorer.js.map +1 -1
- package/lib/App.js +2 -2
- package/lib/App.js.map +1 -1
- package/lib/StandaloneApiExplorer.js +3 -4
- package/lib/StandaloneApiExplorer.js.map +1 -1
- package/lib/components/Banner/Banner.js +3 -4
- package/lib/components/Banner/Banner.js.map +1 -1
- package/lib/components/Banner/index.js.map +1 -1
- package/lib/components/DocActivityType/DocActivityType.js +1 -1
- package/lib/components/DocActivityType/DocActivityType.js.map +1 -1
- package/lib/components/DocActivityType/index.js.map +1 -1
- package/lib/components/DocCode/DocCode.js +1 -1
- package/lib/components/DocCode/DocCode.js.map +1 -1
- package/lib/components/DocCode/index.js.map +1 -1
- package/lib/components/DocMarkdown/DocMarkdown.js +1 -1
- package/lib/components/DocMarkdown/DocMarkdown.js.map +1 -1
- package/lib/components/DocMarkdown/index.js.map +1 -1
- package/lib/components/DocMarkdown/utils.js.map +1 -1
- package/lib/components/DocMethodSummary/DocMethodSummary.js +1 -1
- package/lib/components/DocMethodSummary/DocMethodSummary.js.map +1 -1
- package/lib/components/DocMethodSummary/DocSummaryStatus.js +1 -1
- package/lib/components/DocMethodSummary/DocSummaryStatus.js.map +1 -1
- package/lib/components/DocMethodSummary/index.js.map +1 -1
- package/lib/components/DocMethodSummary/utils.js +1 -1
- package/lib/components/DocMethodSummary/utils.js.map +1 -1
- package/lib/components/DocPseudo/DocParam.js +1 -1
- package/lib/components/DocPseudo/DocParam.js.map +1 -1
- package/lib/components/DocPseudo/DocParams.js +1 -2
- package/lib/components/DocPseudo/DocParams.js.map +1 -1
- package/lib/components/DocPseudo/DocPrimaryResponse.js +1 -1
- package/lib/components/DocPseudo/DocPrimaryResponse.js.map +1 -1
- package/lib/components/DocPseudo/DocPseudo.js +1 -1
- package/lib/components/DocPseudo/DocPseudo.js.map +1 -1
- package/lib/components/DocPseudo/index.js.map +1 -1
- package/lib/components/DocRateLimited/DocRateLimited.js +1 -1
- package/lib/components/DocRateLimited/DocRateLimited.js.map +1 -1
- package/lib/components/DocRateLimited/index.js.map +1 -1
- package/lib/components/DocReferences/DocReferences.js +1 -1
- package/lib/components/DocReferences/DocReferences.js.map +1 -1
- package/lib/components/DocReferences/index.js.map +1 -1
- package/lib/components/DocReferences/utils.js +1 -1
- package/lib/components/DocReferences/utils.js.map +1 -1
- package/lib/components/DocSDKs/DocDeclarations.js +1 -1
- package/lib/components/DocSDKs/DocDeclarations.js.map +1 -1
- package/lib/components/DocSDKs/DocSDKs.js +1 -2
- package/lib/components/DocSDKs/DocSDKs.js.map +1 -1
- package/lib/components/DocSDKs/index.js.map +1 -1
- package/lib/components/DocSDKs/utils.js +1 -1
- package/lib/components/DocSDKs/utils.js.map +1 -1
- package/lib/components/DocSchema/DocSchema.js +1 -1
- package/lib/components/DocSchema/DocSchema.js.map +1 -1
- package/lib/components/DocSchema/index.js.map +1 -1
- package/lib/components/DocSdkUsage/DocSdkExampleCell.js +1 -1
- package/lib/components/DocSdkUsage/DocSdkExampleCell.js.map +1 -1
- package/lib/components/DocSdkUsage/DocSdkUsage.js +1 -2
- package/lib/components/DocSdkUsage/DocSdkUsage.js.map +1 -1
- package/lib/components/DocSdkUsage/index.js.map +1 -1
- package/lib/components/DocSdkUsage/utils.js.map +1 -1
- package/lib/components/DocSource/DocSource.js +1 -1
- package/lib/components/DocSource/DocSource.js.map +1 -1
- package/lib/components/DocSource/index.js.map +1 -1
- package/lib/components/DocStatus/DocStatus.js +1 -1
- package/lib/components/DocStatus/DocStatus.js.map +1 -1
- package/lib/components/DocStatus/index.js.map +1 -1
- package/lib/components/DocTitle/DocTitle.js +2 -2
- package/lib/components/DocTitle/DocTitle.js.map +1 -1
- package/lib/components/DocTitle/index.js.map +1 -1
- package/lib/components/DocTypeSummary/DocTypeSummary.js +1 -1
- package/lib/components/DocTypeSummary/DocTypeSummary.js.map +1 -1
- package/lib/components/DocTypeSummary/index.js.map +1 -1
- package/lib/components/ErrorBoundary/ErrorBoundary.js +1 -2
- package/lib/components/ErrorBoundary/ErrorBoundary.js.map +1 -1
- package/lib/components/ErrorBoundary/components/SomethingWentWrong/SomethingWentWrong.js +1 -1
- package/lib/components/ErrorBoundary/components/SomethingWentWrong/SomethingWentWrong.js.map +1 -1
- package/lib/components/ErrorBoundary/components/SomethingWentWrong/components/SomethingWentWrongGraphic/SomethingWentWrongGraphic.js +1 -1
- package/lib/components/ErrorBoundary/components/SomethingWentWrong/components/SomethingWentWrongGraphic/SomethingWentWrongGraphic.js.map +1 -1
- package/lib/components/ErrorBoundary/components/SomethingWentWrong/components/SomethingWentWrongGraphic/index.js.map +1 -1
- package/lib/components/ErrorBoundary/components/SomethingWentWrong/components/index.js.map +1 -1
- package/lib/components/ErrorBoundary/components/SomethingWentWrong/index.js.map +1 -1
- package/lib/components/ErrorBoundary/index.js.map +1 -1
- package/lib/components/ExploreType/ExploreProperty.js +2 -2
- package/lib/components/ExploreType/ExploreProperty.js.map +1 -1
- package/lib/components/ExploreType/ExploreType.js +1 -1
- package/lib/components/ExploreType/ExploreType.js.map +1 -1
- package/lib/components/ExploreType/exploreUtils.js +1 -1
- package/lib/components/ExploreType/exploreUtils.js.map +1 -1
- package/lib/components/ExploreType/index.js.map +1 -1
- package/lib/components/Header/Header.js +1 -1
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/index.js.map +1 -1
- package/lib/components/Link/Link.js +1 -1
- package/lib/components/Link/Link.js.map +1 -1
- package/lib/components/Link/index.js.map +1 -1
- package/lib/components/SelectorContainer/ApiSpecSelector.js +1 -1
- package/lib/components/SelectorContainer/ApiSpecSelector.js.map +1 -1
- package/lib/components/SelectorContainer/SdkLanguageSelector.js +1 -2
- package/lib/components/SelectorContainer/SdkLanguageSelector.js.map +1 -1
- package/lib/components/SelectorContainer/SelectorContainer.js +4 -4
- package/lib/components/SelectorContainer/SelectorContainer.js.map +1 -1
- package/lib/components/SelectorContainer/index.js.map +1 -1
- package/lib/components/SelectorContainer/utils.js.map +1 -1
- package/lib/components/SideNav/SearchMessage.js +1 -1
- package/lib/components/SideNav/SearchMessage.js.map +1 -1
- package/lib/components/SideNav/SideNav.js +2 -3
- package/lib/components/SideNav/SideNav.js.map +1 -1
- package/lib/components/SideNav/SideNavMethodTags.js +1 -1
- package/lib/components/SideNav/SideNavMethodTags.js.map +1 -1
- package/lib/components/SideNav/SideNavMethods.js +8 -9
- package/lib/components/SideNav/SideNavMethods.js.map +1 -1
- package/lib/components/SideNav/SideNavTypeTags.js +1 -1
- package/lib/components/SideNav/SideNavTypeTags.js.map +1 -1
- package/lib/components/SideNav/SideNavTypes.js +8 -9
- package/lib/components/SideNav/SideNavTypes.js.map +1 -1
- package/lib/components/SideNav/index.js.map +1 -1
- package/lib/components/SideNav/searchUtils.js.map +1 -1
- package/lib/components/common/Loader.js +1 -1
- package/lib/components/common/Loader.js.map +1 -1
- package/lib/components/common/common.js +2 -3
- package/lib/components/common/common.js.map +1 -1
- package/lib/components/common/index.js.map +1 -1
- package/lib/components/index.js.map +1 -1
- package/lib/custom.d.js.map +1 -1
- package/lib/esm/ApiExplorer.js +1 -1
- package/lib/esm/ApiExplorer.js.map +1 -1
- package/lib/esm/App.js +1 -1
- package/lib/esm/App.js.map +1 -1
- package/lib/esm/StandaloneApiExplorer.js +2 -2
- package/lib/esm/StandaloneApiExplorer.js.map +1 -1
- package/lib/esm/components/Banner/Banner.js +2 -2
- package/lib/esm/components/Banner/Banner.js.map +1 -1
- package/lib/esm/components/Banner/index.js.map +1 -1
- package/lib/esm/components/DocActivityType/DocActivityType.js.map +1 -1
- package/lib/esm/components/DocActivityType/index.js.map +1 -1
- package/lib/esm/components/DocCode/DocCode.js.map +1 -1
- package/lib/esm/components/DocCode/index.js.map +1 -1
- package/lib/esm/components/DocMarkdown/DocMarkdown.js.map +1 -1
- package/lib/esm/components/DocMarkdown/index.js.map +1 -1
- package/lib/esm/components/DocMarkdown/utils.js.map +1 -1
- package/lib/esm/components/DocMethodSummary/DocMethodSummary.js.map +1 -1
- package/lib/esm/components/DocMethodSummary/DocSummaryStatus.js.map +1 -1
- package/lib/esm/components/DocMethodSummary/index.js.map +1 -1
- package/lib/esm/components/DocMethodSummary/utils.js.map +1 -1
- package/lib/esm/components/DocPseudo/DocParam.js.map +1 -1
- package/lib/esm/components/DocPseudo/DocParams.js.map +1 -1
- package/lib/esm/components/DocPseudo/DocPrimaryResponse.js.map +1 -1
- package/lib/esm/components/DocPseudo/DocPseudo.js.map +1 -1
- package/lib/esm/components/DocPseudo/index.js.map +1 -1
- package/lib/esm/components/DocRateLimited/DocRateLimited.js.map +1 -1
- package/lib/esm/components/DocRateLimited/index.js.map +1 -1
- package/lib/esm/components/DocReferences/DocReferences.js.map +1 -1
- package/lib/esm/components/DocReferences/index.js.map +1 -1
- package/lib/esm/components/DocReferences/utils.js.map +1 -1
- package/lib/esm/components/DocSDKs/DocDeclarations.js.map +1 -1
- package/lib/esm/components/DocSDKs/DocSDKs.js.map +1 -1
- package/lib/esm/components/DocSDKs/index.js.map +1 -1
- package/lib/esm/components/DocSDKs/utils.js.map +1 -1
- package/lib/esm/components/DocSchema/DocSchema.js.map +1 -1
- package/lib/esm/components/DocSchema/index.js.map +1 -1
- package/lib/esm/components/DocSdkUsage/DocSdkExampleCell.js.map +1 -1
- package/lib/esm/components/DocSdkUsage/DocSdkUsage.js.map +1 -1
- package/lib/esm/components/DocSdkUsage/index.js.map +1 -1
- package/lib/esm/components/DocSdkUsage/utils.js.map +1 -1
- package/lib/esm/components/DocSource/DocSource.js.map +1 -1
- package/lib/esm/components/DocSource/index.js.map +1 -1
- package/lib/esm/components/DocStatus/DocStatus.js.map +1 -1
- package/lib/esm/components/DocStatus/index.js.map +1 -1
- package/lib/esm/components/DocTitle/DocTitle.js +1 -1
- package/lib/esm/components/DocTitle/DocTitle.js.map +1 -1
- package/lib/esm/components/DocTitle/index.js.map +1 -1
- package/lib/esm/components/DocTypeSummary/DocTypeSummary.js.map +1 -1
- package/lib/esm/components/DocTypeSummary/index.js.map +1 -1
- package/lib/esm/components/ErrorBoundary/ErrorBoundary.js.map +1 -1
- package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/SomethingWentWrong.js.map +1 -1
- 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.map +1 -1
- package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/components/index.js.map +1 -1
- package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/index.js.map +1 -1
- package/lib/esm/components/ErrorBoundary/index.js.map +1 -1
- package/lib/esm/components/ExploreType/ExploreProperty.js +1 -1
- package/lib/esm/components/ExploreType/ExploreProperty.js.map +1 -1
- package/lib/esm/components/ExploreType/ExploreType.js.map +1 -1
- package/lib/esm/components/ExploreType/exploreUtils.js.map +1 -1
- package/lib/esm/components/ExploreType/index.js.map +1 -1
- package/lib/esm/components/Header/Header.js.map +1 -1
- package/lib/esm/components/Header/index.js.map +1 -1
- package/lib/esm/components/Link/Link.js.map +1 -1
- package/lib/esm/components/Link/index.js.map +1 -1
- package/lib/esm/components/SelectorContainer/ApiSpecSelector.js.map +1 -1
- package/lib/esm/components/SelectorContainer/SdkLanguageSelector.js.map +1 -1
- package/lib/esm/components/SelectorContainer/SelectorContainer.js +3 -3
- package/lib/esm/components/SelectorContainer/SelectorContainer.js.map +1 -1
- package/lib/esm/components/SelectorContainer/index.js.map +1 -1
- package/lib/esm/components/SelectorContainer/utils.js.map +1 -1
- package/lib/esm/components/SideNav/SearchMessage.js.map +1 -1
- package/lib/esm/components/SideNav/SideNav.js +1 -1
- package/lib/esm/components/SideNav/SideNav.js.map +1 -1
- package/lib/esm/components/SideNav/SideNavMethodTags.js.map +1 -1
- package/lib/esm/components/SideNav/SideNavMethods.js +6 -6
- package/lib/esm/components/SideNav/SideNavMethods.js.map +1 -1
- package/lib/esm/components/SideNav/SideNavTypeTags.js.map +1 -1
- package/lib/esm/components/SideNav/SideNavTypes.js +6 -6
- package/lib/esm/components/SideNav/SideNavTypes.js.map +1 -1
- package/lib/esm/components/SideNav/index.js.map +1 -1
- package/lib/esm/components/SideNav/searchUtils.js.map +1 -1
- package/lib/esm/components/common/Loader.js.map +1 -1
- package/lib/esm/components/common/common.js +1 -1
- package/lib/esm/components/common/common.js.map +1 -1
- package/lib/esm/components/common/index.js.map +1 -1
- package/lib/esm/components/index.js.map +1 -1
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/routes/AppRouter.js.map +1 -1
- package/lib/esm/routes/index.js.map +1 -1
- package/lib/esm/scenes/DiffScene/DiffScene.js.map +1 -1
- package/lib/esm/scenes/DiffScene/DocDiff/DiffBanner.js.map +1 -1
- package/lib/esm/scenes/DiffScene/DocDiff/DiffItem.js.map +1 -1
- package/lib/esm/scenes/DiffScene/DocDiff/DiffLegend.js.map +1 -1
- package/lib/esm/scenes/DiffScene/DocDiff/DocDiff.js.map +1 -1
- package/lib/esm/scenes/DiffScene/DocDiff/docDiffUtils.js.map +1 -1
- package/lib/esm/scenes/DiffScene/DocDiff/index.js.map +1 -1
- package/lib/esm/scenes/DiffScene/diffUtils.js.map +1 -1
- package/lib/esm/scenes/DiffScene/index.js.map +1 -1
- package/lib/esm/scenes/ErrorDetailScene/ErrorDetailScene.js.map +1 -1
- package/lib/esm/scenes/ErrorDetailScene/index.js.map +1 -1
- package/lib/esm/scenes/HomeScene/HomeScene.js.map +1 -1
- package/lib/esm/scenes/HomeScene/index.js.map +1 -1
- package/lib/esm/scenes/MethodScene/MethodScene.js +2 -2
- package/lib/esm/scenes/MethodScene/MethodScene.js.map +1 -1
- package/lib/esm/scenes/MethodScene/components/DocOperation.js.map +1 -1
- package/lib/esm/scenes/MethodScene/components/DocRequestBody.js.map +1 -1
- package/lib/esm/scenes/MethodScene/components/DocResponses/DocResponseTypes.js.map +1 -1
- package/lib/esm/scenes/MethodScene/components/DocResponses/DocResponses.js +2 -2
- package/lib/esm/scenes/MethodScene/components/DocResponses/DocResponses.js.map +1 -1
- package/lib/esm/scenes/MethodScene/components/DocResponses/index.js.map +1 -1
- package/lib/esm/scenes/MethodScene/components/DocResponses/utils.js.map +1 -1
- package/lib/esm/scenes/MethodScene/components/index.js.map +1 -1
- package/lib/esm/scenes/MethodScene/index.js.map +1 -1
- package/lib/esm/scenes/MethodTagScene/MethodTagScene.js.map +1 -1
- package/lib/esm/scenes/MethodTagScene/index.js.map +1 -1
- package/lib/esm/scenes/MethodTagScene/utils.js.map +1 -1
- package/lib/esm/scenes/TypeScene/TypeScene.js.map +1 -1
- package/lib/esm/scenes/TypeScene/index.js.map +1 -1
- package/lib/esm/scenes/TypeTagScene/TypeTagScene.js.map +1 -1
- package/lib/esm/scenes/TypeTagScene/index.js.map +1 -1
- package/lib/esm/scenes/TypeTagScene/utils.js.map +1 -1
- package/lib/esm/scenes/index.js.map +1 -1
- package/lib/esm/scenes/utils/hooks/index.js.map +1 -1
- package/lib/esm/scenes/utils/hooks/tagStoreSync.js.map +1 -1
- package/lib/esm/scenes/utils/index.js.map +1 -1
- package/lib/esm/state/index.js.map +1 -1
- package/lib/esm/state/lodes/index.js.map +1 -1
- package/lib/esm/state/lodes/sagas.js.map +1 -1
- package/lib/esm/state/lodes/selectors.js.map +1 -1
- package/lib/esm/state/lodes/slice.js.map +1 -1
- package/lib/esm/state/settings/index.js.map +1 -1
- package/lib/esm/state/settings/sagas.js +4 -4
- package/lib/esm/state/settings/sagas.js.map +1 -1
- package/lib/esm/state/settings/selectors.js.map +1 -1
- package/lib/esm/state/settings/slice.js +2 -2
- package/lib/esm/state/settings/slice.js.map +1 -1
- package/lib/esm/state/specs/index.js.map +1 -1
- package/lib/esm/state/specs/sagas.js.map +1 -1
- package/lib/esm/state/specs/selectors.js.map +1 -1
- package/lib/esm/state/specs/slice.js.map +1 -1
- package/lib/esm/state/store.js +2 -2
- package/lib/esm/state/store.js.map +1 -1
- package/lib/esm/test-data/declarations.js.map +1 -1
- package/lib/esm/test-data/examples.js.map +1 -1
- package/lib/esm/test-data/index.js.map +1 -1
- package/lib/esm/test-data/sdkLanguages.js.map +1 -1
- package/lib/esm/test-data/specs.js +2 -2
- package/lib/esm/test-data/specs.js.map +1 -1
- package/lib/esm/test-utils/index.js.map +1 -1
- package/lib/esm/test-utils/lodes.js.map +1 -1
- package/lib/esm/test-utils/redux.js +2 -2
- package/lib/esm/test-utils/redux.js.map +1 -1
- package/lib/esm/test-utils/router.js.map +1 -1
- package/lib/esm/utils/adaptorUtils.js +2 -2
- package/lib/esm/utils/adaptorUtils.js.map +1 -1
- package/lib/esm/utils/apixAdaptor.js +2 -2
- package/lib/esm/utils/apixAdaptor.js.map +1 -1
- package/lib/esm/utils/highlight.js.map +1 -1
- package/lib/esm/utils/hooks/globalStoreSync.js.map +1 -1
- package/lib/esm/utils/hooks/index.js.map +1 -1
- package/lib/esm/utils/hooks/navigation.js.map +1 -1
- package/lib/esm/utils/hooks/useQuery.js.map +1 -1
- package/lib/esm/utils/index.js.map +1 -1
- package/lib/esm/utils/lodeUtils.js +2 -2
- package/lib/esm/utils/lodeUtils.js.map +1 -1
- package/lib/esm/utils/path.js +3 -3
- package/lib/esm/utils/path.js.map +1 -1
- package/lib/esm/utils/sdkLanguage.js +2 -2
- package/lib/esm/utils/sdkLanguage.js.map +1 -1
- package/lib/esm/utils/useWindowSize.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/routes/AppRouter.js +1 -1
- package/lib/routes/AppRouter.js.map +1 -1
- package/lib/routes/index.js.map +1 -1
- package/lib/scenes/DiffScene/DiffScene.js +1 -2
- package/lib/scenes/DiffScene/DiffScene.js.map +1 -1
- package/lib/scenes/DiffScene/DocDiff/DiffBanner.js +1 -1
- package/lib/scenes/DiffScene/DocDiff/DiffBanner.js.map +1 -1
- package/lib/scenes/DiffScene/DocDiff/DiffItem.js +2 -3
- package/lib/scenes/DiffScene/DocDiff/DiffItem.js.map +1 -1
- package/lib/scenes/DiffScene/DocDiff/DiffLegend.js +1 -1
- package/lib/scenes/DiffScene/DocDiff/DiffLegend.js.map +1 -1
- package/lib/scenes/DiffScene/DocDiff/DocDiff.js +1 -2
- package/lib/scenes/DiffScene/DocDiff/DocDiff.js.map +1 -1
- package/lib/scenes/DiffScene/DocDiff/docDiffUtils.js.map +1 -1
- package/lib/scenes/DiffScene/DocDiff/index.js.map +1 -1
- package/lib/scenes/DiffScene/diffUtils.js +1 -1
- package/lib/scenes/DiffScene/diffUtils.js.map +1 -1
- package/lib/scenes/DiffScene/index.js.map +1 -1
- package/lib/scenes/ErrorDetailScene/ErrorDetailScene.js +1 -1
- package/lib/scenes/ErrorDetailScene/ErrorDetailScene.js.map +1 -1
- package/lib/scenes/ErrorDetailScene/index.js.map +1 -1
- package/lib/scenes/HomeScene/HomeScene.js +1 -1
- package/lib/scenes/HomeScene/HomeScene.js.map +1 -1
- package/lib/scenes/HomeScene/index.js.map +1 -1
- package/lib/scenes/MethodScene/MethodScene.js +3 -4
- package/lib/scenes/MethodScene/MethodScene.js.map +1 -1
- package/lib/scenes/MethodScene/components/DocOperation.js +1 -1
- package/lib/scenes/MethodScene/components/DocOperation.js.map +1 -1
- package/lib/scenes/MethodScene/components/DocRequestBody.js +1 -1
- package/lib/scenes/MethodScene/components/DocRequestBody.js.map +1 -1
- package/lib/scenes/MethodScene/components/DocResponses/DocResponseTypes.js +1 -2
- package/lib/scenes/MethodScene/components/DocResponses/DocResponseTypes.js.map +1 -1
- package/lib/scenes/MethodScene/components/DocResponses/DocResponses.js +3 -4
- package/lib/scenes/MethodScene/components/DocResponses/DocResponses.js.map +1 -1
- package/lib/scenes/MethodScene/components/DocResponses/index.js.map +1 -1
- package/lib/scenes/MethodScene/components/DocResponses/utils.js.map +1 -1
- package/lib/scenes/MethodScene/components/index.js.map +1 -1
- package/lib/scenes/MethodScene/index.js.map +1 -1
- package/lib/scenes/MethodTagScene/MethodTagScene.js +1 -2
- package/lib/scenes/MethodTagScene/MethodTagScene.js.map +1 -1
- package/lib/scenes/MethodTagScene/index.js.map +1 -1
- package/lib/scenes/MethodTagScene/utils.js.map +1 -1
- package/lib/scenes/TypeScene/TypeScene.js +1 -2
- package/lib/scenes/TypeScene/TypeScene.js.map +1 -1
- package/lib/scenes/TypeScene/index.js.map +1 -1
- package/lib/scenes/TypeTagScene/TypeTagScene.js +1 -2
- package/lib/scenes/TypeTagScene/TypeTagScene.js.map +1 -1
- package/lib/scenes/TypeTagScene/index.js.map +1 -1
- package/lib/scenes/TypeTagScene/utils.js.map +1 -1
- package/lib/scenes/index.js.map +1 -1
- package/lib/scenes/utils/hooks/index.js.map +1 -1
- package/lib/scenes/utils/hooks/tagStoreSync.js.map +1 -1
- package/lib/scenes/utils/index.js.map +1 -1
- package/lib/state/index.js.map +1 -1
- package/lib/state/lodes/index.js.map +1 -1
- package/lib/state/lodes/sagas.js.map +1 -1
- package/lib/state/lodes/selectors.js.map +1 -1
- package/lib/state/lodes/slice.js.map +1 -1
- package/lib/state/settings/index.js.map +1 -1
- package/lib/state/settings/sagas.js +4 -4
- package/lib/state/settings/sagas.js.map +1 -1
- package/lib/state/settings/selectors.js.map +1 -1
- package/lib/state/settings/slice.js +2 -2
- package/lib/state/settings/slice.js.map +1 -1
- package/lib/state/specs/index.js.map +1 -1
- package/lib/state/specs/sagas.js.map +1 -1
- package/lib/state/specs/selectors.js.map +1 -1
- package/lib/state/specs/slice.js.map +1 -1
- package/lib/state/store.js +3 -3
- 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.map +1 -1
- package/lib/test-data/sdkLanguages.js.map +1 -1
- package/lib/test-data/specs.js +2 -2
- package/lib/test-data/specs.js.map +1 -1
- package/lib/test-utils/index.js.map +1 -1
- package/lib/test-utils/lodes.js.map +1 -1
- package/lib/test-utils/redux.js +3 -3
- package/lib/test-utils/redux.js.map +1 -1
- package/lib/test-utils/router.js +1 -1
- package/lib/test-utils/router.js.map +1 -1
- package/lib/utils/adaptorUtils.js +2 -2
- package/lib/utils/adaptorUtils.js.map +1 -1
- package/lib/utils/apixAdaptor.js +3 -3
- package/lib/utils/apixAdaptor.js.map +1 -1
- package/lib/utils/highlight.js +1 -1
- package/lib/utils/highlight.js.map +1 -1
- package/lib/utils/hooks/globalStoreSync.js.map +1 -1
- package/lib/utils/hooks/index.js.map +1 -1
- package/lib/utils/hooks/navigation.js.map +1 -1
- package/lib/utils/hooks/useQuery.js.map +1 -1
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/lodeUtils.js +2 -2
- package/lib/utils/lodeUtils.js.map +1 -1
- package/lib/utils/path.js +3 -3
- package/lib/utils/path.js.map +1 -1
- package/lib/utils/sdkLanguage.js +2 -2
- package/lib/utils/sdkLanguage.js.map +1 -1
- package/lib/utils/useWindowSize.js.map +1 -1
- package/package.json +9 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Loader.js","names":["_react","_interopRequireDefault","require","_components","
|
|
1
|
+
{"version":3,"file":"Loader.js","names":["_react","_interopRequireDefault","require","_components","e","__esModule","default","Loader","_ref","themeOverrides","message","createElement","ComponentsProvider","Flex","flexDirection","justifyContent","mt","FlexItem","alignSelf","ProgressCircular","size","Heading","color","as","exports"],"sources":["../../../src/components/common/Loader.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 from 'react';\nimport {\n ComponentsProvider,\n Flex,\n FlexItem,\n Heading,\n ProgressCircular,\n} from '@looker/components';\nimport type { ThemeOverrides } from '@looker/extension-utils';\n\nexport interface LoaderProps {\n themeOverrides: ThemeOverrides;\n message?: string;\n}\n\nexport const Loader: FC<LoaderProps> = ({\n themeOverrides,\n message = 'Loading API Specifications',\n}) => (\n <ComponentsProvider {...themeOverrides}>\n <Flex flexDirection=\"column\" justifyContent=\"center\" mt=\"25%\">\n <FlexItem alignSelf=\"center\">\n <ProgressCircular size=\"large\" />\n </FlexItem>\n <FlexItem mt=\"large\" alignSelf=\"center\">\n <Heading color=\"key\" as=\"h2\">\n {message}\n </Heading>\n </FlexItem>\n </Flex>\n </ComponentsProvider>\n);\n"],"mappings":";;;;;;AA0BA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAM4B,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAQrB,IAAMG,MAAuB,GAAGC,IAAA;EAAA,IAAC;IACtCC,cAAc;IACdC,OAAO,GAAG;EACZ,CAAC,GAAAF,IAAA;EAAA,OACCR,MAAA,CAAAM,OAAA,CAAAK,aAAA,CAACR,WAAA,CAAAS,kBAAkB,EAAKH,cAAc,EACpCT,MAAA,CAAAM,OAAA,CAAAK,aAAA,CAACR,WAAA,CAAAU,IAAI;IAACC,aAAa,EAAC,QAAQ;IAACC,cAAc,EAAC,QAAQ;IAACC,EAAE,EAAC;EAAK,GAC3DhB,MAAA,CAAAM,OAAA,CAAAK,aAAA,CAACR,WAAA,CAAAc,QAAQ;IAACC,SAAS,EAAC;EAAQ,GAC1BlB,MAAA,CAAAM,OAAA,CAAAK,aAAA,CAACR,WAAA,CAAAgB,gBAAgB;IAACC,IAAI,EAAC;EAAO,CAAE,CACxB,CAAC,EACXpB,MAAA,CAAAM,OAAA,CAAAK,aAAA,CAACR,WAAA,CAAAc,QAAQ;IAACD,EAAE,EAAC,OAAO;IAACE,SAAS,EAAC;EAAQ,GACrClB,MAAA,CAAAM,OAAA,CAAAK,aAAA,CAACR,WAAA,CAAAkB,OAAO;IAACC,KAAK,EAAC,KAAK;IAACC,EAAE,EAAC;EAAI,GACzBb,OACM,CACD,CACN,CACY,CAAC;AAAA,CACtB;AAACc,OAAA,CAAAjB,MAAA,GAAAA,MAAA","ignoreList":[]}
|
|
@@ -8,9 +8,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
8
8
|
var _components = require("@looker/components");
|
|
9
9
|
var _utils = require("../../utils");
|
|
10
10
|
var _Header = require("../Header");
|
|
11
|
-
function
|
|
12
|
-
function
|
|
13
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
11
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
12
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
14
13
|
var REM_TO_PX = exports.REM_TO_PX = 16;
|
|
15
14
|
var ApixSection = props => {
|
|
16
15
|
var size = (0, _utils.useWindowSize)();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","names":["_react","_interopRequireWildcard","require","_components","_utils","_Header","
|
|
1
|
+
{"version":3,"file":"common.js","names":["_react","_interopRequireWildcard","require","_components","_utils","_Header","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_extends","assign","bind","arguments","length","apply","REM_TO_PX","exports","ApixSection","props","size","useWindowSize","sectionH","height","HEADER_REM","useEffect","_document$getElementB","document","getElementById","scrollTo","createElement","Section","id","p","style","concat","overflow","borderTop"],"sources":["../../../src/components/common/common.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 } from 'react';\nimport type { SectionProps } from '@looker/components';\nimport { Section } from '@looker/components';\nimport { useWindowSize } from '../../utils';\nimport { HEADER_REM } from '../Header';\n\nexport const REM_TO_PX = 16;\n\n/**\n * Extends the looker Section to proper height and scrolls to top on use\n * @param props - anything you want, but probably SectionProps\n */\nexport const ApixSection: FC<SectionProps> = (props: any) => {\n const size = useWindowSize();\n const sectionH = size.height - REM_TO_PX * HEADER_REM;\n useEffect(() => {\n document.getElementById('top')?.scrollTo(REM_TO_PX * HEADER_REM, 0);\n }, [props]);\n\n return (\n <Section\n {...props}\n id=\"top\"\n p=\"xxlarge\"\n style={{ height: `${sectionH}px`, overflow: 'auto', borderTop: '0px' }}\n />\n );\n};\n"],"mappings":";;;;;;AA0BA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAAuC,SAAAD,wBAAAK,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAP,uBAAA,YAAAA,wBAAAK,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,C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AM,GAAGP,SAAS,GAAGQ,kBAAU;EACrD,IAAAC,gBAAS,EAAC,MAAM;IAAA,IAAAC,qBAAA;IACd,CAAAA,qBAAA,GAAAC,QAAQ,CAACC,cAAc,CAAC,KAAK,CAAC,cAAAF,qBAAA,uBAA9BA,qBAAA,CAAgCG,QAAQ,CAACb,SAAS,GAAGQ,kBAAU,EAAE,CAAC,CAAC;EACrE,CAAC,EAAE,CAACL,KAAK,CAAC,CAAC;EAEX,OACEnC,MAAA,CAAAgB,OAAA,CAAA8B,aAAA,CAAC3C,WAAA,CAAA4C,OAAO,EAAArB,QAAA,KACFS,KAAK;IACTa,EAAE,EAAC,KAAK;IACRC,CAAC,EAAC,SAAS;IACXC,KAAK,EAAE;MAAEX,MAAM,KAAAY,MAAA,CAAKb,QAAQ,OAAI;MAAEc,QAAQ,EAAE,MAAM;MAAEC,SAAS,EAAE;IAAM;EAAE,EACxE,CAAC;AAEN,CAAC;AAACpB,OAAA,CAAAC,WAAA,GAAAA,WAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_common","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_Loader"],"sources":["../../../src/components/common/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 './common';\nexport * from './Loader';\n"],"mappings":";;;;;AAyBA,IAAAA,OAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,OAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,OAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,OAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,OAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,OAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,OAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAC,OAAA,CAAAL,GAAA;IAAA;EAAA;AAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["_common","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_Loader"],"sources":["../../../src/components/common/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 './common';\nexport * from './Loader';\n"],"mappings":";;;;;AAyBA,IAAAA,OAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,OAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,OAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,OAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,OAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,OAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,OAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAC,OAAA,CAAAL,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_common","require","_DocActivityType","_DocCode","_DocMethodSummary","_DocMarkdown","_DocPseudo","_DocRateLimited","_DocReferences","_DocSDKs","_DocSdkUsage","_DocSource","_DocStatus","_DocTitle","_Header","_SideNav","_ExploreType","_DocSchema","_DocTypeSummary","_Link","_ErrorBoundary","_SelectorContainer","_Banner"],"sources":["../../src/components/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 { ApixSection, Loader } from './common';\nexport { DocActivityType } from './DocActivityType';\nexport { DocCode } from './DocCode';\nexport { DocMethodSummary, DocSummaryStatus } from './DocMethodSummary';\nexport { DocMarkdown } from './DocMarkdown';\nexport { DocPseudo } from './DocPseudo';\nexport { DocRateLimited } from './DocRateLimited';\nexport { DocReferences } from './DocReferences';\nexport { DocSDKs } from './DocSDKs';\nexport { DocSdkUsage } from './DocSdkUsage';\nexport { DocSource } from './DocSource';\nexport { DocStatus } from './DocStatus';\nexport { DocTitle } from './DocTitle';\nexport { Header, HEADER_TOGGLE_LABEL } from './Header';\nexport { SideNav } from './SideNav';\nexport { ExploreType, ExploreProperty } from './ExploreType';\nexport { DocSchema } from './DocSchema';\nexport { DocTypeSummary } from './DocTypeSummary';\nexport { Link } from './Link';\nexport { ErrorBoundary } from './ErrorBoundary';\nexport { SelectorContainer } from './SelectorContainer';\nexport { Banner } from './Banner';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AACA,IAAAM,eAAA,GAAAN,OAAA;AACA,IAAAO,cAAA,GAAAP,OAAA;AACA,IAAAQ,QAAA,GAAAR,OAAA;AACA,IAAAS,YAAA,GAAAT,OAAA;AACA,IAAAU,UAAA,GAAAV,OAAA;AACA,IAAAW,UAAA,GAAAX,OAAA;AACA,IAAAY,SAAA,GAAAZ,OAAA;AACA,IAAAa,OAAA,GAAAb,OAAA;AACA,IAAAc,QAAA,GAAAd,OAAA;AACA,IAAAe,YAAA,GAAAf,OAAA;AACA,IAAAgB,UAAA,GAAAhB,OAAA;AACA,IAAAiB,eAAA,GAAAjB,OAAA;AACA,IAAAkB,KAAA,GAAAlB,OAAA;AACA,IAAAmB,cAAA,GAAAnB,OAAA;AACA,IAAAoB,kBAAA,GAAApB,OAAA;AACA,IAAAqB,OAAA,GAAArB,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["_common","require","_DocActivityType","_DocCode","_DocMethodSummary","_DocMarkdown","_DocPseudo","_DocRateLimited","_DocReferences","_DocSDKs","_DocSdkUsage","_DocSource","_DocStatus","_DocTitle","_Header","_SideNav","_ExploreType","_DocSchema","_DocTypeSummary","_Link","_ErrorBoundary","_SelectorContainer","_Banner"],"sources":["../../src/components/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 { ApixSection, Loader } from './common';\nexport { DocActivityType } from './DocActivityType';\nexport { DocCode } from './DocCode';\nexport { DocMethodSummary, DocSummaryStatus } from './DocMethodSummary';\nexport { DocMarkdown } from './DocMarkdown';\nexport { DocPseudo } from './DocPseudo';\nexport { DocRateLimited } from './DocRateLimited';\nexport { DocReferences } from './DocReferences';\nexport { DocSDKs } from './DocSDKs';\nexport { DocSdkUsage } from './DocSdkUsage';\nexport { DocSource } from './DocSource';\nexport { DocStatus } from './DocStatus';\nexport { DocTitle } from './DocTitle';\nexport { Header, HEADER_TOGGLE_LABEL } from './Header';\nexport { SideNav } from './SideNav';\nexport { ExploreType, ExploreProperty } from './ExploreType';\nexport { DocSchema } from './DocSchema';\nexport { DocTypeSummary } from './DocTypeSummary';\nexport { Link } from './Link';\nexport { ErrorBoundary } from './ErrorBoundary';\nexport { SelectorContainer } from './SelectorContainer';\nexport { Banner } from './Banner';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AACA,IAAAM,eAAA,GAAAN,OAAA;AACA,IAAAO,cAAA,GAAAP,OAAA;AACA,IAAAQ,QAAA,GAAAR,OAAA;AACA,IAAAS,YAAA,GAAAT,OAAA;AACA,IAAAU,UAAA,GAAAV,OAAA;AACA,IAAAW,UAAA,GAAAX,OAAA;AACA,IAAAY,SAAA,GAAAZ,OAAA;AACA,IAAAa,OAAA,GAAAb,OAAA;AACA,IAAAc,QAAA,GAAAd,OAAA;AACA,IAAAe,YAAA,GAAAf,OAAA;AACA,IAAAgB,UAAA,GAAAhB,OAAA;AACA,IAAAiB,eAAA,GAAAjB,OAAA;AACA,IAAAkB,KAAA,GAAAlB,OAAA;AACA,IAAAmB,cAAA,GAAAnB,OAAA;AACA,IAAAoB,kBAAA,GAAApB,OAAA;AACA,IAAAqB,OAAA,GAAArB,OAAA","ignoreList":[]}
|
package/lib/custom.d.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom.d.js","names":[],"sources":["../src/custom.d.ts"],"sourcesContent":["declare module '*.svg' {\n const content: any;\n export default content;\n}\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"custom.d.js","names":[],"sources":["../src/custom.d.ts"],"sourcesContent":["declare module '*.svg' {\n const content: any;\n export default content;\n}\n"],"mappings":"","ignoreList":[]}
|
package/lib/esm/ApiExplorer.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var _templateObject;
|
|
2
|
-
function _taggedTemplateLiteral(
|
|
2
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
3
3
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
4
4
|
import styled, { createGlobalStyle } from 'styled-components';
|
|
5
5
|
import { Aside, ComponentsProvider, Divider, Heading, IconButton, Layout, Page, Space } from '@looker/components';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiExplorer.js","names":["React","useCallback","useEffect","useState","styled","createGlobalStyle","Aside","ComponentsProvider","Divider","Heading","IconButton","Layout","Page","Space","FirstPage","LastPage","registerEnvAdaptor","unregisterEnvAdaptor","useSelector","useLocation","Banner","ErrorBoundary","HEADER_TOGGLE_LABEL","Header","Loader","SelectorContainer","SideNav","AppRouter","apixFilesHost","selectCurrentSpec","selectSpecs","useLodeActions","useLodesStoreState","useSettingActions","useSettingStoreState","useSpecActions","useSpecStoreState","findSdk","getSpecKey","useGlobalStoreSync","BodyOverride","_templateObject","_taggedTemplateLiteral","ApiExplorer","_ref","_location$pathname2","adaptor","examplesLodeUrl","declarationsLodeUrl","concat","headless","working","description","specs","spec","initLodesAction","initialized","initSettingsAction","setSearchPatternAction","setSdkLanguageAction","initSpecsAction","setCurrentSpecAction","location","hasNavigation","setHasNavigation","toggleNavigation","target","hasNavigationToggle","e","origin","window","data","action","currentHasNavigation","specKey","_location$pathname","maybeSpec","pathname","split","key","currentSpecKey","searchParams","URLSearchParams","search","searchPattern","get","sdkParam","language","sdkLanguage","addEventListener","removeEventListener","themeOverrides","neededSpec","createElement","Fragment","loadGoogleFonts","themeCustomizations","message","logError","bind","style","overflow","hasAside","height","AsideBorder","borderRight","isOpen","align","py","px","justifyItems","as","fontSize","fontWeight","color","size","shape","icon","label","onClick","mb","appearance","ml","mr","api","withConfig","displayName","componentId","_ref2"],"sources":["../../src/ApiExplorer.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, { useCallback, useEffect, useState } from 'react';\nimport styled, { createGlobalStyle } from 'styled-components';\nimport {\n Aside,\n ComponentsProvider,\n Divider,\n Heading,\n IconButton,\n Layout,\n Page,\n Space,\n} from '@looker/components';\nimport { FirstPage } from '@styled-icons/material/FirstPage';\nimport { LastPage } from '@styled-icons/material/LastPage';\nimport {\n registerEnvAdaptor,\n unregisterEnvAdaptor,\n} from '@looker/extension-utils';\nimport { useSelector } from 'react-redux';\nimport { useLocation } from 'react-router-dom';\n\nimport type { IApixAdaptor } from './utils';\nimport {\n Banner,\n ErrorBoundary,\n HEADER_TOGGLE_LABEL,\n Header,\n Loader,\n SelectorContainer,\n SideNav,\n} from './components';\nimport { AppRouter } from './routes';\nimport { apixFilesHost } from './utils/lodeUtils';\nimport {\n selectCurrentSpec,\n selectSpecs,\n useLodeActions,\n useLodesStoreState,\n useSettingActions,\n useSettingStoreState,\n useSpecActions,\n useSpecStoreState,\n} from './state';\nimport { findSdk, getSpecKey, useGlobalStoreSync } from './utils';\n\nexport interface ApiExplorerProps {\n adaptor: IApixAdaptor;\n examplesLodeUrl?: string;\n declarationsLodeUrl?: string;\n headless?: boolean;\n}\n\nconst BodyOverride = createGlobalStyle` html { height: 100%; overflow: hidden; } `;\n\nexport const ApiExplorer: FC<ApiExplorerProps> = ({\n adaptor,\n examplesLodeUrl = 'https://raw.githubusercontent.com/looker-open-source/sdk-codegen/main/examplesIndex.json',\n declarationsLodeUrl = `${apixFilesHost}/declarationsIndex.json`,\n headless = false,\n}) => {\n useLodesStoreState();\n const { working, description } = useSpecStoreState();\n const specs = useSelector(selectSpecs);\n const spec = useSelector(selectCurrentSpec);\n const { initLodesAction } = useLodeActions();\n const { initialized } = useSettingStoreState();\n const { initSettingsAction, setSearchPatternAction, setSdkLanguageAction } =\n useSettingActions();\n const { initSpecsAction, setCurrentSpecAction } = useSpecActions();\n\n const location = useLocation();\n useGlobalStoreSync();\n const [hasNavigation, setHasNavigation] = useState(true);\n const toggleNavigation = (target?: boolean) =>\n setHasNavigation(target || !hasNavigation);\n\n const hasNavigationToggle = useCallback((e: MessageEvent<any>) => {\n if (e.origin === window.origin && e.data.action === 'toggle_sidebar') {\n setHasNavigation(currentHasNavigation => !currentHasNavigation);\n }\n }, []);\n\n registerEnvAdaptor(adaptor);\n\n useEffect(() => {\n initSettingsAction();\n initLodesAction({ examplesLodeUrl, declarationsLodeUrl });\n\n const specKey = getSpecKey(location);\n initSpecsAction({ specKey });\n return () => unregisterEnvAdaptor();\n }, []);\n\n useEffect(() => {\n const maybeSpec = location.pathname?.split('/')[1];\n if (spec && maybeSpec && maybeSpec !== spec.key) {\n setCurrentSpecAction({ currentSpecKey: maybeSpec });\n }\n }, [location.pathname, spec]);\n\n useEffect(() => {\n if (!initialized) return;\n const searchParams = new URLSearchParams(location.search);\n const searchPattern = searchParams.get('s') || '';\n const sdkParam = searchParams.get('sdk') || 'all';\n const { language: sdkLanguage } = findSdk(sdkParam);\n setSearchPatternAction({ searchPattern });\n setSdkLanguageAction({ sdkLanguage });\n }, [location.search]);\n\n useEffect(() => {\n if (headless) {\n window.addEventListener('message', hasNavigationToggle);\n }\n return () => {\n if (headless) {\n window.removeEventListener('message', hasNavigationToggle);\n }\n };\n }, [headless, hasNavigationToggle]);\n\n const themeOverrides = adaptor.themeOverrides();\n\n let neededSpec = location.pathname?.split('/')[1];\n if (!neededSpec) {\n neededSpec = spec?.key;\n }\n\n return (\n <>\n <ComponentsProvider\n loadGoogleFonts={themeOverrides.loadGoogleFonts}\n themeCustomizations={themeOverrides.themeCustomizations}\n >\n {working || !neededSpec || neededSpec !== spec.key ? (\n <Loader message={description} themeOverrides={themeOverrides} />\n ) : (\n <ErrorBoundary logError={adaptor.logError.bind(adaptor)}>\n <Banner adaptor={adaptor} specs={specs} />\n <Page style={{ overflow: 'hidden' }}>\n {!headless && (\n <Header spec={spec} toggleNavigation={toggleNavigation} />\n )}\n <Layout hasAside height=\"100%\">\n <AsideBorder\n borderRight\n isOpen={hasNavigation}\n headless={headless}\n >\n {headless && (\n <>\n <Space\n align=\"center\"\n py=\"u3\"\n px={hasNavigation ? 'u5' : '0'}\n justifyItems={\n hasNavigation ? 'space-between' : 'center'\n }\n >\n {hasNavigation && (\n <Heading\n as=\"h2\"\n fontSize=\"xsmall\"\n fontWeight=\"bold\"\n color=\"text2\"\n >\n API DOCUMENTATION\n </Heading>\n )}\n <IconButton\n size=\"xsmall\"\n shape=\"round\"\n icon={hasNavigation ? <FirstPage /> : <LastPage />}\n label={HEADER_TOGGLE_LABEL}\n onClick={() => toggleNavigation()}\n />\n </Space>\n {hasNavigation && (\n <>\n <Divider mb=\"u3\" appearance=\"light\" />\n <SelectorContainer\n spec={spec}\n ml=\"large\"\n mr=\"large\"\n />\n </>\n )}\n </>\n )}\n {hasNavigation && <SideNav headless={headless} spec={spec} />}\n </AsideBorder>\n <AppRouter\n specKey={spec.key}\n api={spec.api!}\n toggleNavigation={toggleNavigation}\n />\n </Layout>\n </Page>\n </ErrorBoundary>\n )}\n </ComponentsProvider>\n {!headless && <BodyOverride />}\n </>\n );\n};\n\nconst AsideBorder = styled(Aside)<{\n isOpen: boolean;\n headless: boolean;\n}>`\n width: ${({ isOpen, headless }) =>\n isOpen ? '20rem' : headless ? '2.75rem' : '0rem'};\n`;\n"],"mappings":";;AA2BA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAC/D,OAAOC,MAAM,IAAIC,iBAAiB,QAAQ,mBAAmB;AAC7D,SACEC,KAAK,EACLC,kBAAkB,EAClBC,OAAO,EACPC,OAAO,EACPC,UAAU,EACVC,MAAM,EACNC,IAAI,EACJC,KAAK,QACA,oBAAoB;AAC3B,SAASC,SAAS,QAAQ,kCAAkC;AAC5D,SAASC,QAAQ,QAAQ,iCAAiC;AAC1D,SACEC,kBAAkB,EAClBC,oBAAoB,QACf,yBAAyB;AAChC,SAASC,WAAW,QAAQ,aAAa;AACzC,SAASC,WAAW,QAAQ,kBAAkB;AAG9C,SACEC,MAAM,EACNC,aAAa,EACbC,mBAAmB,EACnBC,MAAM,EACNC,MAAM,EACNC,iBAAiB,EACjBC,OAAO,QACF,cAAc;AACrB,SAASC,SAAS,QAAQ,UAAU;AACpC,SAASC,aAAa,QAAQ,mBAAmB;AACjD,SACEC,iBAAiB,EACjBC,WAAW,EAC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er.js","names":["React","useCallback","useEffect","useState","styled","createGlobalStyle","Aside","ComponentsProvider","Divider","Heading","IconButton","Layout","Page","Space","FirstPage","LastPage","registerEnvAdaptor","unregisterEnvAdaptor","useSelector","useLocation","Banner","ErrorBoundary","HEADER_TOGGLE_LABEL","Header","Loader","SelectorContainer","SideNav","AppRouter","apixFilesHost","selectCurrentSpec","selectSpecs","useLodeActions","useLodesStoreState","useSettingActions","useSettingStoreState","useSpecActions","useSpecStoreState","findSdk","getSpecKey","useGlobalStoreSync","BodyOverride","_templateObject","_taggedTemplateLiteral","ApiExplorer","_ref","_location$pathname2","adaptor","examplesLodeUrl","declarationsLodeUrl","concat","headless","working","description","specs","spec","initLodesAction","initialized","initSettingsAction","setSearchPatternAction","setSdkLanguageAction","initSpecsAction","setCurrentSpecAction","location","hasNavigation","setHasNavigation","toggleNavigation","target","hasNavigationToggle","e","origin","window","data","action","currentHasNavigation","specKey","_location$pathname","maybeSpec","pathname","split","key","currentSpecKey","searchParams","URLSearchParams","search","searchPattern","get","sdkParam","language","sdkLanguage","addEventListener","removeEventListener","themeOverrides","neededSpec","createElement","Fragment","loadGoogleFonts","themeCustomizations","message","logError","bind","style","overflow","hasAside","height","AsideBorder","borderRight","isOpen","align","py","px","justifyItems","as","fontSize","fontWeight","color","size","shape","icon","label","onClick","mb","appearance","ml","mr","api","withConfig","displayName","componentId","_ref2"],"sources":["../../src/ApiExplorer.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, { useCallback, useEffect, useState } from 'react';\nimport styled, { createGlobalStyle } from 'styled-components';\nimport {\n Aside,\n ComponentsProvider,\n Divider,\n Heading,\n IconButton,\n Layout,\n Page,\n Space,\n} from '@looker/components';\nimport { FirstPage } from '@styled-icons/material/FirstPage';\nimport { LastPage } from '@styled-icons/material/LastPage';\nimport {\n registerEnvAdaptor,\n unregisterEnvAdaptor,\n} from '@looker/extension-utils';\nimport { useSelector } from 'react-redux';\nimport { useLocation } from 'react-router-dom';\n\nimport type { IApixAdaptor } from './utils';\nimport {\n Banner,\n ErrorBoundary,\n HEADER_TOGGLE_LABEL,\n Header,\n Loader,\n SelectorContainer,\n SideNav,\n} from './components';\nimport { AppRouter } from './routes';\nimport { apixFilesHost } from './utils/lodeUtils';\nimport {\n selectCurrentSpec,\n selectSpecs,\n useLodeActions,\n useLodesStoreState,\n useSettingActions,\n useSettingStoreState,\n useSpecActions,\n useSpecStoreState,\n} from './state';\nimport { findSdk, getSpecKey, useGlobalStoreSync } from './utils';\n\nexport interface ApiExplorerProps {\n adaptor: IApixAdaptor;\n examplesLodeUrl?: string;\n declarationsLodeUrl?: string;\n headless?: boolean;\n}\n\nconst BodyOverride = createGlobalStyle` html { height: 100%; overflow: hidden; } `;\n\nexport const ApiExplorer: FC<ApiExplorerProps> = ({\n adaptor,\n examplesLodeUrl = 'https://raw.githubusercontent.com/looker-open-source/sdk-codegen/main/examplesIndex.json',\n declarationsLodeUrl = `${apixFilesHost}/declarationsIndex.json`,\n headless = false,\n}) => {\n useLodesStoreState();\n const { working, description } = useSpecStoreState();\n const specs = useSelector(selectSpecs);\n const spec = useSelector(selectCurrentSpec);\n const { initLodesAction } = useLodeActions();\n const { initialized } = useSettingStoreState();\n const { initSettingsAction, setSearchPatternAction, setSdkLanguageAction } =\n useSettingActions();\n const { initSpecsAction, setCurrentSpecAction } = useSpecActions();\n\n const location = useLocation();\n useGlobalStoreSync();\n const [hasNavigation, setHasNavigation] = useState(true);\n const toggleNavigation = (target?: boolean) =>\n setHasNavigation(target || !hasNavigation);\n\n const hasNavigationToggle = useCallback((e: MessageEvent<any>) => {\n if (e.origin === window.origin && e.data.action === 'toggle_sidebar') {\n setHasNavigation(currentHasNavigation => !currentHasNavigation);\n }\n }, []);\n\n registerEnvAdaptor(adaptor);\n\n useEffect(() => {\n initSettingsAction();\n initLodesAction({ examplesLodeUrl, declarationsLodeUrl });\n\n const specKey = getSpecKey(location);\n initSpecsAction({ specKey });\n return () => unregisterEnvAdaptor();\n }, []);\n\n useEffect(() => {\n const maybeSpec = location.pathname?.split('/')[1];\n if (spec && maybeSpec && maybeSpec !== spec.key) {\n setCurrentSpecAction({ currentSpecKey: maybeSpec });\n }\n }, [location.pathname, spec]);\n\n useEffect(() => {\n if (!initialized) return;\n const searchParams = new URLSearchParams(location.search);\n const searchPattern = searchParams.get('s') || '';\n const sdkParam = searchParams.get('sdk') || 'all';\n const { language: sdkLanguage } = findSdk(sdkParam);\n setSearchPatternAction({ searchPattern });\n setSdkLanguageAction({ sdkLanguage });\n }, [location.search]);\n\n useEffect(() => {\n if (headless) {\n window.addEventListener('message', hasNavigationToggle);\n }\n return () => {\n if (headless) {\n window.removeEventListener('message', hasNavigationToggle);\n }\n };\n }, [headless, hasNavigationToggle]);\n\n const themeOverrides = adaptor.themeOverrides();\n\n let neededSpec = location.pathname?.split('/')[1];\n if (!neededSpec) {\n neededSpec = spec?.key;\n }\n\n return (\n <>\n <ComponentsProvider\n loadGoogleFonts={themeOverrides.loadGoogleFonts}\n themeCustomizations={themeOverrides.themeCustomizations}\n >\n {working || !neededSpec || neededSpec !== spec.key ? (\n <Loader message={description} themeOverrides={themeOverrides} />\n ) : (\n <ErrorBoundary logError={adaptor.logError.bind(adaptor)}>\n <Banner adaptor={adaptor} specs={specs} />\n <Page style={{ overflow: 'hidden' }}>\n {!headless && (\n <Header spec={spec} toggleNavigation={toggleNavigation} />\n )}\n <Layout hasAside height=\"100%\">\n <AsideBorder\n borderRight\n isOpen={hasNavigation}\n headless={headless}\n >\n {headless && (\n <>\n <Space\n align=\"center\"\n py=\"u3\"\n px={hasNavigation ? 'u5' : '0'}\n justifyItems={\n hasNavigation ? 'space-between' : 'center'\n }\n >\n {hasNavigation && (\n <Heading\n as=\"h2\"\n fontSize=\"xsmall\"\n fontWeight=\"bold\"\n color=\"text2\"\n >\n API DOCUMENTATION\n </Heading>\n )}\n <IconButton\n size=\"xsmall\"\n shape=\"round\"\n icon={hasNavigation ? <FirstPage /> : <LastPage />}\n label={HEADER_TOGGLE_LABEL}\n onClick={() => toggleNavigation()}\n />\n </Space>\n {hasNavigation && (\n <>\n <Divider mb=\"u3\" appearance=\"light\" />\n <SelectorContainer\n spec={spec}\n ml=\"large\"\n mr=\"large\"\n />\n </>\n )}\n </>\n )}\n {hasNavigation && <SideNav headless={headless} spec={spec} />}\n </AsideBorder>\n <AppRouter\n specKey={spec.key}\n api={spec.api!}\n toggleNavigation={toggleNavigation}\n />\n </Layout>\n </Page>\n </ErrorBoundary>\n )}\n </ComponentsProvider>\n {!headless && <BodyOverride />}\n </>\n );\n};\n\nconst AsideBorder = styled(Aside)<{\n isOpen: boolean;\n headless: boolean;\n}>`\n width: ${({ isOpen, headless }) =>\n isOpen ? '20rem' : headless ? '2.75rem' : '0rem'};\n`;\n"],"mappings":";;AA2BA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAC/D,OAAO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AA6F,aAAA,CAAClE,SAAS;IACR+C,OAAO,EAAEpB,IAAI,CAACyB,GAAI;IAClB6C,GAAG,EAAEtE,IAAI,CAACsE,GAAK;IACf3D,gBAAgB,EAAEA;EAAiB,CACpC,CACK,CACJ,CACO,CAEC,CAAC,EACpB,CAACf,QAAQ,IAAIlD,KAAA,CAAA6F,aAAA,CAACrD,YAAY,MAAE,CAC7B,CAAC;AAEP,CAAC;AAED,IAAMgE,WAAW,GAAGpG,MAAM,CAACE,KAAK,CAAC,CAAAuH,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,oBAItBC,KAAA;EAAA,IAAC;IAAEtB,MAAM;IAAExD;EAAS,CAAC,GAAA8E,KAAA;EAAA,OAC5BtB,MAAM,GAAG,OAAO,GAAGxD,QAAQ,GAAG,SAAS,GAAG,MAAM;AAAA,EACnD","ignoreList":[]}
|
package/lib/esm/App.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var _templateObject;
|
|
2
|
-
function _taggedTemplateLiteral(
|
|
2
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { BrowserRouter as Router } from 'react-router-dom';
|
|
5
5
|
import ReactDOM from 'react-dom';
|
package/lib/esm/App.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.js","names":["React","BrowserRouter","Router","ReactDOM","createGlobalStyle","StandaloneApiExplorer","BodyReset","_templateObject","_taggedTemplateLiteral","basename","window","LOOKER_DEV_PORTAL","undefined","versionsUrl","URL","location","origin","toString","render","createElement","headless","document","getElementById"],"sources":["../../src/App.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 React from 'react';\nimport { BrowserRouter as Router } from 'react-router-dom';\nimport ReactDOM from 'react-dom';\nimport { createGlobalStyle } from 'styled-components';\nimport { StandaloneApiExplorer } from './StandaloneApiExplorer';\n\nconst BodyReset = createGlobalStyle`\n body {\n margin: 0;\n }\n`;\n\nconst basename = (window as any).LOOKER_DEV_PORTAL\n ? (window as any).LOOKER_DEV_PORTAL.basename\n : undefined;\n\nconst versionsUrl = new URL(\n 'versions.json',\n (window as any).location.origin\n).toString();\n\nReactDOM.render(\n <Router basename={basename}>\n <StandaloneApiExplorer versionsUrl={versionsUrl} headless={!!basename} />\n <BodyReset />\n </Router>,\n document.getElementById('container')\n);\n"],"mappings":";;AA0BA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,aAAa,IAAIC,MAAM,QAAQ,kBAAkB;AAC1D,OAAOC,QAAQ,MAAM,WAAW;AAChC,SAASC,iBAAiB,QAAQ,mBAAmB;AACrD,SAASC,qBAAqB,QAAQ,yBAAyB;AAE/D,IAAMC,SAAS,GAAGF,iBAAiB,CAAAG,eAAA,KAAAA,eAAA,GAAAC,sBAAA,yCAIlC;AAED,IAAMC,QAAQ,GAAIC,MAAM,CAASC,iBAAiB,GAC7CD,MAAM,CAASC,iBAAiB,CAACF,QAAQ,GAC1CG,SAAS;AAEb,IAAMC,WAAW,GAAG,IAAIC,GAAG,CACzB,eAAe,EACdJ,MAAM,CAASK,QAAQ,CAACC,MAC3B,CAAC,CAACC,QAAQ,CAAC,CAAC;AAEZd,QAAQ,CAACe,MAAM,CACblB,KAAA,CAAAmB,aAAA,CAACjB,MAAM;EAACO,QAAQ,EAAEA;AAAS,GACzBT,KAAA,CAAAmB,aAAA,CAACd,qBAAqB;EAACQ,WAAW,EAAEA,WAAY;EAACO,QAAQ,EAAE,CAAC,CAACX;AAAS,CAAE,CAAC,EACzET,KAAA,CAAAmB,aAAA,CAACb,SAAS,MAAE,CACN,CAAC,EACTe,QAAQ,CAACC,cAAc,CAAC,WAAW,CACrC,CAAC"}
|
|
1
|
+
{"version":3,"file":"App.js","names":["React","BrowserRouter","Router","ReactDOM","createGlobalStyle","StandaloneApiExplorer","BodyReset","_templateObject","_taggedTemplateLiteral","basename","window","LOOKER_DEV_PORTAL","undefined","versionsUrl","URL","location","origin","toString","render","createElement","headless","document","getElementById"],"sources":["../../src/App.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 React from 'react';\nimport { BrowserRouter as Router } from 'react-router-dom';\nimport ReactDOM from 'react-dom';\nimport { createGlobalStyle } from 'styled-components';\nimport { StandaloneApiExplorer } from './StandaloneApiExplorer';\n\nconst BodyReset = createGlobalStyle`\n body {\n margin: 0;\n }\n`;\n\nconst basename = (window as any).LOOKER_DEV_PORTAL\n ? (window as any).LOOKER_DEV_PORTAL.basename\n : undefined;\n\nconst versionsUrl = new URL(\n 'versions.json',\n (window as any).location.origin\n).toString();\n\nReactDOM.render(\n <Router basename={basename}>\n <StandaloneApiExplorer versionsUrl={versionsUrl} headless={!!basename} />\n <BodyReset />\n </Router>,\n document.getElementById('container')\n);\n"],"mappings":";;AA0BA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,aAAa,IAAIC,MAAM,QAAQ,kBAAkB;AAC1D,OAAOC,QAAQ,MAAM,WAAW;AAChC,SAASC,iBAAiB,QAAQ,mBAAmB;AACrD,SAASC,qBAAqB,QAAQ,yBAAyB;AAE/D,IAAMC,SAAS,GAAGF,iBAAiB,CAAAG,eAAA,KAAAA,eAAA,GAAAC,sBAAA,yCAIlC;AAED,IAAMC,QAAQ,GAAIC,MAAM,CAASC,iBAAiB,GAC7CD,MAAM,CAASC,iBAAiB,CAACF,QAAQ,GAC1CG,SAAS;AAEb,IAAMC,WAAW,GAAG,IAAIC,GAAG,CACzB,eAAe,EACdJ,MAAM,CAASK,QAAQ,CAACC,MAC3B,CAAC,CAACC,QAAQ,CAAC,CAAC;AAEZd,QAAQ,CAACe,MAAM,CACblB,KAAA,CAAAmB,aAAA,CAACjB,MAAM;EAACO,QAAQ,EAAEA;AAAS,GACzBT,KAAA,CAAAmB,aAAA,CAACd,qBAAqB;EAACQ,WAAW,EAAEA,WAAY;EAACO,QAAQ,EAAE,CAAC,CAACX;AAAS,CAAE,CAAC,EACzET,KAAA,CAAAmB,aAAA,CAACb,SAAS,MAAE,CACN,CAAC,EACTe,QAAQ,CAACC,cAAc,CAAC,WAAW,CACrC,CAAC","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
function asyncGeneratorStep(
|
|
2
|
-
function _asyncToGenerator(
|
|
1
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
2
|
+
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
3
3
|
import React, { useEffect, useState } from 'react';
|
|
4
4
|
import { RunItProvider, initRunItSdk } from '@looker/run-it';
|
|
5
5
|
import { OAuthScene } from '@looker/extension-utils';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StandaloneApiExplorer.js","names":["React","useEffect","useState","RunItProvider","initRunItSdk","OAuthScene","Provider","useLocation","ApiExplorer","store","ApixAdaptor","oAuthPath","Loader","StandaloneApiExplorer","_ref","headless","browserAdaptor","window","origin","location","oauthReturn","pathname","concat","sdk","hasToken","setHasToken","authSession","isAuthenticated","canLogin","settings","authIsConfigured","token","sessionStorage","getItem","session","tokenObj","JSON","parse","activeToken","setToken","login","_ref2","_asyncToGenerator","apply","arguments","looker_url","getStoredConfig","createElement","basePath","themeOverrides","message","Fragment","adaptor"],"sources":["../../src/StandaloneApiExplorer.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, useState } from 'react';\nimport { RunItProvider, initRunItSdk } from '@looker/run-it';\nimport type { OAuthConfigProvider } from '@looker/extension-utils';\nimport { OAuthScene } from '@looker/extension-utils';\nimport { Provider } from 'react-redux';\nimport { useLocation } from 'react-router';\n\nimport { ApiExplorer } from './ApiExplorer';\nimport { store } from './state';\nimport { ApixAdaptor, oAuthPath } from './utils';\nimport { Loader } from './components';\n\nexport interface StandaloneApiExplorerProps {\n headless?: boolean;\n versionsUrl: string;\n}\n\nexport const StandaloneApiExplorer: FC<StandaloneApiExplorerProps> = ({\n headless = false,\n}) => {\n const [browserAdaptor] = useState(\n new ApixAdaptor(initRunItSdk(), window.origin)\n );\n const location = useLocation();\n const oauthReturn = location.pathname === `/${oAuthPath}`;\n const sdk = browserAdaptor.sdk;\n const [hasToken, setHasToken] = useState(sdk.authSession.isAuthenticated());\n\n const canLogin =\n (sdk.authSession.settings as OAuthConfigProvider).authIsConfigured() &&\n !sdk.authSession.isAuthenticated() &&\n !oauthReturn &&\n !hasToken;\n\n useEffect(() => {\n const token = sessionStorage.getItem('LOOKER_TEST_TOKEN');\n if (token) {\n const session = sdk.authSession as any;\n const tokenObj = JSON.parse(token);\n session.activeToken.setToken(tokenObj);\n setHasToken(true);\n } else {\n const login = async () => await browserAdaptor.login();\n if (canLogin) {\n login();\n }\n }\n }, [browserAdaptor, canLogin, sdk.authSession]);\n\n const { looker_url } = (\n sdk.authSession.settings as OAuthConfigProvider\n ).getStoredConfig();\n\n return (\n <Provider store={store}>\n <RunItProvider basePath=\"/api/4.0\">\n {canLogin ? (\n <Loader\n themeOverrides={browserAdaptor.themeOverrides()}\n message={`Configuration found. Logging into ${looker_url}`}\n />\n ) : (\n <>\n {oauthReturn ? (\n <OAuthScene adaptor={browserAdaptor} />\n ) : (\n <ApiExplorer adaptor={browserAdaptor} headless={headless} />\n )}\n </>\n )}\n </RunItProvider>\n </Provider>\n );\n};\n"],"mappings":";;AA2BA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAClD,SAASC,aAAa,EAAEC,YAAY,QAAQ,gBAAgB;AAE5D,SAASC,UAAU,QAAQ,yBAAyB;AACpD,SAASC,QAAQ,QAAQ,aAAa;AACtC,SAASC,WAAW,QAAQ,cAAc;AAE1C,SAASC,WAAW,QAAQ,eAAe;AAC3C,SAASC,KAAK,QAAQ,SAAS;AAC/B,SAASC,WAAW,EAAEC,SAAS,QAAQ,SAAS;AAChD,SAASC,MAAM,QAAQ,cAAc;AAOrC,OAAO,IAAMC,qBAAqD,GAAGC,IAAA,IAE/D;EAAA,IAFgE;IACpEC,QAAQ,GAAG;EACb,CAAC,GAAAD,IAAA;EACC,IAAM,CAACE,cAAc,CAAC,GAAGd,QAAQ,CAC/B,IAAIQ,WAAW,CAACN,YAAY,CAAC,CAAC,EAAEa,MAAM,CAACC,MAAM,CAC/C,CAAC;EACD,IAAMC,QAAQ,GAAGZ,WAAW,CAAC,CAAC;EAC9B,IAAMa,WAAW,GAAGD,QAAQ,CAACE,QAAQ,SAAAC,M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CAAA+C,aAAA,CAAC5C,aAAa;IAAC6C,QAAQ,EAAC;EAAU,GAC/BpB,QAAQ,GACP5B,KAAA,CAAA+C,aAAA,CAACnC,MAAM;IACLqC,cAAc,EAAEjC,cAAc,CAACiC,cAAc,CAAC,CAAE;IAChDC,OAAO,uCAAA5B,MAAA,CAAuCuB,UAAU;EAAG,CAC5D,CAAC,GAEF7C,KAAA,CAAA+C,aAAA,CAAA/C,KAAA,CAAAmD,QAAA,QACG/B,WAAW,GACVpB,KAAA,CAAA+C,aAAA,CAAC1C,UAAU;IAAC+C,OAAO,EAAEpC;EAAe,CAAE,CAAC,GAEvChB,KAAA,CAAA+C,aAAA,CAACvC,WAAW;IAAC4C,OAAO,EAAEpC,cAAe;IAACD,QAAQ,EAAEA;EAAS,CAAE,CAE7D,CAES,CACP,CAAC;AAEf,CAAC"}
|
|
1
|
+
{"version":3,"file":"StandaloneApiExplorer.js","names":["React","useEffect","useState","RunItProvider","initRunItSdk","OAuthScene","Provider","useLocation","ApiExplorer","store","ApixAdaptor","oAuthPath","Loader","StandaloneApiExplorer","_ref","headless","browserAdaptor","window","origin","location","oauthReturn","pathname","concat","sdk","hasToken","setHasToken","authSession","isAuthenticated","canLogin","settings","authIsConfigured","token","sessionStorage","getItem","session","tokenObj","JSON","parse","activeToken","setToken","login","_ref2","_asyncToGenerator","apply","arguments","looker_url","getStoredConfig","createElement","basePath","themeOverrides","message","Fragment","adaptor"],"sources":["../../src/StandaloneApiExplorer.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, useState } from 'react';\nimport { RunItProvider, initRunItSdk } from '@looker/run-it';\nimport type { OAuthConfigProvider } from '@looker/extension-utils';\nimport { OAuthScene } from '@looker/extension-utils';\nimport { Provider } from 'react-redux';\nimport { useLocation } from 'react-router';\n\nimport { ApiExplorer } from './ApiExplorer';\nimport { store } from './state';\nimport { ApixAdaptor, oAuthPath } from './utils';\nimport { Loader } from './components';\n\nexport interface StandaloneApiExplorerProps {\n headless?: boolean;\n versionsUrl: string;\n}\n\nexport const StandaloneApiExplorer: FC<StandaloneApiExplorerProps> = ({\n headless = false,\n}) => {\n const [browserAdaptor] = useState(\n new ApixAdaptor(initRunItSdk(), window.origin)\n );\n const location = useLocation();\n const oauthReturn = location.pathname === `/${oAuthPath}`;\n const sdk = browserAdaptor.sdk;\n const [hasToken, setHasToken] = useState(sdk.authSession.isAuthenticated());\n\n const canLogin =\n (sdk.authSession.settings as OAuthConfigProvider).authIsConfigured() &&\n !sdk.authSession.isAuthenticated() &&\n !oauthReturn &&\n !hasToken;\n\n useEffect(() => {\n const token = sessionStorage.getItem('LOOKER_TEST_TOKEN');\n if (token) {\n const session = sdk.authSession as any;\n const tokenObj = JSON.parse(token);\n session.activeToken.setToken(tokenObj);\n setHasToken(true);\n } else {\n const login = async () => await browserAdaptor.login();\n if (canLogin) {\n login();\n }\n }\n }, [browserAdaptor, canLogin, sdk.authSession]);\n\n const { looker_url } = (\n sdk.authSession.settings as OAuthConfigProvider\n ).getStoredConfig();\n\n return (\n <Provider store={store}>\n <RunItProvider basePath=\"/api/4.0\">\n {canLogin ? (\n <Loader\n themeOverrides={browserAdaptor.themeOverrides()}\n message={`Configuration found. Logging into ${looker_url}`}\n />\n ) : (\n <>\n {oauthReturn ? (\n <OAuthScene adaptor={browserAdaptor} />\n ) : (\n <ApiExplorer adaptor={browserAdaptor} headless={headless} />\n )}\n </>\n )}\n </RunItProvider>\n </Provider>\n );\n};\n"],"mappings":";;AA2BA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAClD,SAASC,aAAa,EAAEC,YAAY,QAAQ,gBAAgB;AAE5D,SAASC,UAAU,QAAQ,yBAAyB;AACpD,SAASC,QAAQ,QAAQ,aAAa;AACtC,SAASC,WAAW,QAAQ,cAAc;AAE1C,SAASC,WAAW,QAAQ,eAAe;AAC3C,SAASC,KAAK,QAAQ,SAAS;AAC/B,SAASC,WAAW,EAAEC,SAAS,QAAQ,SAAS;AAChD,SAASC,MAAM,QAAQ,cAAc;AAOrC,OAAO,IAAMC,qBAAqD,GAAGC,IAAA,IAE/D;EAAA,IAFgE;IACpEC,QAAQ,GAAG;EACb,CAAC,GAAAD,IAAA;EACC,IAAM,CAACE,cAAc,CAAC,GAAGd,QAAQ,CAC/B,IAAIQ,WAAW,CAACN,YAAY,CAAC,CAAC,EAAEa,MAAM,CAACC,MAAM,CAC/C,CAAC;EACD,IAAMC,QAAQ,GAAGZ,WAAW,CAAC,CAAC;EAC9B,IAAMa,WAAW,GAAGD,QAAQ,CAACE,QAAQ,SAAAC,MAAA,CAASX,SAAS,CAAE;EACzD,IAAMY,GAAG,GAAGP,cAAc,CAACO,GAAG;EAC9B,IAAM,CAACC,QAAQ,EAAEC,WAAW,CAAC,GAAGvB,QAAQ,CAACqB,GAAG,CAACG,WAAW,CAACC,eAAe,CAAC,CAAC,CAAC;EAE3E,IA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A,CAAuCuB,UAAU;EAAG,CAC5D,CAAC,GAEF7C,KAAA,CAAA+C,aAAA,CAAA/C,KAAA,CAAAmD,QAAA,QACG/B,WAAW,GACVpB,KAAA,CAAA+C,aAAA,CAAC1C,UAAU;IAAC+C,OAAO,EAAEpC;EAAe,CAAE,CAAC,GAEvChB,KAAA,CAAA+C,aAAA,CAACvC,WAAW;IAAC4C,OAAO,EAAEpC,cAAe;IAACD,QAAQ,EAAEA;EAAS,CAAE,CAE7D,CAES,CACP,CAAC;AAEf,CAAC","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
function asyncGeneratorStep(
|
|
2
|
-
function _asyncToGenerator(
|
|
1
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
2
|
+
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
3
3
|
import { ButtonOutline, Link, MessageBar } from '@looker/components';
|
|
4
4
|
import React, { useEffect, useState } from 'react';
|
|
5
5
|
var LOCAL_STORAGE_KEY = 'api-40-ga-apix-banner';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Banner.js","names":["ButtonOutline","Link","MessageBar","React","useEffect","useState","LOCAL_STORAGE_KEY","LOCAL_STORAGE_VALUE","Banner","_ref","adaptor","specs","isOpen","setOpen","onLoad","createElement","intent","onPrimaryClick","onClose","secondaryAction","href","target","size","innerOnLoad","_innerOnLoad","apply","arguments","_asyncToGenerator","is40Stable","status","wasDismissed","localStorageGetItem","isExtension","localStorageSetItem"],"sources":["../../../../src/components/Banner/Banner.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 { ButtonOutline, Link, MessageBar } from '@looker/components';\nimport type { IEnvironmentAdaptor } from '@looker/extension-utils';\nimport type { SpecList } from '@looker/sdk-codegen';\nimport type { FC } from 'react';\nimport React, { useEffect, useState } from 'react';\n\nconst LOCAL_STORAGE_KEY = 'api-40-ga-apix-banner';\nconst LOCAL_STORAGE_VALUE = 'dismissed';\n\nexport interface BannerProps {\n adaptor: IEnvironmentAdaptor;\n specs: SpecList;\n}\n\nexport const Banner: FC<BannerProps> = ({ adaptor, specs }) => {\n const [isOpen, setOpen] = useState(false);\n useEffect(onLoad, []);\n\n if (isOpen) {\n return (\n <MessageBar\n intent=\"inform\"\n onPrimaryClick={onClose}\n secondaryAction={\n <Link\n href=\"https://developers.looker.com/api/advanced-usage/version-4-ga\"\n target=\"_blank\"\n >\n <ButtonOutline size=\"small\">Announcement</ButtonOutline>\n </Link>\n }\n >\n API 4.0 moves from Beta to General Availability in Looker 22.4 with\n additions and possible breaking changes. Read the announcement to see\n how this affects you.\n </MessageBar>\n );\n } else {\n return null;\n }\n\n function onLoad() {\n // Following best practice with inner async function\n // https://github.com/facebook/react/issues/14326\n async function innerOnLoad() {\n // 4.0 is stable in Looker 22.4+. 4.0 is default or `current` in 22.4+.\n // Still check for `stable` just in case new version comes along.\n const is40Stable =\n specs['4.0'].status === 'stable' || specs['4.0'].status === 'current';\n const wasDismissed =\n (await adaptor.localStorageGetItem(LOCAL_STORAGE_KEY)) ===\n LOCAL_STORAGE_VALUE;\n setOpen(!is40Stable && !wasDismissed && adaptor.isExtension());\n }\n innerOnLoad();\n }\n\n function onClose() {\n adaptor.localStorageSetItem(LOCAL_STORAGE_KEY, LOCAL_STORAGE_VALUE);\n setOpen(false);\n }\n};\n"],"mappings":";;AAyBA,SAASA,aAAa,EAAEC,IAAI,EAAEC,UAAU,QAAQ,oBAAoB;AAIpE,OAAOC,KAAK,IAAIC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAElD,IAAMC,iBAAiB,GAAG,uBAAuB;AACjD,IAAMC,mBAAmB,GAAG,WAAW;AAOvC,OAAO,IAAMC,MAAuB,GAAGC,IAAA,IAAwB;EAAA,IAAvB;IAAEC,OAAO;IAAEC;EAAM,CAAC,GAAAF,IAAA;EACxD,IAAM,CAACG,MAAM,EAAEC,OAAO,CAAC,GAAGR,QAAQ,CAAC,KAAK,CAAC;EACzCD,SAAS,CAACU,MAAM,EAAE,EAAE,CAAC;EAErB,IAAIF,MAAM,EAAE;IACV,OACET,KAAA,CAAAY,aAAA,CAACb,UAAU;MACTc,MAAM,EAAC,QAAQ;MACfC,cAAc,EAAEC,OAAQ;MACxBC,eAAe,EACbhB,KAAA,CAAAY,aAAA,CAACd,IAAI;QACHmB,IAAI,EAAC,+DAA+D;QACpEC,MAAM,EAAC;MAAQ,GAEflB,KAAA,CAAAY,aAAA,CAACf,aAAa;QAACsB,IAAI,EAAC;MAAO,GAAC,cAA2B,CACnD;IACP,GACF,iKAIW,CAAC;EAEjB,CAAC,MAAM;IACL,OAAO,IAAI;EACb;EAEA,SAASR,MAAMA,CAAA,EAAG;IAAA,SAGDS,WAAWA,CAAA;MAAA,OAAAC,YAAA,CAAAC,KAAA,OAAAC,SAAA;IAAA;IAAA,SAAAF,aAAA;MAAAA,YAAA,GAAAG,iBAAA,CAA1B,aAA6B;QAG3B,IAAMC,UAAU,GACdjB,KAAK,CAAC,KAAK,CAAC,CAACkB,MAAM,KAAK,QAAQ,IAAIlB,KAAK,CAAC,KAAK,CAAC,CAACkB,MAAM,KAAK,SAAS;QACvE,IAAMC,YAAY,GAChB,OAAOpB,OAAO,CAACqB,mBAAmB,CAACzB,iBAAiB,CAAC,MACrDC,mBAAmB;QACrBM,OAAO,CAAC,CAACe,UAAU,IAAI,CAACE,YAAY,IAAIpB,OAAO,CAACsB,WAAW,CAAC,CAAC,CAAC;MAChE,CAAC;MAAA,OAAAR,YAAA,CAAAC,KAAA,OAAAC,SAAA;IAAA;IACDH,WAAW,CAAC,CAAC;EACf;EAEA,SAASL,OAAOA,CAAA,EAAG;IACjBR,OAAO,CAACuB,mBAAmB,CAAC3B,iBAAiB,EAAEC,mBAAmB,CAAC;IACnEM,OAAO,CAAC,KAAK,CAAC;EAChB;AACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"Banner.js","names":["ButtonOutline","Link","MessageBar","React","useEffect","useState","LOCAL_STORAGE_KEY","LOCAL_STORAGE_VALUE","Banner","_ref","adaptor","specs","isOpen","setOpen","onLoad","createElement","intent","onPrimaryClick","onClose","secondaryAction","href","target","size","innerOnLoad","_innerOnLoad","apply","arguments","_asyncToGenerator","is40Stable","status","wasDismissed","localStorageGetItem","isExtension","localStorageSetItem"],"sources":["../../../../src/components/Banner/Banner.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 { ButtonOutline, Link, MessageBar } from '@looker/components';\nimport type { IEnvironmentAdaptor } from '@looker/extension-utils';\nimport type { SpecList } from '@looker/sdk-codegen';\nimport type { FC } from 'react';\nimport React, { useEffect, useState } from 'react';\n\nconst LOCAL_STORAGE_KEY = 'api-40-ga-apix-banner';\nconst LOCAL_STORAGE_VALUE = 'dismissed';\n\nexport interface BannerProps {\n adaptor: IEnvironmentAdaptor;\n specs: SpecList;\n}\n\nexport const Banner: FC<BannerProps> = ({ adaptor, specs }) => {\n const [isOpen, setOpen] = useState(false);\n useEffect(onLoad, []);\n\n if (isOpen) {\n return (\n <MessageBar\n intent=\"inform\"\n onPrimaryClick={onClose}\n secondaryAction={\n <Link\n href=\"https://developers.looker.com/api/advanced-usage/version-4-ga\"\n target=\"_blank\"\n >\n <ButtonOutline size=\"small\">Announcement</ButtonOutline>\n </Link>\n }\n >\n API 4.0 moves from Beta to General Availability in Looker 22.4 with\n additions and possible breaking changes. Read the announcement to see\n how this affects you.\n </MessageBar>\n );\n } else {\n return null;\n }\n\n function onLoad() {\n // Following best practice with inner async function\n // https://github.com/facebook/react/issues/14326\n async function innerOnLoad() {\n // 4.0 is stable in Looker 22.4+. 4.0 is default or `current` in 22.4+.\n // Still check for `stable` just in case new version comes along.\n const is40Stable =\n specs['4.0'].status === 'stable' || specs['4.0'].status === 'current';\n const wasDismissed =\n (await adaptor.localStorageGetItem(LOCAL_STORAGE_KEY)) ===\n LOCAL_STORAGE_VALUE;\n setOpen(!is40Stable && !wasDismissed && adaptor.isExtension());\n }\n innerOnLoad();\n }\n\n function onClose() {\n adaptor.localStorageSetItem(LOCAL_STORAGE_KEY, LOCAL_STORAGE_VALUE);\n setOpen(false);\n }\n};\n"],"mappings":";;AAyBA,SAASA,aAAa,EAAEC,IAAI,EAAEC,UAAU,QAAQ,oBAAoB;AAIpE,OAAOC,KAAK,IAAIC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAElD,IAAMC,iBAAiB,GAAG,uBAAuB;AACjD,IAAMC,mBAAmB,GAAG,WAAW;AAOvC,OAAO,IAAMC,MAAuB,GAAGC,IAAA,IAAwB;EAAA,IAAvB;IAAEC,OAAO;IAAEC;EAAM,CAAC,GAAAF,IAAA;EACxD,IAAM,CAACG,MAAM,EAAEC,OAAO,CAAC,GAAGR,QAAQ,CAAC,KAAK,CAAC;EACzCD,SAAS,CAACU,MAAM,EAAE,EAAE,CAAC;EAErB,IAAIF,MAAM,EAAE;IACV,OACET,KAAA,CAAAY,aAAA,CAACb,UAAU;MACTc,MAAM,EAAC,QAAQ;MACfC,cAAc,EAAEC,OAAQ;MACxBC,eAAe,EACbhB,KAAA,CAAAY,aAAA,CAACd,IAAI;QACHmB,IAAI,EAAC,+DAA+D;QACpEC,MAAM,EAAC;MAAQ,GAEflB,KAAA,CAAAY,aAAA,CAACf,aAAa;QAACsB,IAAI,EAAC;MAAO,GAAC,cAA2B,CACnD;IACP,GACF,iKAIW,CAAC;EAEjB,CAAC,MAAM;IACL,OAAO,IAAI;EACb;EAEA,SAASR,MAAMA,CAAA,EAAG;IAAA,SAGDS,WAAWA,CAAA;MAAA,OAAAC,YAAA,CAAAC,KAAA,OAAAC,SAAA;IAAA;IAAA,SAAAF,aAAA;MAAAA,YAAA,GAAAG,iBAAA,CAA1B,aAA6B;QAG3B,IAAMC,UAAU,GACdjB,KAAK,CAAC,KAAK,CAAC,CAACkB,MAAM,KAAK,QAAQ,IAAIlB,KAAK,CAAC,KAAK,CAAC,CAACkB,MAAM,KAAK,SAAS;QACvE,IAAMC,YAAY,GAChB,OAAOpB,OAAO,CAACqB,mBAAmB,CAACzB,iBAAiB,CAAC,MACrDC,mBAAmB;QACrBM,OAAO,CAAC,CAACe,UAAU,IAAI,CAACE,YAAY,IAAIpB,OAAO,CAACsB,WAAW,CAAC,CAAC,CAAC;MAChE,CAAC;MAAA,OAAAR,YAAA,CAAAC,KAAA,OAAAC,SAAA;IAAA;IACDH,WAAW,CAAC,CAAC;EACf;EAEA,SAASL,OAAOA,CAAA,EAAG;IACjBR,OAAO,CAACuB,mBAAmB,CAAC3B,iBAAiB,EAAEC,mBAAmB,CAAC;IACnEM,OAAO,CAAC,KAAK,CAAC;EAChB;AACF,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["Banner"],"sources":["../../../../src/components/Banner/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 { Banner } from './Banner';\n"],"mappings":"AAyBA,SAASA,MAAM,QAAQ,UAAU"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["Banner"],"sources":["../../../../src/components/Banner/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 { Banner } from './Banner';\n"],"mappings":"AAyBA,SAASA,MAAM,QAAQ,UAAU","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocActivityType.js","names":["React","Badge","Code","Tooltip","DocActivityType","_ref","method","createElement","Fragment","activityType","color","textAlign","content","intent"],"sources":["../../../../src/components/DocActivityType/DocActivityType.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 from 'react';\nimport { Badge, Code, Tooltip } from '@looker/components';\nimport type { IMethod } from '@looker/sdk-codegen';\n\ninterface DocActivityTypeProps {\n method: IMethod;\n}\nexport const DocActivityType: FC<DocActivityTypeProps> = ({ method }) => (\n <>\n {method.activityType === 'db_query' && (\n <>\n <Code color=\"palette.charcoal500\">{'db_query'}</Code>\n <Tooltip\n textAlign=\"left\"\n content={\n <>\n Call volume for this endpoint counts toward the \"db_query\" API\n activity category.\n </>\n }\n >\n <span>\n <Badge intent=\"neutral\">$</Badge>\n </span>\n </Tooltip>\n </>\n )}\n </>\n);\n"],"mappings":"AA0BA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,IAAI,EAAEC,OAAO,QAAQ,oBAAoB;AAMzD,OAAO,IAAMC,eAAyC,GAAGC,IAAA;EAAA,IAAC;IAAEC;EAAO,CAAC,GAAAD,IAAA;EAAA,OAClEL,KAAA,CAAAO,aAAA,CAAAP,KAAA,CAAAQ,QAAA,QACGF,MAAM,CAACG,YAAY,KAAK,UAAU,IACjCT,KAAA,CAAAO,aAAA,CAAAP,KAAA,CAAAQ,QAAA,QACER,KAAA,CAAAO,aAAA,CAACL,IAAI;IAACQ,KAAK,EAAC;EAAqB,GAAE,UAAiB,CAAC,EACrDV,KAAA,CAAAO,aAAA,CAACJ,OAAO;IACNQ,SAAS,EAAC,MAAM;IAChBC,OAAO,EACLZ,KAAA,CAAAO,aAAA,CAAAP,KAAA,CAAAQ,QAAA,QAAE,qFAGA;EACH,GAEDR,KAAA,CAAAO,aAAA,eACEP,KAAA,CAAAO,aAAA,CAACN,KAAK;IAACY,MAAM,EAAC;EAAS,GAAC,GAAQ,CAC5B,CACC,CACT,CAEJ,CAAC;AAAA,CACJ"}
|
|
1
|
+
{"version":3,"file":"DocActivityType.js","names":["React","Badge","Code","Tooltip","DocActivityType","_ref","method","createElement","Fragment","activityType","color","textAlign","content","intent"],"sources":["../../../../src/components/DocActivityType/DocActivityType.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 from 'react';\nimport { Badge, Code, Tooltip } from '@looker/components';\nimport type { IMethod } from '@looker/sdk-codegen';\n\ninterface DocActivityTypeProps {\n method: IMethod;\n}\nexport const DocActivityType: FC<DocActivityTypeProps> = ({ method }) => (\n <>\n {method.activityType === 'db_query' && (\n <>\n <Code color=\"palette.charcoal500\">{'db_query'}</Code>\n <Tooltip\n textAlign=\"left\"\n content={\n <>\n Call volume for this endpoint counts toward the \"db_query\" API\n activity category.\n </>\n }\n >\n <span>\n <Badge intent=\"neutral\">$</Badge>\n </span>\n </Tooltip>\n </>\n )}\n </>\n);\n"],"mappings":"AA0BA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,IAAI,EAAEC,OAAO,QAAQ,oBAAoB;AAMzD,OAAO,IAAMC,eAAyC,GAAGC,IAAA;EAAA,IAAC;IAAEC;EAAO,CAAC,GAAAD,IAAA;EAAA,OAClEL,KAAA,CAAAO,aAAA,CAAAP,KAAA,CAAAQ,QAAA,QACGF,MAAM,CAACG,YAAY,KAAK,UAAU,IACjCT,KAAA,CAAAO,aAAA,CAAAP,KAAA,CAAAQ,QAAA,QACER,KAAA,CAAAO,aAAA,CAACL,IAAI;IAACQ,KAAK,EAAC;EAAqB,GAAE,UAAiB,CAAC,EACrDV,KAAA,CAAAO,aAAA,CAACJ,OAAO;IACNQ,SAAS,EAAC,MAAM;IAChBC,OAAO,EACLZ,KAAA,CAAAO,aAAA,CAAAP,KAAA,CAAAQ,QAAA,QAAE,qFAGA;EACH,GAEDR,KAAA,CAAAO,aAAA,eACEP,KAAA,CAAAO,aAAA,CAACN,KAAK;IAACY,MAAM,EAAC;EAAS,GAAC,GAAQ,CAC5B,CACC,CACT,CAEJ,CAAC;AAAA,CACJ","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["DocActivityType"],"sources":["../../../../src/components/DocActivityType/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 { DocActivityType } from './DocActivityType';\n"],"mappings":"AAyBA,SAASA,eAAe,QAAQ,mBAAmB"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["DocActivityType"],"sources":["../../../../src/components/DocActivityType/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 { DocActivityType } from './DocActivityType';\n"],"mappings":"AAyBA,SAASA,eAAe,QAAQ,mBAAmB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocCode.js","names":["React","findGenerator","CodeDisplay","useSelector","selectSearchPattern","DocCode","_ref","code","language","searchPattern","gen","toLocaleLowerCase","createElement","pattern"],"sources":["../../../../src/components/DocCode/DocCode.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 from 'react';\nimport { findGenerator } from '@looker/sdk-codegen';\nimport { CodeDisplay } from '@looker/code-editor';\nimport { useSelector } from 'react-redux';\n\nimport { selectSearchPattern } from '../../state';\n\ninterface DocCodeProps {\n code: string;\n language?: string;\n}\n\nexport const DocCode: FC<DocCodeProps> = ({ code, language = 'json' }) => {\n const searchPattern = useSelector(selectSearchPattern);\n const gen = findGenerator(language);\n if (gen) language = gen.language.toLocaleLowerCase();\n\n return (\n <CodeDisplay language={language} code={code} pattern={searchPattern} />\n );\n};\n"],"mappings":"AA2BA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,aAAa,QAAQ,qBAAqB;AACnD,SAASC,WAAW,QAAQ,qBAAqB;AACjD,SAASC,WAAW,QAAQ,aAAa;AAEzC,SAASC,mBAAmB,QAAQ,aAAa;AAOjD,OAAO,IAAMC,OAAyB,GAAGC,IAAA,IAAiC;EAAA,IAAhC;IAAEC,IAAI;IAAEC,QAAQ,GAAG;EAAO,CAAC,GAAAF,IAAA;EACnE,IAAMG,aAAa,GAAGN,WAAW,CAACC,mBAAmB,CAAC;EACtD,IAAMM,GAAG,GAAGT,aAAa,CAACO,QAAQ,CAAC;EACnC,IAAIE,GAAG,EAAEF,QAAQ,GAAGE,GAAG,CAACF,QAAQ,CAACG,iBAAiB,CAAC,CAAC;EAEpD,OACEX,KAAA,CAAAY,aAAA,CAACV,WAAW;IAACM,QAAQ,EAAEA,QAAS;IAACD,IAAI,EAAEA,IAAK;IAACM,OAAO,EAAEJ;EAAc,CAAE,CAAC;AAE3E,CAAC"}
|
|
1
|
+
{"version":3,"file":"DocCode.js","names":["React","findGenerator","CodeDisplay","useSelector","selectSearchPattern","DocCode","_ref","code","language","searchPattern","gen","toLocaleLowerCase","createElement","pattern"],"sources":["../../../../src/components/DocCode/DocCode.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 from 'react';\nimport { findGenerator } from '@looker/sdk-codegen';\nimport { CodeDisplay } from '@looker/code-editor';\nimport { useSelector } from 'react-redux';\n\nimport { selectSearchPattern } from '../../state';\n\ninterface DocCodeProps {\n code: string;\n language?: string;\n}\n\nexport const DocCode: FC<DocCodeProps> = ({ code, language = 'json' }) => {\n const searchPattern = useSelector(selectSearchPattern);\n const gen = findGenerator(language);\n if (gen) language = gen.language.toLocaleLowerCase();\n\n return (\n <CodeDisplay language={language} code={code} pattern={searchPattern} />\n );\n};\n"],"mappings":"AA2BA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,aAAa,QAAQ,qBAAqB;AACnD,SAASC,WAAW,QAAQ,qBAAqB;AACjD,SAASC,WAAW,QAAQ,aAAa;AAEzC,SAASC,mBAAmB,QAAQ,aAAa;AAOjD,OAAO,IAAMC,OAAyB,GAAGC,IAAA,IAAiC;EAAA,IAAhC;IAAEC,IAAI;IAAEC,QAAQ,GAAG;EAAO,CAAC,GAAAF,IAAA;EACnE,IAAMG,aAAa,GAAGN,WAAW,CAACC,mBAAmB,CAAC;EACtD,IAAMM,GAAG,GAAGT,aAAa,CAACO,QAAQ,CAAC;EACnC,IAAIE,GAAG,EAAEF,QAAQ,GAAGE,GAAG,CAACF,QAAQ,CAACG,iBAAiB,CAAC,CAAC;EAEpD,OACEX,KAAA,CAAAY,aAAA,CAACV,WAAW;IAACM,QAAQ,EAAEA,QAAS;IAACD,IAAI,EAAEA,IAAK;IAACM,OAAO,EAAEJ;EAAc,CAAE,CAAC;AAE3E,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["DocCode"],"sources":["../../../../src/components/DocCode/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 { DocCode } from './DocCode';\n"],"mappings":"AAyBA,SAASA,OAAO,QAAQ,WAAW"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["DocCode"],"sources":["../../../../src/components/DocCode/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 { DocCode } from './DocCode';\n"],"mappings":"AAyBA,SAASA,OAAO,QAAQ,WAAW","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocMarkdown.js","names":["React","Markdown","useSelector","getEnvAdaptor","selectSearchPattern","useNavigation","transformURL","DocMarkdown","_ref","source","specKey","searchPattern","navigate","linkClickHandler","pathname","url","startsWith","concat","adaptor","openBrowserWindow","createElement","pattern","transformLinkUri","bind"],"sources":["../../../../src/components/DocMarkdown/DocMarkdown.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 from 'react';\nimport { Markdown } from '@looker/code-editor';\nimport { useSelector } from 'react-redux';\nimport { getEnvAdaptor } from '@looker/extension-utils';\nimport { selectSearchPattern } from '../../state';\nimport { useNavigation } from '../../utils';\nimport { transformURL } from './utils';\n\ninterface DocMarkdownProps {\n source: string;\n specKey: string;\n}\n\nexport const DocMarkdown: FC<DocMarkdownProps> = ({ source, specKey }) => {\n const searchPattern = useSelector(selectSearchPattern);\n const { navigate } = useNavigation();\n\n const linkClickHandler = (pathname: string, url: string) => {\n if (pathname.startsWith(`/${specKey}`)) {\n navigate(pathname);\n } else if (url.startsWith(`/${specKey}`)) {\n navigate(url);\n } else if (url.startsWith('https://')) {\n const adaptor = getEnvAdaptor();\n adaptor.openBrowserWindow(url);\n }\n };\n return (\n <Markdown\n source={source}\n pattern={searchPattern}\n linkClickHandler={linkClickHandler}\n transformLinkUri={transformURL.bind(null, specKey)}\n />\n );\n};\n"],"mappings":"AA2BA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,QAAQ,qBAAqB;AAC9C,SAASC,WAAW,QAAQ,aAAa;AACzC,SAASC,aAAa,QAAQ,yBAAyB;AACvD,SAASC,mBAAmB,QAAQ,aAAa;AACjD,SAASC,aAAa,QAAQ,aAAa;AAC3C,SAASC,YAAY,QAAQ,SAAS;AAOtC,OAAO,IAAMC,WAAiC,GAAGC,IAAA,IAAyB;EAAA,IAAxB;IAAEC,MAAM;IAAEC;EAAQ,CAAC,GAAAF,IAAA;EACnE,IAAMG,aAAa,GAAGT,WAAW,CAACE,mBAAmB,CAAC;EACtD,IAAM;IAAEQ;EAAS,CAAC,GAAGP,aAAa,CAAC,CAAC;EAEpC,IAAMQ,gBAAgB,GAAGA,CAACC,QAAgB,EAAEC,GAAW,KAAK;IAC1D,IAAID,QAAQ,CAACE,UAAU,KAAAC,MAAA,CAAKP,OAAO,CAAE,CAAC,EAAE;MACtCE,QAAQ,CAACE,QAAQ,CAAC;IACpB,CAAC,MAAM,IAAIC,GAAG,CAACC,UAAU,KAAAC,MAAA,CAAKP,OAAO,CAAE,CAAC,EAAE;MACxCE,QAAQ,CAACG,GAAG,CAAC;IACf,CAAC,MAAM,IAAIA,GAAG,CAACC,UAAU,CAAC,UAAU,CAAC,EAAE;MACrC,IAAME,OAAO,GAAGf,aAAa,CAAC,CAAC;MAC/Be,OAAO,CAACC,iBAAiB,CAACJ,GAAG,CAAC;IAChC;EACF,CAAC;EACD,OACEf,KAAA,CAAAoB,aAAA,CAACnB,QAAQ;IACPQ,MAAM,EAAEA,MAAO;IACfY,OAAO,EAAEV,aAAc;IACvBE,gBAAgB,EAAEA,gBAAiB;IACnCS,gBAAgB,EAAEhB,YAAY,CAACiB,IAAI,CAAC,IAAI,EAAEb,OAAO;EAAE,CACpD,CAAC;AAEN,CAAC"}
|
|
1
|
+
{"version":3,"file":"DocMarkdown.js","names":["React","Markdown","useSelector","getEnvAdaptor","selectSearchPattern","useNavigation","transformURL","DocMarkdown","_ref","source","specKey","searchPattern","navigate","linkClickHandler","pathname","url","startsWith","concat","adaptor","openBrowserWindow","createElement","pattern","transformLinkUri","bind"],"sources":["../../../../src/components/DocMarkdown/DocMarkdown.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 from 'react';\nimport { Markdown } from '@looker/code-editor';\nimport { useSelector } from 'react-redux';\nimport { getEnvAdaptor } from '@looker/extension-utils';\nimport { selectSearchPattern } from '../../state';\nimport { useNavigation } from '../../utils';\nimport { transformURL } from './utils';\n\ninterface DocMarkdownProps {\n source: string;\n specKey: string;\n}\n\nexport const DocMarkdown: FC<DocMarkdownProps> = ({ source, specKey }) => {\n const searchPattern = useSelector(selectSearchPattern);\n const { navigate } = useNavigation();\n\n const linkClickHandler = (pathname: string, url: string) => {\n if (pathname.startsWith(`/${specKey}`)) {\n navigate(pathname);\n } else if (url.startsWith(`/${specKey}`)) {\n navigate(url);\n } else if (url.startsWith('https://')) {\n const adaptor = getEnvAdaptor();\n adaptor.openBrowserWindow(url);\n }\n };\n return (\n <Markdown\n source={source}\n pattern={searchPattern}\n linkClickHandler={linkClickHandler}\n transformLinkUri={transformURL.bind(null, specKey)}\n />\n );\n};\n"],"mappings":"AA2BA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,QAAQ,qBAAqB;AAC9C,SAASC,WAAW,QAAQ,aAAa;AACzC,SAASC,aAAa,QAAQ,yBAAyB;AACvD,SAASC,mBAAmB,QAAQ,aAAa;AACjD,SAASC,aAAa,QAAQ,aAAa;AAC3C,SAASC,YAAY,QAAQ,SAAS;AAOtC,OAAO,IAAMC,WAAiC,GAAGC,IAAA,IAAyB;EAAA,IAAxB;IAAEC,MAAM;IAAEC;EAAQ,CAAC,GAAAF,IAAA;EACnE,IAAMG,aAAa,GAAGT,WAAW,CAACE,mBAAmB,CAAC;EACtD,IAAM;IAAEQ;EAAS,CAAC,GAAGP,aAAa,CAAC,CAAC;EAEpC,IAAMQ,gBAAgB,GAAGA,CAACC,QAAgB,EAAEC,GAAW,KAAK;IAC1D,IAAID,QAAQ,CAACE,UAAU,KAAAC,MAAA,CAAKP,OAAO,CAAE,CAAC,EAAE;MACtCE,QAAQ,CAACE,QAAQ,CAAC;IACpB,CAAC,MAAM,IAAIC,GAAG,CAACC,UAAU,KAAAC,MAAA,CAAKP,OAAO,CAAE,CAAC,EAAE;MACxCE,QAAQ,CAACG,GAAG,CAAC;IACf,CAAC,MAAM,IAAIA,GAAG,CAACC,UAAU,CAAC,UAAU,CAAC,EAAE;MACrC,IAAME,OAAO,GAAGf,aAAa,CAAC,CAAC;MAC/Be,OAAO,CAACC,iBAAiB,CAACJ,GAAG,CAAC;IAChC;EACF,CAAC;EACD,OACEf,KAAA,CAAAoB,aAAA,CAACnB,QAAQ;IACPQ,MAAM,EAAEA,MAAO;IACfY,OAAO,EAAEV,aAAc;IACvBE,gBAAgB,EAAEA,gBAAiB;IACnCS,gBAAgB,EAAEhB,YAAY,CAACiB,IAAI,CAAC,IAAI,EAAEb,OAAO;EAAE,CACpD,CAAC;AAEN,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["DocMarkdown"],"sources":["../../../../src/components/DocMarkdown/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 { DocMarkdown } from './DocMarkdown';\n"],"mappings":"AAyBA,SAASA,WAAW,QAAQ,eAAe"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["DocMarkdown"],"sources":["../../../../src/components/DocMarkdown/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 { DocMarkdown } from './DocMarkdown';\n"],"mappings":"AAyBA,SAASA,WAAW,QAAQ,eAAe","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","names":["cleanURL","url","replace","remapHashURL","specKey","concat","transformURL"],"sources":["../../../../src/components/DocMarkdown/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\n/**\n * Remove mark tags from url\n * @param url\n * @returns a clean url\n */\nconst cleanURL = (url: string) =>\n (url || '')\n .replace(/<mark>/gi, '')\n .replace(/<\\/mark>/gi, '')\n .replace(/%3Cmark%3E/gi, '')\n .replace(/%3C\\/mark%3E/gi, '');\n\n/**\n * Remaps tag/method a hashbang url to match the MethodScene route.\n * @param url\n * @param specKey A string to identify the spec in the URL\n * @returns the cleaned and remapped hashbang url\n */\nexport const remapHashURL = (specKey: string, url: string) =>\n (url || '')\n // #!/:navVersion?/:methodTag/:methodName\n .replace(/#!\\/(:?\\d+\\.\\d+\\/)?(\\w+)\\/(\\w+)/gi, `/${specKey}/methods/$2/$3`)\n // #!/:navVersion/:methodTag\n .replace(/#!\\/(:?\\d+\\.\\d+\\/)?(\\w+)/gi, `/${specKey}/methods/$2`);\n\n/**\n * Clean urls from mark tags and remap tag/method hashbang urls to match the MethodScene route\n * @param specKey A string to identify the spec in the URL\n * @param url - url\n * Returns transformed url\n */\nexport const transformURL = (specKey: string, url: string) => {\n return remapHashURL(specKey, cleanURL(url));\n};\n"],"mappings":"AA+BA,IAAMA,QAAQ,GAAIC,GAAW,IAC3B,CAACA,GAAG,IAAI,EAAE,EACPC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CACvBA,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CACzBA,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC,CAC3BA,OAAO,CAAC,gBAAgB,EAAE,EAAE,CAAC;AAQlC,OAAO,IAAMC,YAAY,GAAGA,CAACC,OAAe,EAAEH,GAAW,KACvD,CAACA,GAAG,IAAI,EAAE,EAEPC,OAAO,CAAC,mCAAmC,MAAAG,MAAA,CAAMD,OAAO,mBAAgB,CAAC,CAEzEF,OAAO,CAAC,4BAA4B,MAAAG,MAAA,CAAMD,OAAO,gBAAa,CAAC;AAQpE,OAAO,IAAME,YAAY,GAAGA,CAACF,OAAe,EAAEH,GAAW,KAAK;EAC5D,OAAOE,YAAY,CAACC,OAAO,EAAEJ,QAAQ,CAACC,GAAG,CAAC,CAAC;AAC7C,CAAC"}
|
|
1
|
+
{"version":3,"file":"utils.js","names":["cleanURL","url","replace","remapHashURL","specKey","concat","transformURL"],"sources":["../../../../src/components/DocMarkdown/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\n/**\n * Remove mark tags from url\n * @param url\n * @returns a clean url\n */\nconst cleanURL = (url: string) =>\n (url || '')\n .replace(/<mark>/gi, '')\n .replace(/<\\/mark>/gi, '')\n .replace(/%3Cmark%3E/gi, '')\n .replace(/%3C\\/mark%3E/gi, '');\n\n/**\n * Remaps tag/method a hashbang url to match the MethodScene route.\n * @param url\n * @param specKey A string to identify the spec in the URL\n * @returns the cleaned and remapped hashbang url\n */\nexport const remapHashURL = (specKey: string, url: string) =>\n (url || '')\n // #!/:navVersion?/:methodTag/:methodName\n .replace(/#!\\/(:?\\d+\\.\\d+\\/)?(\\w+)\\/(\\w+)/gi, `/${specKey}/methods/$2/$3`)\n // #!/:navVersion/:methodTag\n .replace(/#!\\/(:?\\d+\\.\\d+\\/)?(\\w+)/gi, `/${specKey}/methods/$2`);\n\n/**\n * Clean urls from mark tags and remap tag/method hashbang urls to match the MethodScene route\n * @param specKey A string to identify the spec in the URL\n * @param url - url\n * Returns transformed url\n */\nexport const transformURL = (specKey: string, url: string) => {\n return remapHashURL(specKey, cleanURL(url));\n};\n"],"mappings":"AA+BA,IAAMA,QAAQ,GAAIC,GAAW,IAC3B,CAACA,GAAG,IAAI,EAAE,EACPC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CACvBA,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CACzBA,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC,CAC3BA,OAAO,CAAC,gBAAgB,EAAE,EAAE,CAAC;AAQlC,OAAO,IAAMC,YAAY,GAAGA,CAACC,OAAe,EAAEH,GAAW,KACvD,CAACA,GAAG,IAAI,EAAE,EAEPC,OAAO,CAAC,mCAAmC,MAAAG,MAAA,CAAMD,OAAO,mBAAgB,CAAC,CAEzEF,OAAO,CAAC,4BAA4B,MAAAG,MAAA,CAAMD,OAAO,gBAAa,CAAC;AAQpE,OAAO,IAAME,YAAY,GAAGA,CAACF,OAAe,EAAEH,GAAW,KAAK;EAC5D,OAAOE,YAAY,CAACC,OAAO,EAAEJ,QAAQ,CAACC,GAAG,CAAC,CAAC;AAC7C,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocMethodSummary.js","names":["React","Card","CardContent","Flex","Space","Text","MethodBadge","RunItHeading","DocActivityType","DocRateLimited","DocSummaryStatus","DocMethodSummary","_ref","method","createElement","maxWidth","border","align","between","type","httpMethod","textAlign","minWidth","toUpperCase","alignItems","flexDirection","flex","mx","as","mb","pt","summary","color","endpoint","status"],"sources":["../../../../src/components/DocMethodSummary/DocMethodSummary.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 from 'react';\nimport { Card, CardContent, Flex, Space, Text } from '@looker/components';\nimport type { IMethod } from '@looker/sdk-codegen';\nimport { MethodBadge, RunItHeading } from '@looker/run-it';\nimport { DocActivityType, DocRateLimited } from '../../components';\nimport { DocSummaryStatus } from './DocSummaryStatus';\n\ninterface DocMethodSummaryProps {\n method: IMethod;\n}\n\nexport const DocMethodSummary: FC<DocMethodSummaryProps> = ({ method }) => (\n <Card maxWidth=\"50rem\" border>\n <CardContent>\n <Space align=\"start\" between>\n <MethodBadge\n type={method.httpMethod}\n textAlign=\"center\"\n minWidth=\"3.7625rem\"\n >\n {method.httpMethod.toUpperCase()}\n </MethodBadge>\n <Flex alignItems=\"start\" flexDirection=\"column\" flex=\"1\" mx=\"small\">\n <RunItHeading as=\"h3\" mb=\"0\" pt=\"0\">\n {method.summary}\n </RunItHeading>\n <Space>\n <DocRateLimited method={method} />\n <DocActivityType method={method} />\n </Space>\n <Text color=\"subdued\">{method.endpoint}</Text>\n </Flex>\n <DocSummaryStatus status={method.status} />\n </Space>\n </CardContent>\n </Card>\n);\n"],"mappings":"AA0BA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,WAAW,EAAEC,IAAI,EAAEC,KAAK,EAAEC,IAAI,QAAQ,oBAAoB;AAEzE,SAASC,WAAW,EAAEC,YAAY,QAAQ,gBAAgB;AAC1D,SAASC,eAAe,EAAEC,cAAc,QAAQ,kBAAkB;AAClE,SAASC,gBAAgB,QAAQ,oBAAoB;AAMrD,OAAO,IAAMC,gBAA2C,GAAGC,IAAA;EAAA,IAAC;IAAEC;EAAO,CAAC,GAAAD,IAAA;EAAA,OACpEZ,KAAA,CAAAc,aAAA,CAACb,IAAI;IAACc,QAAQ,EAAC,OAAO;IAACC,MAAM;EAAA,GAC3BhB,KAAA,CAAAc,aAAA,CAACZ,WAAW,QACVF,KAAA,CAAAc,aAAA,CAACV,KAAK;IAACa,KAAK,EAAC,OAAO;IAACC,OAAO;EAAA,GAC1BlB,KAAA,CAAAc,aAAA,CAACR,WAAW;IACVa,IAAI,EAAEN,MAAM,CAACO,UAAW;IACxBC,SAAS,EAAC,QAAQ;IAClBC,QAAQ,EAAC;EAAW,GAEnBT,MAAM,CAACO,UAAU,CAACG,WAAW,CAAC,CACpB,CAAC,EACdvB,KAAA,CAAAc,aAAA,CAACX,IAAI;IAACqB,UAAU,EAAC,OAAO;IAACC,aAAa,EAAC,QAAQ;IAACC,IAAI,EAAC,GAAG;IAACC,EAAE,EAAC;EAAO,GACjE3B,KAAA,CAAAc,aAAA,CAACP,YAAY;IAACqB,EAAE,EAAC,IAAI;IAACC,EAAE,EAAC,GAAG;IAACC,EAAE,EAAC;EAAG,GAChCjB,MAAM,CAACkB,OACI,CAAC,EACf/B,KAAA,CAAAc,aAAA,CAACV,KAAK,QACJJ,KAAA,CAAAc,aAAA,CAACL,cAAc;IAACI,MAAM,EAAEA;EAAO,CAAE,CAAC,EAClCb,KAAA,CAAAc,aAAA,CAACN,eAAe;IAACK,MAAM,EAAEA;EAAO,CAAE,CAC7B,CAAC,EACRb,KAAA,CAAAc,aAAA,CAACT,IAAI;IAAC2B,KAAK,EAAC;EAAS,GAAEnB,MAAM,CAACoB,QAAe,CACzC,CAAC,EACPjC,KAAA,CAAAc,aAAA,CAACJ,gBAAgB;IAACwB,MAAM,EAAErB,MAAM,CAACqB;EAAO,CAAE,CACrC,CACI,CACT,CAAC;AAAA,CACR"}
|
|
1
|
+
{"version":3,"file":"DocMethodSummary.js","names":["React","Card","CardContent","Flex","Space","Text","MethodBadge","RunItHeading","DocActivityType","DocRateLimited","DocSummaryStatus","DocMethodSummary","_ref","method","createElement","maxWidth","border","align","between","type","httpMethod","textAlign","minWidth","toUpperCase","alignItems","flexDirection","flex","mx","as","mb","pt","summary","color","endpoint","status"],"sources":["../../../../src/components/DocMethodSummary/DocMethodSummary.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 from 'react';\nimport { Card, CardContent, Flex, Space, Text } from '@looker/components';\nimport type { IMethod } from '@looker/sdk-codegen';\nimport { MethodBadge, RunItHeading } from '@looker/run-it';\nimport { DocActivityType, DocRateLimited } from '../../components';\nimport { DocSummaryStatus } from './DocSummaryStatus';\n\ninterface DocMethodSummaryProps {\n method: IMethod;\n}\n\nexport const DocMethodSummary: FC<DocMethodSummaryProps> = ({ method }) => (\n <Card maxWidth=\"50rem\" border>\n <CardContent>\n <Space align=\"start\" between>\n <MethodBadge\n type={method.httpMethod}\n textAlign=\"center\"\n minWidth=\"3.7625rem\"\n >\n {method.httpMethod.toUpperCase()}\n </MethodBadge>\n <Flex alignItems=\"start\" flexDirection=\"column\" flex=\"1\" mx=\"small\">\n <RunItHeading as=\"h3\" mb=\"0\" pt=\"0\">\n {method.summary}\n </RunItHeading>\n <Space>\n <DocRateLimited method={method} />\n <DocActivityType method={method} />\n </Space>\n <Text color=\"subdued\">{method.endpoint}</Text>\n </Flex>\n <DocSummaryStatus status={method.status} />\n </Space>\n </CardContent>\n </Card>\n);\n"],"mappings":"AA0BA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,WAAW,EAAEC,IAAI,EAAEC,KAAK,EAAEC,IAAI,QAAQ,oBAAoB;AAEzE,SAASC,WAAW,EAAEC,YAAY,QAAQ,gBAAgB;AAC1D,SAASC,eAAe,EAAEC,cAAc,QAAQ,kBAAkB;AAClE,SAASC,gBAAgB,QAAQ,oBAAoB;AAMrD,OAAO,IAAMC,gBAA2C,GAAGC,IAAA;EAAA,IAAC;IAAEC;EAAO,CAAC,GAAAD,IAAA;EAAA,OACpEZ,KAAA,CAAAc,aAAA,CAACb,IAAI;IAACc,QAAQ,EAAC,OAAO;IAACC,MAAM;EAAA,GAC3BhB,KAAA,CAAAc,aAAA,CAACZ,WAAW,QACVF,KAAA,CAAAc,aAAA,CAACV,KAAK;IAACa,KAAK,EAAC,OAAO;IAACC,OAAO;EAAA,GAC1BlB,KAAA,CAAAc,aAAA,CAACR,WAAW;IACVa,IAAI,EAAEN,MAAM,CAACO,UAAW;IACxBC,SAAS,EAAC,QAAQ;IAClBC,QAAQ,EAAC;EAAW,GAEnBT,MAAM,CAACO,UAAU,CAACG,WAAW,CAAC,CACpB,CAAC,EACdvB,KAAA,CAAAc,aAAA,CAACX,IAAI;IAACqB,UAAU,EAAC,OAAO;IAACC,aAAa,EAAC,QAAQ;IAACC,IAAI,EAAC,GAAG;IAACC,EAAE,EAAC;EAAO,GACjE3B,KAAA,CAAAc,aAAA,CAACP,YAAY;IAACqB,EAAE,EAAC,IAAI;IAACC,EAAE,EAAC,GAAG;IAACC,EAAE,EAAC;EAAG,GAChCjB,MAAM,CAACkB,OACI,CAAC,EACf/B,KAAA,CAAAc,aAAA,CAACV,KAAK,QACJJ,KAAA,CAAAc,aAAA,CAACL,cAAc;IAACI,MAAM,EAAEA;EAAO,CAAE,CAAC,EAClCb,KAAA,CAAAc,aAAA,CAACN,eAAe;IAACK,MAAM,EAAEA;EAAO,CAAE,CAC7B,CAAC,EACRb,KAAA,CAAAc,aAAA,CAACT,IAAI;IAAC2B,KAAK,EAAC;EAAS,GAAEnB,MAAM,CAACoB,QAAe,CACzC,CAAC,EACPjC,KAAA,CAAAc,aAAA,CAACJ,gBAAgB;IAACwB,MAAM,EAAErB,MAAM,CAACqB;EAAO,CAAE,CACrC,CACI,CACT,CAAC;AAAA,CACR","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocSummaryStatus.js","names":["React","Tooltip","pickStatus","pickTooltipContent","DocSummaryStatus","_ref","status","createElement","content"],"sources":["../../../../src/components/DocMethodSummary/DocSummaryStatus.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 from 'react';\nimport { Tooltip } from '@looker/components';\n\nimport { pickStatus, pickTooltipContent } from './utils';\n\ninterface DocSummaryStatusProps {\n status: string;\n}\n\nexport const DocSummaryStatus: FC<DocSummaryStatusProps> = ({ status }) => (\n <Tooltip content={pickTooltipContent(status)}>{pickStatus(status)}</Tooltip>\n);\n"],"mappings":"AA0BA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,OAAO,QAAQ,oBAAoB;AAE5C,SAASC,UAAU,EAAEC,kBAAkB,QAAQ,SAAS;AAMxD,OAAO,IAAMC,gBAA2C,GAAGC,IAAA;EAAA,IAAC;IAAEC;EAAO,CAAC,GAAAD,IAAA;EAAA,OACpEL,KAAA,CAAAO,aAAA,CAACN,OAAO;IAACO,OAAO,EAAEL,kBAAkB,CAACG,MAAM;EAAE,GAAEJ,UAAU,CAACI,MAAM,CAAW,CAAC;AAAA,CAC7E"}
|
|
1
|
+
{"version":3,"file":"DocSummaryStatus.js","names":["React","Tooltip","pickStatus","pickTooltipContent","DocSummaryStatus","_ref","status","createElement","content"],"sources":["../../../../src/components/DocMethodSummary/DocSummaryStatus.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 from 'react';\nimport { Tooltip } from '@looker/components';\n\nimport { pickStatus, pickTooltipContent } from './utils';\n\ninterface DocSummaryStatusProps {\n status: string;\n}\n\nexport const DocSummaryStatus: FC<DocSummaryStatusProps> = ({ status }) => (\n <Tooltip content={pickTooltipContent(status)}>{pickStatus(status)}</Tooltip>\n);\n"],"mappings":"AA0BA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,OAAO,QAAQ,oBAAoB;AAE5C,SAASC,UAAU,EAAEC,kBAAkB,QAAQ,SAAS;AAMxD,OAAO,IAAMC,gBAA2C,GAAGC,IAAA;EAAA,IAAC;IAAEC;EAAO,CAAC,GAAAD,IAAA;EAAA,OACpEL,KAAA,CAAAO,aAAA,CAACN,OAAO;IAACO,OAAO,EAAEL,kBAAkB,CAACG,MAAM;EAAE,GAAEJ,UAAU,CAACI,MAAM,CAAW,CAAC;AAAA,CAC7E","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["DocMethodSummary","DocSummaryStatus","pickTooltipContent"],"sources":["../../../../src/components/DocMethodSummary/index.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 */\nexport { DocMethodSummary } from './DocMethodSummary';\nexport { DocSummaryStatus } from './DocSummaryStatus';\nexport { pickTooltipContent } from './utils';\n"],"mappings":"AAyBA,SAASA,gBAAgB,QAAQ,oBAAoB;AACrD,SAASC,gBAAgB,QAAQ,oBAAoB;AACrD,SAASC,kBAAkB,QAAQ,SAAS"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["DocMethodSummary","DocSummaryStatus","pickTooltipContent"],"sources":["../../../../src/components/DocMethodSummary/index.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 */\nexport { DocMethodSummary } from './DocMethodSummary';\nexport { DocSummaryStatus } from './DocSummaryStatus';\nexport { pickTooltipContent } from './utils';\n"],"mappings":"AAyBA,SAASA,gBAAgB,QAAQ,oBAAoB;AACrD,SAASC,gBAAgB,QAAQ,oBAAoB;AACrD,SAASC,kBAAkB,QAAQ,SAAS","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","names":["React","styled","Icon","Status","Beaker","VisibilityOff","pickStatus","status","title","concat","toLowerCase","createElement","StatusBeta","icon","intent","size","pickTooltipContent","div","withConfig","displayName","componentId","_ref","theme","fontSizes","xxsmall","_ref2","colors","neutral"],"sources":["../../../../src/components/DocMethodSummary/utils.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 React from 'react';\nimport styled from 'styled-components';\nimport { Icon, Status } from '@looker/components';\nimport { Beaker } from '@looker/icons';\nimport { VisibilityOff } from '@styled-icons/material/VisibilityOff';\n\n/**\n * Return a Status react element based on an endpoint's status\n * @param status Endpoint status\n */\nexport const pickStatus = (status: string) => {\n const title = `${status.toLowerCase()} item`;\n switch (status.toLowerCase()) {\n case 'beta':\n return <StatusBeta aria-label={title}>β</StatusBeta>;\n case 'experimental': {\n return <Icon title={title} aria-label={title} icon={<Beaker />} />;\n }\n case 'alpha': {\n return <Icon title={title} aria-label={title} icon={<Beaker />} />;\n }\n case 'undocumented': {\n return <Icon title={title} aria-label={title} icon={<VisibilityOff />} />;\n }\n case 'deprecated':\n return <Status aria-label={title} intent=\"critical\" size=\"small\" />;\n case 'stable':\n return <Status aria-label={title} intent=\"positive\" size=\"small\" />;\n default:\n return (\n <Status\n aria-label=\"unknown status endpoint\"\n intent=\"neutral\"\n size=\"small\"\n />\n );\n }\n};\n\n/**\n * Returns tooltip content based on status\n * @param status item status\n */\nexport const pickTooltipContent = (status: string) => {\n switch (status.toLowerCase()) {\n case 'alpha':\n return 'This alpha item is either for internal use, or not fully developed and may be significantly changed or completely removed in future releases.';\n case 'beta':\n return 'This beta item is under development and subject to change.';\n case 'experimental':\n return 'This experimental item is not fully developed and may be significantly changed or completely removed in future releases.';\n case 'deprecated':\n return 'This item has been deprecated and will be removed in the future.';\n case 'stable':\n return 'This item is considered stable for this API version.';\n case 'undocumented':\n return 'This is an internal-only item.';\n default:\n return 'This item has no status associated with it.';\n }\n};\n\nconst StatusBeta = styled.div`\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: ${({ theme }) => theme.fontSizes.xxsmall};\n color: ${({ theme }) => theme.colors.neutral};\n width: 1.125rem;\n height: 1.125rem;\n`;\n"],"mappings":"AAyBA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,MAAM,MAAM,mBAAmB;AACtC,SAASC,IAAI,EAAEC,MAAM,QAAQ,oBAAoB;AACjD,SAASC,MAAM,QAAQ,eAAe;AACtC,SAASC,aAAa,QAAQ,sCAAsC;AAMpE,OAAO,IAAMC,UAAU,GAAIC,MAAc,IAAK;EAC5C,IAAMC,KAAK,MAAAC,MAAA,CAAMF,MAAM,CAACG,WAAW,CAAC,CAAC,UAAO;EAC5C,QAAQH,MAAM,CAACG,WAAW,CAAC,CAAC;IAC1B,KAAK,MAAM;MACT,OAAOV,KAAA,CAAAW,aAAA,CAACC,UAAU;QAAC,cAAYJ;MAAM,GAAC,QAAkB,CAAC;IAC3D,KAAK,cAAc;MAAE;QACnB,OAAOR,KAAA,CAAAW,aAAA,CAACT,IAAI;UAACM,KAAK,EAAEA,KAAM;UAAC,cAAYA,KAAM;UAACK,IAAI,EAAEb,KAAA,CAAAW,aAAA,CAACP,MAAM,MAAE;QAAE,CAAE,CAAC;MACpE;IACA,KAAK,OAAO;MAAE;QACZ,OAAOJ,KAAA,CAAAW,aAAA,CAACT,IAAI;UAACM,KAAK,EAAEA,KAAM;UAAC,cA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AAKC,KAAK,CAACC,SAAS,CAACC,OAAO;AAAA,GAC1CC,KAAA;EAAA,IAAC;IAAEH;EAAM,CAAC,GAAAG,KAAA;EAAA,OAAKH,KAAK,CAACI,MAAM,CAACC,OAAO;AAAA,EAG7C"}
|
|
1
|
+
{"version":3,"file":"utils.js","names":["React","styled","Icon","Status","Beaker","VisibilityOff","pickStatus","status","title","concat","toLowerCase","createElement","StatusBeta","icon","intent","size","pickTooltipContent","div","withConfig","displayName","componentId","_ref","theme","fontSizes","xxsmall","_ref2","colors","neutral"],"sources":["../../../../src/components/DocMethodSummary/utils.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 React from 'react';\nimport styled from 'styled-components';\nimport { Icon, Status } from '@looker/components';\nimport { Beaker } from '@looker/icons';\nimport { VisibilityOff } from '@styled-icons/material/VisibilityOff';\n\n/**\n * Return a Status react element based on an endpoint's status\n * @param status Endpoint status\n */\nexport const pickStatus = (status: string) => {\n const title = `${status.toLowerCase()} item`;\n switch (status.toLowerCase()) {\n case 'beta':\n return <StatusBeta aria-label={title}>β</StatusBeta>;\n case 'experimental': {\n return <Icon title={title} aria-label={title} icon={<Beaker />} />;\n }\n case 'alpha': {\n return <Icon title={title} aria-label={title} icon={<Beaker />} />;\n }\n case 'undocumented': {\n return <Icon title={title} aria-label={title} icon={<VisibilityOff />} />;\n }\n case 'deprecated':\n return <Status aria-label={title} intent=\"critical\" size=\"small\" />;\n case 'stable':\n return <Status aria-label={title} intent=\"positive\" size=\"small\" />;\n default:\n return (\n <Status\n aria-label=\"unknown status endpoint\"\n intent=\"neutral\"\n size=\"small\"\n />\n );\n }\n};\n\n/**\n * Returns tooltip content based on status\n * @param status item status\n */\nexport const pickTooltipContent = (status: string) => {\n switch (status.toLowerCase()) {\n case 'alpha':\n return 'This alpha item is either for internal use, or not fully developed and may be significantly changed or completely removed in future releases.';\n case 'beta':\n return 'This beta item is under development and subject to change.';\n case 'experimental':\n return 'This experimental item is not fully developed and may be significantly changed or completely removed in future releases.';\n case 'deprecated':\n return 'This item has been deprecated and will be removed in the future.';\n case 'stable':\n return 'This item is considered stable for this API version.';\n case 'undocumented':\n return 'This is an internal-only item.';\n default:\n return 'This item has no status associated with it.';\n }\n};\n\nconst StatusBeta = styled.div`\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: ${({ theme }) => theme.fontSizes.xxsmall};\n color: ${({ theme }) => theme.colors.neutral};\n width: 1.125rem;\n height: 1.125rem;\n`;\n"],"mappings":"AAyBA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,MAAM,MAAM,mBAAmB;AACtC,SAASC,IAAI,EAAEC,MAAM,QAAQ,oBAAoB;AACjD,SAASC,MAAM,QAAQ,eAAe;AACtC,SAASC,aAAa,QAAQ,sCAAsC;AAMpE,OAAO,IAAMC,UAAU,GAAIC,MAAc,IAAK;EAC5C,IAAMC,KAAK,MAAAC,MAAA,CAAMF,MAAM,CAACG,WAAW,CAAC,C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,CAACG,WAAW,CAAC,CAAC;IAC1B,KAAK,OAAO;MACV,OAAO,+IAA+I;IACxJ,KAAK,MAAM;MACT,OAAO,4DAA4D;IACrE,KAAK,cAAc;MACjB,OAAO,0HAA0H;IACnI,KAAK,YAAY;MACf,OAAO,kEAAkE;IAC3E,KAAK,QAAQ;MACX,OAAO,sDAAsD;IAC/D,KAAK,cAAc;MACjB,OAAO,gCAAgC;IACzC;MACE,OAAO,6CAA6C;EACxD;AACF,CAAC;AAED,IAAME,UAAU,GAAGX,MAAM,CAACgB,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,yHAIdC,IAAA;EAAA,IAAC;IAAEC;EAAM,CAAC,GAAAD,IAAA;EAAA,OAAKC,KAAK,CAACC,SAAS,CAACC,OAAO;AAAA,GAC1CC,KAAA;EAAA,IAAC;IAAEH;EAAM,CAAC,GAAAG,KAAA;EAAA,OAAKH,KAAK,CAACI,MAAM,CAACC,OAAO;AAAA,EAG7C","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocParam.js","names":["React","Tooltip","describeParam","DocParam","_ref","parameter","createElement","content","concat","type","name","required"],"sources":["../../../../src/components/DocPseudo/DocParam.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 from 'react';\nimport type { IParameter } from '@looker/sdk-codegen';\nimport { Tooltip } from '@looker/components';\nimport { describeParam } from '@looker/sdk-codegen';\n\nexport interface DocArgProps {\n parameter: IParameter;\n}\n\nexport const DocParam: FC<DocArgProps> = ({ parameter }) => (\n <Tooltip content={`${parameter.type.name} ${describeParam(parameter)}`}>\n <span>{parameter.required ? parameter.name : `[${parameter.name}]`}</span>\n </Tooltip>\n);\n"],"mappings":"AA0BA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,aAAa,QAAQ,qBAAqB;AAMnD,OAAO,IAAMC,QAAyB,GAAGC,IAAA;EAAA,IAAC;IAAEC;EAAU,CAAC,GAAAD,IAAA;EAAA,OACrDJ,KAAA,CAAAM,aAAA,CAACL,OAAO;IAACM,OAAO,KAAAC,MAAA,CAAKH,SAAS,CAACI,IAAI,CAACC,IAAI,OAAAF,MAAA,CAAIN,aAAa,CAACG,SAAS,CAAC;EAAG,GACrEL,KAAA,CAAAM,aAAA,eAAOD,SAAS,CAACM,QAAQ,GAAGN,SAAS,CAACK,IAAI,OAAAF,MAAA,CAAOH,SAAS,CAACK,IAAI,MAAU,CAClE,CAAC;AAAA,CACX"}
|
|
1
|
+
{"version":3,"file":"DocParam.js","names":["React","Tooltip","describeParam","DocParam","_ref","parameter","createElement","content","concat","type","name","required"],"sources":["../../../../src/components/DocPseudo/DocParam.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 from 'react';\nimport type { IParameter } from '@looker/sdk-codegen';\nimport { Tooltip } from '@looker/components';\nimport { describeParam } from '@looker/sdk-codegen';\n\nexport interface DocArgProps {\n parameter: IParameter;\n}\n\nexport const DocParam: FC<DocArgProps> = ({ parameter }) => (\n <Tooltip content={`${parameter.type.name} ${describeParam(parameter)}`}>\n <span>{parameter.required ? parameter.name : `[${parameter.name}]`}</span>\n </Tooltip>\n);\n"],"mappings":"AA0BA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,aAAa,QAAQ,qBAAqB;AAMnD,OAAO,IAAMC,QAAyB,GAAGC,IAAA;EAAA,IAAC;IAAEC;EAAU,CAAC,GAAAD,IAAA;EAAA,OACrDJ,KAAA,CAAAM,aAAA,CAACL,OAAO;IAACM,OAAO,KAAAC,MAAA,CAAKH,SAAS,CAACI,IAAI,CAACC,IAAI,OAAAF,MAAA,CAAIN,aAAa,CAACG,SAAS,CAAC;EAAG,GACrEL,KAAA,CAAAM,aAAA,eAAOD,SAAS,CAACM,QAAQ,GAAGN,SAAS,CAACK,IAAI,OAAAF,MAAA,CAAOH,SAAS,CAACK,IAAI,MAAU,CAClE,CAAC;AAAA,CACX","ignoreList":[]}
|