@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
|
@@ -9,7 +9,7 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
9
9
|
var _components = require("@looker/components");
|
|
10
10
|
var _icons = require("@looker/icons");
|
|
11
11
|
var _VisibilityOff = require("@styled-icons/material/VisibilityOff");
|
|
12
|
-
function _interopRequireDefault(
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
13
|
var pickStatus = status => {
|
|
14
14
|
var title = "".concat(status.toLowerCase(), " item");
|
|
15
15
|
switch (status.toLowerCase()) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","names":["_react","_interopRequireDefault","require","_styledComponents","_components","_icons","_VisibilityOff","
|
|
1
|
+
{"version":3,"file":"utils.js","names":["_react","_interopRequireDefault","require","_styledComponents","_components","_icons","_VisibilityOff","e","__esModule","default","pickStatus","status","title","concat","toLowerCase","createElement","StatusBeta","Icon","icon","Beaker","VisibilityOff","Status","intent","size","exports","pickTooltipContent","styled","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":"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","ignoreList":[]}
|
|
@@ -7,7 +7,7 @@ exports.DocParam = void 0;
|
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _components = require("@looker/components");
|
|
9
9
|
var _sdkCodegen = require("@looker/sdk-codegen");
|
|
10
|
-
function _interopRequireDefault(
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
11
|
var DocParam = _ref => {
|
|
12
12
|
var {
|
|
13
13
|
parameter
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocParam.js","names":["_react","_interopRequireDefault","require","_components","_sdkCodegen","
|
|
1
|
+
{"version":3,"file":"DocParam.js","names":["_react","_interopRequireDefault","require","_components","_sdkCodegen","e","__esModule","default","DocParam","_ref","parameter","createElement","Tooltip","content","concat","type","name","describeParam","required","exports"],"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,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAAoD,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAM7C,IAAMG,QAAyB,GAAGC,IAAA;EAAA,IAAC;IAAEC;EAAU,CAAC,GAAAD,IAAA;EAAA,OACrDT,MAAA,CAAAO,OAAA,CAAAI,aAAA,CAACR,WAAA,CAAAS,OAAO;IAACC,OAAO,KAAAC,MAAA,CAAKJ,SAAS,CAACK,IAAI,CAACC,IAAI,OAAAF,MAAA,CAAI,IAAAG,yBAAa,EAACP,SAAS,CAAC;EAAG,GACrEV,MAAA,CAAAO,OAAA,CAAAI,aAAA,eAAOD,SAAS,CAACQ,QAAQ,GAAGR,SAAS,CAACM,IAAI,OAAAF,MAAA,CAAOJ,SAAS,CAACM,IAAI,MAAU,CAClE,CAAC;AAAA,CACX;AAACG,OAAA,CAAAX,QAAA,GAAAA,QAAA","ignoreList":[]}
|
|
@@ -6,8 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.DocParams = void 0;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _DocParam = require("./DocParam");
|
|
9
|
-
function
|
|
10
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
9
|
+
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); }
|
|
11
10
|
var DocParams = _ref => {
|
|
12
11
|
var {
|
|
13
12
|
parameters
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocParams.js","names":["_react","_interopRequireWildcard","require","_DocParam","
|
|
1
|
+
{"version":3,"file":"DocParams.js","names":["_react","_interopRequireWildcard","require","_DocParam","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","DocParams","_ref","parameters","createElement","Fragment","map","a","index","key","DocParam","parameter","exports"],"sources":["../../../src/components/DocPseudo/DocParams.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 { IParameter } from '@looker/sdk-codegen';\nimport type { FC } from 'react';\nimport React, { Fragment } from 'react';\n\nimport { DocParam } from './DocParam';\n\nexport interface DocArgsProps {\n parameters: IParameter[];\n}\n\nexport const DocParams: FC<DocArgsProps> = ({ parameters }) => (\n <>\n {parameters.map((a, index) => (\n <Fragment key={index}>\n {index ? ', ' : ''}\n <DocParam parameter={a} key={index} />\n </Fragment>\n ))}\n </>\n);\n"],"mappings":";;;;;;AA2BA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,SAAA,GAAAD,OAAA;AAAsC,SAAAD,wBAAAG,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAL,uBAAA,YAAAA,wBAAAG,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,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,cAAAM,EAAA,IAAAd,CAAA,gBAAAc,EAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,EAAA,OAAAP,CAAA,IAAAD,CAAA,GAAAW,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAnB,CAAA,EAAAc,EAAA,OAAAP,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAM,EAAA,EAAAP,CAAA,IAAAC,CAAA,CAAAM,EAAA,IAAAd,CAAA,CAAAc,EAAA,WAAAN,CAAA,KAAAR,CAAA,EAAAC,CAAA;AAM/B,IAAMmB,SAA2B,GAAGC,IAAA;EAAA,IAAC;IAAEC;EAAW,CAAC,GAAAD,IAAA;EAAA,OACxDzB,MAAA,CAAAc,OAAA,CAAAa,aAAA,CAAA3B,MAAA,CAAAc,OAAA,CAAAc,QAAA,QACGF,UAAU,CAACG,GAAG,CAAC,CAACC,CAAC,EAAEC,KAAK,KACvB/B,MAAA,CAAAc,OAAA,CAAAa,aAAA,CAAC3B,MAAA,CAAA4B,QAAQ;IAACI,GAAG,EAAED;EAAM,GAClBA,KAAK,GAAG,IAAI,GAAG,EAAE,EAClB/B,MAAA,CAAAc,OAAA,CAAAa,aAAA,CAACxB,SAAA,CAAA8B,QAAQ;IAACC,SAAS,EAAEJ,CAAE;IAACE,GAAG,EAAED;EAAM,CAAE,CAC7B,CACX,CACD,CAAC;AAAA,CACJ;AAACI,OAAA,CAAAX,SAAA,GAAAA,SAAA","ignoreList":[]}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.DocPrimaryResponse = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _components = require("@looker/components");
|
|
9
|
-
function _interopRequireDefault(
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
10
|
var DocPrimaryResponse = _ref => {
|
|
11
11
|
var {
|
|
12
12
|
response
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocPrimaryResponse.js","names":["_react","_interopRequireDefault","require","_components","
|
|
1
|
+
{"version":3,"file":"DocPrimaryResponse.js","names":["_react","_interopRequireDefault","require","_components","e","__esModule","default","DocPrimaryResponse","_ref","response","createElement","Tooltip","content","concat","description","mediaType","type","name","exports"],"sources":["../../../src/components/DocPseudo/DocPrimaryResponse.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 { IMethodResponse } from '@looker/sdk-codegen';\nimport type { FC } from 'react';\nimport React from 'react';\nimport { Tooltip } from '@looker/components';\n\nexport interface DocPrimaryResponseProps {\n response: IMethodResponse;\n}\n\nexport const DocPrimaryResponse: FC<DocPrimaryResponseProps> = ({\n response,\n}) => (\n <Tooltip content={`${response.description} ${response.mediaType}`}>\n <span>{response.type.name}</span>\n </Tooltip>\n);\n"],"mappings":";;;;;;AA2BA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAA6C,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAMtC,IAAMG,kBAA+C,GAAGC,IAAA;EAAA,IAAC;IAC9DC;EACF,CAAC,GAAAD,IAAA;EAAA,OACCR,MAAA,CAAAM,OAAA,CAAAI,aAAA,CAACP,WAAA,CAAAQ,OAAO;IAACC,OAAO,KAAAC,MAAA,CAAKJ,QAAQ,CAACK,WAAW,OAAAD,MAAA,CAAIJ,QAAQ,CAACM,SAAS;EAAG,GAChEf,MAAA,CAAAM,OAAA,CAAAI,aAAA,eAAOD,QAAQ,CAACO,IAAI,CAACC,IAAW,CACzB,CAAC;AAAA,CACX;AAACC,OAAA,CAAAX,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -8,7 +8,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _components = require("@looker/components");
|
|
9
9
|
var _DocPrimaryResponse = require("./DocPrimaryResponse");
|
|
10
10
|
var _DocParams = require("./DocParams");
|
|
11
|
-
function _interopRequireDefault(
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
12
|
var DocPseudo = _ref => {
|
|
13
13
|
var {
|
|
14
14
|
method
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocPseudo.js","names":["_react","_interopRequireDefault","require","_components","_DocPrimaryResponse","_DocParams","
|
|
1
|
+
{"version":3,"file":"DocPseudo.js","names":["_react","_interopRequireDefault","require","_components","_DocPrimaryResponse","_DocParams","e","__esModule","default","DocPseudo","_ref","method","args","allParams","resType","primaryResponse","createElement","Flex","alignItems","Code","fontSize","fontWeight","concat","operationId","DocParams","parameters","DocPrimaryResponse","response","exports"],"sources":["../../../src/components/DocPseudo/DocPseudo.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 { Code, Flex } from '@looker/components';\nimport type { IMethod } from '@looker/sdk-codegen';\n\nimport { DocPrimaryResponse } from './DocPrimaryResponse';\nimport { DocParams } from './DocParams';\n\nexport interface PseudoProps {\n method: IMethod;\n}\n\nexport const DocPseudo: FC<PseudoProps> = ({ method }) => {\n const args = method.allParams;\n const resType = method.primaryResponse;\n\n return (\n <Flex alignItems=\"flex-start\">\n <Code fontSize=\"small\" fontWeight=\"normal\">\n {`${method.operationId}(`}\n <DocParams parameters={args} />\n {'): '}\n <DocPrimaryResponse response={resType} />\n </Code>\n </Flex>\n );\n};\n"],"mappings":";;;;;;AA2BA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAGA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AAAwC,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAMjC,IAAMG,SAA0B,GAAGC,IAAA,IAAgB;EAAA,IAAf;IAAEC;EAAO,CAAC,GAAAD,IAAA;EACnD,IAAME,IAAI,GAAGD,MAAM,CAACE,SAAS;EAC7B,IAAMC,OAAO,GAAGH,MAAM,CAACI,eAAe;EAEtC,OACEf,MAAA,CAAAQ,OAAA,CAAAQ,aAAA,CAACb,WAAA,CAAAc,IAAI;IAACC,UAAU,EAAC;EAAY,GAC3BlB,MAAA,CAAAQ,OAAA,CAAAQ,aAAA,CAACb,WAAA,CAAAgB,IAAI;IAACC,QAAQ,EAAC,OAAO;IAACC,UAAU,EAAC;EAAQ,MAAAC,MAAA,CACpCX,MAAM,CAACY,WAAW,QACtBvB,MAAA,CAAAQ,OAAA,CAAAQ,aAAA,CAACX,UAAA,CAAAmB,SAAS;IAACC,UAAU,EAAEb;EAAK,CAAE,CAAC,EAC9B,KAAK,EACNZ,MAAA,CAAAQ,OAAA,CAAAQ,aAAA,CAACZ,mBAAA,CAAAsB,kBAAkB;IAACC,QAAQ,EAAEb;EAAQ,CAAE,CACpC,CACF,CAAC;AAEX,CAAC;AAACc,OAAA,CAAAnB,SAAA,GAAAA,SAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_DocPseudo","require"],"sources":["../../../src/components/DocPseudo/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 { DocPseudo } from './DocPseudo';\n"],"mappings":";;;;;;;;;;;AAyBA,IAAAA,UAAA,GAAAC,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["_DocPseudo","require"],"sources":["../../../src/components/DocPseudo/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 { DocPseudo } from './DocPseudo';\n"],"mappings":";;;;;;;;;;;AAyBA,IAAAA,UAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.DocRateLimited = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _components = require("@looker/components");
|
|
9
|
-
function _interopRequireDefault(
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
10
|
var DocRateLimited = _ref => {
|
|
11
11
|
var {
|
|
12
12
|
method
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocRateLimited.js","names":["_react","_interopRequireDefault","require","_components","
|
|
1
|
+
{"version":3,"file":"DocRateLimited.js","names":["_react","_interopRequireDefault","require","_components","e","__esModule","default","DocRateLimited","_ref","method","createElement","Fragment","rateLimited","Tooltip","textAlign","content","Code","color","exports"],"sources":["../../../src/components/DocRateLimited/DocRateLimited.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 { Code, Tooltip } from '@looker/components';\nimport type { IMethod } from '@looker/sdk-codegen';\n\ninterface DocRateLimitedProps {\n method: IMethod;\n}\nexport const DocRateLimited: FC<DocRateLimitedProps> = ({ method }) => (\n <>\n {method.rateLimited && (\n <>\n <Tooltip textAlign=\"left\" content={'This endpoint is rate limited.'}>\n <Code color=\"palette.charcoal500\">{'rate_limited'}</Code>\n </Tooltip>\n </>\n )}\n </>\n);\n"],"mappings":";;;;;;AA0BA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAAmD,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAM5C,IAAMG,cAAuC,GAAGC,IAAA;EAAA,IAAC;IAAEC;EAAO,CAAC,GAAAD,IAAA;EAAA,OAChER,MAAA,CAAAM,OAAA,CAAAI,aAAA,CAAAV,MAAA,CAAAM,OAAA,CAAAK,QAAA,QACGF,MAAM,CAACG,WAAW,IACjBZ,MAAA,CAAAM,OAAA,CAAAI,aAAA,CAAAV,MAAA,CAAAM,OAAA,CAAAK,QAAA,QACEX,MAAA,CAAAM,OAAA,CAAAI,aAAA,CAACP,WAAA,CAAAU,OAAO;IAACC,SAAS,EAAC,MAAM;IAACC,OAAO,EAAE;EAAiC,GAClEf,MAAA,CAAAM,OAAA,CAAAI,aAAA,CAACP,WAAA,CAAAa,IAAI;IAACC,KAAK,EAAC;EAAqB,GAAE,cAAqB,CACjD,CACT,CAEJ,CAAC;AAAA,CACJ;AAACC,OAAA,CAAAX,cAAA,GAAAA,cAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_DocRateLimited","require"],"sources":["../../../src/components/DocRateLimited/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 { DocRateLimited } from './DocRateLimited';\n"],"mappings":";;;;;;;;;;;AAyBA,IAAAA,eAAA,GAAAC,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["_DocRateLimited","require"],"sources":["../../../src/components/DocRateLimited/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 { DocRateLimited } from './DocRateLimited';\n"],"mappings":";;;;;;;;;;;AAyBA,IAAAA,eAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -9,7 +9,7 @@ var _runIt = require("@looker/run-it");
|
|
|
9
9
|
var _reactRedux = require("react-redux");
|
|
10
10
|
var _state = require("../../state");
|
|
11
11
|
var _utils = require("./utils");
|
|
12
|
-
function _interopRequireDefault(
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
13
|
var DocReferences = _ref => {
|
|
14
14
|
var {
|
|
15
15
|
typesUsed,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocReferences.js","names":["_react","_interopRequireDefault","require","_runIt","_reactRedux","_state","_utils","
|
|
1
|
+
{"version":3,"file":"DocReferences.js","names":["_react","_interopRequireDefault","require","_runIt","_reactRedux","_state","_utils","e","__esModule","default","DocReferences","_ref","typesUsed","specKey","api","methodsUsedBy","typesUsedBy","searchPattern","useSelector","selectSearchPattern","length","createElement","Fragment","CollapserCard","heading","id","DocReferenceItems","exports"],"sources":["../../../src/components/DocReferences/DocReferences.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 type { ApiModel, IMethod, IType } from '@looker/sdk-codegen';\nimport { CollapserCard } from '@looker/run-it';\n\nimport { useSelector } from 'react-redux';\nimport { selectSearchPattern } from '../../state';\nimport { DocReferenceItems } from './utils';\n\ninterface DocReferencesProps {\n typesUsed: IType[];\n methodsUsedBy?: IMethod[];\n typesUsedBy?: IType[];\n specKey: string;\n api: ApiModel;\n}\n\n/**\n * It renders links to the given types and/or methods references\n */\nexport const DocReferences: FC<DocReferencesProps> = ({\n typesUsed,\n specKey,\n api,\n methodsUsedBy = [],\n typesUsedBy = [],\n}) => {\n const searchPattern = useSelector(selectSearchPattern);\n\n if (\n typesUsed.length === 0 &&\n methodsUsedBy.length === 0 &&\n typesUsedBy.length === 0\n )\n return <></>;\n\n return (\n <CollapserCard heading=\"References\" id=\"references\">\n <>\n {DocReferenceItems(\n 'Referenced Types:',\n typesUsed,\n api,\n specKey,\n searchPattern\n )}\n {DocReferenceItems(\n 'Used by types:',\n typesUsedBy,\n api,\n specKey,\n searchPattern\n )}\n {DocReferenceItems(\n 'Used by methods:',\n methodsUsedBy,\n api,\n specKey,\n searchPattern\n )}\n </>\n </CollapserCard>\n );\n};\n"],"mappings":";;;;;;AA2BA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAEA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AAA4C,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAarC,IAAMG,aAAqC,GAAGC,IAAA,IAM/C;EAAA,IANgD;IACpDC,SAAS;IACTC,OAAO;IACPC,GAAG;IACHC,aAAa,GAAG,EAAE;IAClBC,WAAW,GAAG;EAChB,CAAC,GAAAL,IAAA;EACC,IAAMM,aAAa,GAAG,IAAAC,uBAAW,EAACC,0BAAmB,CAAC;EAEtD,IACEP,SAAS,CAACQ,MAAM,KAAK,CAAC,IACtBL,aAAa,CAACK,MAAM,KAAK,CAAC,IAC1BJ,WAAW,CAACI,MAAM,KAAK,CAAC,EAExB,OAAOpB,MAAA,CAAAS,OAAA,CAAAY,aAAA,CAAArB,MAAA,CAAAS,OAAA,CAAAa,QAAA,MAAI,CAAC;EAEd,OACEtB,MAAA,CAAAS,OAAA,CAAAY,aAAA,CAAClB,MAAA,CAAAoB,aAAa;IAACC,OAAO,EAAC,YAAY;IAACC,EAAE,EAAC;EAAY,GACjDzB,MAAA,CAAAS,OAAA,CAAAY,aAAA,CAAArB,MAAA,CAAAS,OAAA,CAAAa,QAAA,QACG,IAAAI,wBAAiB,EAChB,mBAAmB,EACnBd,SAAS,EACTE,GAAG,EACHD,OAAO,EACPI,aACF,CAAC,EACA,IAAAS,wBAAiB,EAChB,gBAAgB,EAChBV,WAAW,EACXF,GAAG,EACHD,OAAO,EACPI,aACF,CAAC,EACA,IAAAS,wBAAiB,EAChB,kBAAkB,EAClBX,aAAa,EACbD,GAAG,EACHD,OAAO,EACPI,aACF,CACA,CACW,CAAC;AAEpB,CAAC;AAACU,OAAA,CAAAjB,aAAA,GAAAA,aAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_DocReferences","require"],"sources":["../../../src/components/DocReferences/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 { DocReferences } from './DocReferences';\n"],"mappings":";;;;;;;;;;;AAyBA,IAAAA,cAAA,GAAAC,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["_DocReferences","require"],"sources":["../../../src/components/DocReferences/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 { DocReferences } from './DocReferences';\n"],"mappings":";;;;;;;;;;;AAyBA,IAAAA,cAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -8,7 +8,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _reactRouterDom = require("react-router-dom");
|
|
9
9
|
var _runIt = require("@looker/run-it");
|
|
10
10
|
var _utils = require("../../utils");
|
|
11
|
-
function _interopRequireDefault(
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
12
|
var DocReferenceItems = (heading, items, api, specKey, pattern) => {
|
|
13
13
|
if (items.length === 0) return _react.default.createElement(_react.default.Fragment, null);
|
|
14
14
|
return _react.default.createElement(_react.default.Fragment, null, _react.default.createElement(_runIt.RunItHeading, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","names":["_react","_interopRequireDefault","require","_reactRouterDom","_runIt","_utils","
|
|
1
|
+
{"version":3,"file":"utils.js","names":["_react","_interopRequireDefault","require","_reactRouterDom","_runIt","_utils","e","__esModule","default","DocReferenceItems","heading","items","api","specKey","pattern","length","createElement","Fragment","RunItHeading","as","map","item","index","className","key","name","Link","to","buildPath","highlightHTML","exports"],"sources":["../../../src/components/DocReferences/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 type { ApiModel, IMethod, IType } from '@looker/sdk-codegen';\nimport { Link } from 'react-router-dom';\nimport { RunItHeading } from '@looker/run-it';\nimport { buildPath, highlightHTML } from '../../utils';\n\n/**\n * Renders a heading and links to all item types\n */\nexport const DocReferenceItems = (\n heading: string,\n items: (IType | IMethod)[],\n api: ApiModel,\n specKey: string,\n pattern: string\n) => {\n if (items.length === 0) return <></>;\n\n return (\n <>\n <RunItHeading as=\"h4\">{heading}</RunItHeading>\n {items.map((item, index) => (\n <span className=\"doc-link\" key={item.name}>\n {index ? ', ' : ''}\n <Link to={buildPath(api, item, specKey)}>\n {highlightHTML(pattern, item.name)}\n </Link>\n </span>\n ))}\n </>\n );\n};\n"],"mappings":";;;;;;AAyBA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,eAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AAAuD,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAKhD,IAAMG,iBAAiB,GAAGA,CAC/BC,OAAe,EACfC,KAA0B,EAC1BC,GAAa,EACbC,OAAe,EACfC,OAAe,KACZ;EACH,IAAIH,KAAK,CAACI,MAAM,KAAK,CAAC,EAAE,OAAOf,MAAA,CAAAQ,OAAA,CAAAQ,aAAA,CAAAhB,MAAA,CAAAQ,OAAA,CAAAS,QAAA,MAAI,CAAC;EAEpC,OACEjB,MAAA,CAAAQ,OAAA,CAAAQ,aAAA,CAAAhB,MAAA,CAAAQ,OAAA,CAAAS,QAAA,QACEjB,MAAA,CAAAQ,OAAA,CAAAQ,aAAA,CAACZ,MAAA,CAAAc,YAAY;IAACC,EAAE,EAAC;EAAI,GAAET,OAAsB,CAAC,EAC7CC,KAAK,CAACS,GAAG,CAAC,CAACC,IAAI,EAAEC,KAAK,KACrBtB,MAAA,CAAAQ,OAAA,CAAAQ,aAAA;IAAMO,SAAS,EAAC,UAAU;IAACC,GAAG,EAAEH,IAAI,CAACI;EAAK,GACvCH,KAAK,GAAG,IAAI,GAAG,EAAE,EAClBtB,MAAA,CAAAQ,OAAA,CAAAQ,aAAA,CAACb,eAAA,CAAAuB,IAAI;IAACC,EAAE,EAAE,IAAAC,gBAAS,EAAChB,GAAG,EAAES,IAAI,EAAER,OAAO;EAAE,GACrC,IAAAgB,oBAAa,EAACf,OAAO,EAAEO,IAAI,CAACI,IAAI,CAC7B,CACF,CACP,CACD,CAAC;AAEP,CAAC;AAACK,OAAA,CAAArB,iBAAA,GAAAA,iBAAA","ignoreList":[]}
|
|
@@ -7,7 +7,7 @@ exports.DocDeclarations = void 0;
|
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _components = require("@looker/components");
|
|
9
9
|
var _DocCode = require("../DocCode");
|
|
10
|
-
function _interopRequireDefault(
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
11
|
var DocDeclarations = _ref => {
|
|
12
12
|
var {
|
|
13
13
|
declarations
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocDeclarations.js","names":["_react","_interopRequireDefault","require","_components","_DocCode","
|
|
1
|
+
{"version":3,"file":"DocDeclarations.js","names":["_react","_interopRequireDefault","require","_components","_DocCode","e","__esModule","default","DocDeclarations","_ref","declarations","createElement","Tabs2","Object","entries","map","_ref2","language","code","Tab2","key","id","label","DocCode","exports"],"sources":["../../../src/components/DocSDKs/DocDeclarations.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 { Tab2, Tabs2 } from '@looker/components';\nimport type { KeyedCollection } from '@looker/sdk-codegen';\nimport type { FC } from 'react';\nimport { DocCode } from '../DocCode';\n\ninterface DocDeclarationsProps {\n declarations: KeyedCollection<string>;\n}\n\n/**\n * Renders all provided declarations\n * @param declarations A collection of SDK declarations in various languages\n */\nexport const DocDeclarations: FC<DocDeclarationsProps> = ({ declarations }) => (\n <Tabs2>\n {Object.entries(declarations).map(([language, code]) => (\n <Tab2 key={language} id={language} label={language}>\n <DocCode code={code} language={language} />\n </Tab2>\n ))}\n </Tabs2>\n);\n"],"mappings":";;;;;;AAyBA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAGA,IAAAE,QAAA,GAAAF,OAAA;AAAqC,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAU9B,IAAMG,eAAyC,GAAGC,IAAA;EAAA,IAAC;IAAEC;EAAa,CAAC,GAAAD,IAAA;EAAA,OACxET,MAAA,CAAAO,OAAA,CAAAI,aAAA,CAACR,WAAA,CAAAS,KAAK,QACHC,MAAM,CAACC,OAAO,CAACJ,YAAY,CAAC,CAACK,GAAG,CAACC,KAAA;IAAA,IAAC,CAACC,QAAQ,EAAEC,IAAI,CAAC,GAAAF,KAAA;IAAA,OACjDhB,MAAA,CAAAO,OAAA,CAAAI,aAAA,CAACR,WAAA,CAAAgB,IAAI;MAACC,GAAG,EAAEH,QAAS;MAACI,EAAE,EAAEJ,QAAS;MAACK,KAAK,EAAEL;IAAS,GACjDjB,MAAA,CAAAO,OAAA,CAAAI,aAAA,CAACP,QAAA,CAAAmB,OAAO;MAACL,IAAI,EAAEA,IAAK;MAACD,QAAQ,EAAEA;IAAS,CAAE,CACtC,CAAC;EAAA,CACR,CACI,CAAC;AAAA,CACT;AAACO,OAAA,CAAAhB,eAAA,GAAAA,eAAA","ignoreList":[]}
|
|
@@ -12,8 +12,7 @@ var _state = require("../../state");
|
|
|
12
12
|
var _path = require("../../utils/path");
|
|
13
13
|
var _utils = require("./utils");
|
|
14
14
|
var _DocDeclarations = require("./DocDeclarations");
|
|
15
|
-
function
|
|
16
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
|
+
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); }
|
|
17
16
|
var getDeclarations = (generators, sdkLanguage, item) => {
|
|
18
17
|
var declarations = {};
|
|
19
18
|
Object.entries(generators).forEach(_ref => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocSDKs.js","names":["_react","_interopRequireWildcard","require","_reactRedux","_runIt","_DocCode","_state","_path","_utils","_DocDeclarations","
|
|
1
|
+
{"version":3,"file":"DocSDKs.js","names":["_react","_interopRequireWildcard","require","_reactRedux","_runIt","_DocCode","_state","_path","_utils","_DocDeclarations","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","getDeclarations","generators","sdkLanguage","item","declarations","entries","forEach","_ref","language","gen","code","isMethod","declareMethod","declareType","DocSDKs","_ref2","api","method","type","useSelector","selectSdkLanguage","getGenerators","setItem","useState","noComment","setDeclarations","header","setHeader","concat","useEffect","languages","keys","length","createElement","CollapserCard","heading","id","DocDeclarations","DocCode","values","exports"],"sources":["../../../src/components/DocSDKs/DocSDKs.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 { useSelector } from 'react-redux';\nimport type {\n ApiModel,\n CodeGen,\n IMethod,\n IType,\n KeyedCollection,\n} from '@looker/sdk-codegen';\nimport { CollapserCard, getGenerators } from '@looker/run-it';\n\nimport { DocCode } from '../DocCode';\nimport { selectSdkLanguage } from '../../state';\nimport { isMethod } from '../../utils/path';\nimport { noComment } from './utils';\nimport { DocDeclarations } from './DocDeclarations';\n\ninterface LanguageSDKProps {\n /** API spec */\n api: ApiModel;\n /** An SDK method */\n method?: IMethod;\n /** An SDK type */\n type?: IType;\n}\n\nconst getDeclarations = (\n generators: KeyedCollection<CodeGen>,\n sdkLanguage: string,\n item: IMethod | IType\n) => {\n const declarations: KeyedCollection<string> = {};\n Object.entries(generators).forEach(([language, gen]) => {\n if (sdkLanguage === 'All' || language === sdkLanguage) {\n const code = isMethod(item)\n ? gen.declareMethod('', item as IMethod)\n : gen.declareType('', item as IType);\n declarations[language] = code;\n }\n });\n return declarations;\n};\n\n/**\n * Given a method or a type, it renders its SDK declaration in all supported languages.\n */\nexport const DocSDKs: FC<LanguageSDKProps> = ({ api, method, type }) => {\n const sdkLanguage = useSelector(selectSdkLanguage);\n const generators = getGenerators(api);\n const [item, setItem] = useState(method ? noComment(method) : type!);\n const [declarations, setDeclarations] = useState(\n getDeclarations(generators, sdkLanguage, item)\n );\n const [header, setHeader] = useState(`${sdkLanguage} Declaration`);\n\n useEffect(() => {\n setItem(method ? noComment(method) : type!);\n }, [method, type]);\n\n useEffect(() => {\n const declarations = getDeclarations(generators, sdkLanguage, item);\n setDeclarations(declarations);\n const languages = Object.keys(declarations);\n if (languages.length > 1) {\n setHeader('Declarations');\n } else {\n setHeader(`${languages[0]} Declaration`);\n }\n }, [sdkLanguage, item]);\n\n return (\n <CollapserCard heading={header} id=\"sdk declarations\">\n {Object.keys(declarations).length > 1 ? (\n <DocDeclarations declarations={declarations} />\n ) : (\n <DocCode\n language={Object.keys(declarations)[0]}\n code={Object.values(declarations)[0]}\n />\n )}\n </CollapserCard>\n );\n};\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_DocSDKs","require"],"sources":["../../../src/components/DocSDKs/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 { DocSDKs } from './DocSDKs';\n"],"mappings":";;;;;;;;;;;AAyBA,IAAAA,QAAA,GAAAC,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["_DocSDKs","require"],"sources":["../../../src/components/DocSDKs/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 { DocSDKs } from './DocSDKs';\n"],"mappings":";;;;;;;;;;;AAyBA,IAAAA,QAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.noComment = void 0;
|
|
7
7
|
var _clone = _interopRequireDefault(require("lodash/clone"));
|
|
8
|
-
function _interopRequireDefault(
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
9
|
var noComment = method => {
|
|
10
10
|
var copy = (0, _clone.default)(method);
|
|
11
11
|
copy.description = '';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","names":["_clone","_interopRequireDefault","require","
|
|
1
|
+
{"version":3,"file":"utils.js","names":["_clone","_interopRequireDefault","require","e","__esModule","default","noComment","method","copy","clone","description","exports"],"sources":["../../../src/components/DocSDKs/utils.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport type { IMethod } from '@looker/sdk-codegen';\nimport clone from 'lodash/clone';\n\n/**\n * Given a method create a copy and remove its description\n * @param method An SDK method\n */\nexport const noComment = (method: IMethod): IMethod => {\n const copy = clone(method);\n copy.description = '';\n return copy;\n};\n"],"mappings":";;;;;;AA0BA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAiC,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAM1B,IAAMG,SAAS,GAAIC,MAAe,IAAc;EACrD,IAAMC,IAAI,GAAG,IAAAC,cAAK,EAACF,MAAM,CAAC;EAC1BC,IAAI,CAACE,WAAW,GAAG,EAAE;EACrB,OAAOF,IAAI;AACb,CAAC;AAACG,OAAA,CAAAL,SAAA,GAAAA,SAAA","ignoreList":[]}
|
|
@@ -7,7 +7,7 @@ exports.DocSchema = void 0;
|
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _codeEditor = require("@looker/code-editor");
|
|
9
9
|
var _runIt = require("@looker/run-it");
|
|
10
|
-
function _interopRequireDefault(
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
11
|
var DocSchema = _ref => {
|
|
12
12
|
var {
|
|
13
13
|
object
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocSchema.js","names":["_react","_interopRequireDefault","require","_codeEditor","_runIt","
|
|
1
|
+
{"version":3,"file":"DocSchema.js","names":["_react","_interopRequireDefault","require","_codeEditor","_runIt","e","__esModule","default","DocSchema","_ref","object","createElement","Fragment","json","JSON","stringify","CollapserCard","heading","defaultOpen","id","CodeDisplay","language","code","exports"],"sources":["../../../src/components/DocSchema/DocSchema.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';\n\nimport { CodeDisplay } from '@looker/code-editor';\nimport { CollapserCard } from '@looker/run-it';\n\ninterface DocSchemaProps {\n object: any;\n}\n\n/**\n * It renders links to the given types and/or methods references\n */\nexport const DocSchema: FC<DocSchemaProps> = ({ object }) => {\n if (!object) return <></>;\n const json = JSON.stringify(object, null, 2);\n\n return (\n <CollapserCard\n heading=\"Original Schema\"\n defaultOpen={false}\n id=\"original schema\"\n >\n <>\n <CodeDisplay language=\"json\" code={json} />\n </>\n </CollapserCard>\n );\n};\n"],"mappings":";;;;;;AA2BA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAA+C,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AASxC,IAAMG,SAA6B,GAAGC,IAAA,IAAgB;EAAA,IAAf;IAAEC;EAAO,CAAC,GAAAD,IAAA;EACtD,IAAI,CAACC,MAAM,EAAE,OAAOV,MAAA,CAAAO,OAAA,CAAAI,aAAA,CAAAX,MAAA,CAAAO,OAAA,CAAAK,QAAA,MAAI,CAAC;EACzB,IAAMC,IAAI,GAAGC,IAAI,CAACC,SAAS,CAACL,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;EAE5C,OACEV,MAAA,CAAAO,OAAA,CAAAI,aAAA,CAACP,MAAA,CAAAY,aAAa;IACZC,OAAO,EAAC,iBAAiB;IACzBC,WAAW,EAAE,KAAM;IACnBC,EAAE,EAAC;EAAiB,GAEpBnB,MAAA,CAAAO,OAAA,CAAAI,aAAA,CAAAX,MAAA,CAAAO,OAAA,CAAAK,QAAA,QACEZ,MAAA,CAAAO,OAAA,CAAAI,aAAA,CAACR,WAAA,CAAAiB,WAAW;IAACC,QAAQ,EAAC,MAAM;IAACC,IAAI,EAAET;EAAK,CAAE,CAC1C,CACW,CAAC;AAEpB,CAAC;AAACU,OAAA,CAAAf,SAAA,GAAAA,SAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_DocSchema","require"],"sources":["../../../src/components/DocSchema/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nexport { DocSchema } from './DocSchema';\n"],"mappings":";;;;;;;;;;;AA0BA,IAAAA,UAAA,GAAAC,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["_DocSchema","require"],"sources":["../../../src/components/DocSchema/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nexport { DocSchema } from './DocSchema';\n"],"mappings":";;;;;;;;;;;AA0BA,IAAAA,UAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -7,7 +7,7 @@ exports.DocSdkExampleCell = void 0;
|
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _components = require("@looker/components");
|
|
9
9
|
var _utils = require("./utils");
|
|
10
|
-
function _interopRequireDefault(
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
11
|
var DocSdkExampleCell = props => _react.default.createElement(_components.DataTableCell, {
|
|
12
12
|
style: {
|
|
13
13
|
borderBottom: (0, _utils.getTableItemBottomBorder)(props.hideBorderBottom)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocSdkExampleCell.js","names":["_react","_interopRequireDefault","require","_components","_utils","
|
|
1
|
+
{"version":3,"file":"DocSdkExampleCell.js","names":["_react","_interopRequireDefault","require","_components","_utils","e","__esModule","default","DocSdkExampleCell","props","createElement","DataTableCell","style","borderBottom","getTableItemBottomBorder","hideBorderBottom","Span","overflow","width","display","children","exports"],"sources":["../../../src/components/DocSdkUsage/DocSdkExampleCell.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, PropsWithChildren } from 'react';\nimport React from 'react';\nimport { DataTableCell, Span } from '@looker/components';\n\nimport { getTableItemBottomBorder } from './utils';\n\nexport const DocSdkExampleCell: FC<PropsWithChildren<any>> = props => (\n <DataTableCell\n style={{ borderBottom: getTableItemBottomBorder(props.hideBorderBottom) }}\n >\n <Span style={{ overflow: 'hidden', width: '100%', display: 'block' }}>\n {props.children}\n </Span>\n </DataTableCell>\n);\n"],"mappings":";;;;;;AA0BA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEA,IAAAE,MAAA,GAAAF,OAAA;AAAmD,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE5C,IAAMG,iBAA6C,GAAGC,KAAK,IAChET,MAAA,CAAAO,OAAA,CAAAG,aAAA,CAACP,WAAA,CAAAQ,aAAa;EACZC,KAAK,EAAE;IAAEC,YAAY,EAAE,IAAAC,+BAAwB,EAACL,KAAK,CAACM,gBAAgB;EAAE;AAAE,GAE1Ef,MAAA,CAAAO,OAAA,CAAAG,aAAA,CAACP,WAAA,CAAAa,IAAI;EAACJ,KAAK,EAAE;IAAEK,QAAQ,EAAE,QAAQ;IAAEC,KAAK,EAAE,MAAM;IAAEC,OAAO,EAAE;EAAQ;AAAE,GAClEV,KAAK,CAACW,QACH,CACO,CAChB;AAACC,OAAA,CAAAb,iBAAA,GAAAA,iBAAA","ignoreList":[]}
|
|
@@ -13,8 +13,7 @@ var _reactRedux = require("react-redux");
|
|
|
13
13
|
var _state = require("../../state");
|
|
14
14
|
var _utils = require("./utils");
|
|
15
15
|
var _DocSdkExampleCell = require("./DocSdkExampleCell");
|
|
16
|
-
function
|
|
17
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
|
+
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); }
|
|
18
17
|
var DocSdkUsage = _ref => {
|
|
19
18
|
var {
|
|
20
19
|
method
|