@gooddata/sdk-ui 9.0.0-alpha.9 → 9.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/base/errors/GoodDataSdkError.js +1 -1
- package/esm/base/errors/GoodDataSdkError.js.map +1 -1
- package/esm/base/errors/errorHandling.d.ts +1 -1
- package/esm/base/errors/errorHandling.d.ts.map +1 -1
- package/esm/base/errors/errorHandling.js +2 -2
- package/esm/base/errors/errorHandling.js.map +1 -1
- package/esm/base/headerMatching/HeaderPredicate.d.ts +2 -2
- package/esm/base/headerMatching/HeaderPredicate.d.ts.map +1 -1
- package/esm/base/headerMatching/HeaderPredicateFactory.d.ts +1 -1
- package/esm/base/headerMatching/HeaderPredicateFactory.d.ts.map +1 -1
- package/esm/base/headerMatching/HeaderPredicateFactory.js +1 -1
- package/esm/base/headerMatching/HeaderPredicateFactory.js.map +1 -1
- package/esm/base/headerMatching/MappingHeader.d.ts +4 -4
- package/esm/base/headerMatching/MappingHeader.d.ts.map +1 -1
- package/esm/base/headerMatching/MappingHeader.js +3 -3
- package/esm/base/headerMatching/MappingHeader.js.map +1 -1
- package/esm/base/index.d.ts +58 -58
- package/esm/base/index.d.ts.map +1 -1
- package/esm/base/index.js +48 -48
- package/esm/base/index.js.map +1 -1
- package/esm/base/localization/IntlStore.d.ts +1 -1
- package/esm/base/localization/IntlStore.d.ts.map +1 -1
- package/esm/base/localization/IntlStore.js +3 -3
- package/esm/base/localization/IntlStore.js.map +1 -1
- package/esm/base/localization/IntlWrapper.js +3 -3
- package/esm/base/localization/IntlWrapper.js.map +1 -1
- package/esm/base/localization/TranslationsCustomizationProvider/Context.js +2 -2
- package/esm/base/localization/TranslationsCustomizationProvider/Context.js.map +1 -1
- package/esm/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.js +4 -4
- package/esm/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.js.map +1 -1
- package/esm/base/localization/TranslationsCustomizationProvider/index.d.ts +3 -3
- package/esm/base/localization/TranslationsCustomizationProvider/index.d.ts.map +1 -1
- package/esm/base/localization/TranslationsCustomizationProvider/index.js +3 -3
- package/esm/base/localization/TranslationsCustomizationProvider/index.js.map +1 -1
- package/esm/base/localization/TranslationsCustomizationProvider/utils.d.ts.map +1 -1
- package/esm/base/localization/TranslationsCustomizationProvider/utils.js +6 -1
- package/esm/base/localization/TranslationsCustomizationProvider/utils.js.map +1 -1
- package/esm/base/localization/TranslationsProvider.js +2 -2
- package/esm/base/localization/TranslationsProvider.js.map +1 -1
- package/esm/base/localization/bundles/en-US.json +1 -1
- package/esm/base/localization/intlUtils.d.ts +2 -2
- package/esm/base/localization/intlUtils.d.ts.map +1 -1
- package/esm/base/localization/intlUtils.js +3 -3
- package/esm/base/localization/intlUtils.js.map +1 -1
- package/esm/base/measureFormats/fillMissingFormats.js +1 -1
- package/esm/base/measureFormats/fillMissingFormats.js.map +1 -1
- package/esm/base/measureTitles/ArithmeticMeasureTitleFactory.d.ts +2 -2
- package/esm/base/measureTitles/ArithmeticMeasureTitleFactory.d.ts.map +1 -1
- package/esm/base/measureTitles/ArithmeticMeasureTitleFactory.js +2 -2
- package/esm/base/measureTitles/ArithmeticMeasureTitleFactory.js.map +1 -1
- package/esm/base/measureTitles/DerivedMeasureTitleSuffixFactory.d.ts +2 -2
- package/esm/base/measureTitles/DerivedMeasureTitleSuffixFactory.d.ts.map +1 -1
- package/esm/base/measureTitles/DerivedMeasureTitleSuffixFactory.js +3 -3
- package/esm/base/measureTitles/DerivedMeasureTitleSuffixFactory.js.map +1 -1
- package/esm/base/measureTitles/fillMissingTitles.d.ts +1 -1
- package/esm/base/measureTitles/fillMissingTitles.d.ts.map +1 -1
- package/esm/base/measureTitles/fillMissingTitles.js +3 -3
- package/esm/base/measureTitles/fillMissingTitles.js.map +1 -1
- package/esm/base/react/BackendContext.js +2 -2
- package/esm/base/react/BackendContext.js.map +1 -1
- package/esm/base/react/CancelablePromise.js +1 -1
- package/esm/base/react/CancelablePromise.js.map +1 -1
- package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts +3 -3
- package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts.map +1 -1
- package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js +6 -6
- package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js.map +1 -1
- package/esm/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.d.ts +1 -1
- package/esm/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.d.ts.map +1 -1
- package/esm/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.js +2 -2
- package/esm/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.js.map +1 -1
- package/esm/base/react/PromiseCache.js +2 -2
- package/esm/base/react/PromiseCache.js.map +1 -1
- package/esm/base/react/WorkspaceContext.js +2 -2
- package/esm/base/react/WorkspaceContext.js.map +1 -1
- package/esm/base/react/legacy/availableDrillTargets.d.ts +2 -2
- package/esm/base/react/legacy/availableDrillTargets.d.ts.map +1 -1
- package/esm/base/react/legacy/availableDrillTargets.js +2 -2
- package/esm/base/react/legacy/availableDrillTargets.js.map +1 -1
- package/esm/base/react/legacy/withEntireDataView.d.ts +2 -2
- package/esm/base/react/legacy/withEntireDataView.d.ts.map +1 -1
- package/esm/base/react/legacy/withEntireDataView.js +8 -8
- package/esm/base/react/legacy/withEntireDataView.js.map +1 -1
- package/esm/base/react/placeholders/aliases.d.ts +1 -1
- package/esm/base/react/placeholders/aliases.d.ts.map +1 -1
- package/esm/base/react/placeholders/base.js +1 -1
- package/esm/base/react/placeholders/base.js.map +1 -1
- package/esm/base/react/placeholders/context.d.ts +1 -1
- package/esm/base/react/placeholders/context.d.ts.map +1 -1
- package/esm/base/react/placeholders/context.js +1 -1
- package/esm/base/react/placeholders/context.js.map +1 -1
- package/esm/base/react/placeholders/factory.d.ts +1 -1
- package/esm/base/react/placeholders/factory.d.ts.map +1 -1
- package/esm/base/react/placeholders/factory.js +2 -2
- package/esm/base/react/placeholders/factory.js.map +1 -1
- package/esm/base/react/placeholders/hooks.d.ts +1 -1
- package/esm/base/react/placeholders/hooks.d.ts.map +1 -1
- package/esm/base/react/placeholders/hooks.js +4 -4
- package/esm/base/react/placeholders/hooks.js.map +1 -1
- package/esm/base/react/placeholders/resolve.d.ts +2 -2
- package/esm/base/react/placeholders/resolve.d.ts.map +1 -1
- package/esm/base/react/placeholders/resolve.js +2 -2
- package/esm/base/react/placeholders/resolve.js.map +1 -1
- package/esm/base/react/useCancelablePromise.js +4 -4
- package/esm/base/react/useCancelablePromise.js.map +1 -1
- package/esm/base/react/useCancelablePromiseUtils.d.ts +1 -1
- package/esm/base/react/useCancelablePromiseUtils.d.ts.map +1 -1
- package/esm/base/react/useCancelablePromiseUtils.js +2 -2
- package/esm/base/react/useCancelablePromiseUtils.js.map +1 -1
- package/esm/base/react/usePagedResource.js +1 -1
- package/esm/base/react/usePagedResource.js.map +1 -1
- package/esm/base/react/usePromiseCache.js +1 -1
- package/esm/base/react/usePromiseCache.js.map +1 -1
- package/esm/base/react/withContexts.js +4 -4
- package/esm/base/react/withContexts.js.map +1 -1
- package/esm/base/results/dataAccess.d.ts +2 -11
- package/esm/base/results/dataAccess.d.ts.map +1 -1
- package/esm/base/results/dataAccessConfig.d.ts +3 -3
- package/esm/base/results/dataAccessConfig.d.ts.map +1 -1
- package/esm/base/results/dataAccessConfig.js +6 -6
- package/esm/base/results/dataAccessConfig.js.map +1 -1
- package/esm/base/results/facade.d.ts +5 -5
- package/esm/base/results/facade.d.ts.map +1 -1
- package/esm/base/results/facade.js +4 -4
- package/esm/base/results/facade.js.map +1 -1
- package/esm/base/results/internal/dataAccessDigest.js +2 -2
- package/esm/base/results/internal/dataAccessDigest.js.map +1 -1
- package/esm/base/results/internal/dataAccessImpl.d.ts +3 -3
- package/esm/base/results/internal/dataAccessImpl.d.ts.map +1 -1
- package/esm/base/results/internal/dataAccessImpl.js +7 -7
- package/esm/base/results/internal/dataAccessImpl.js.map +1 -1
- package/esm/base/results/internal/dataAccessMethods.d.ts +2 -2
- package/esm/base/results/internal/dataAccessMethods.d.ts.map +1 -1
- package/esm/base/results/internal/dataAccessMethods.js +2 -2
- package/esm/base/results/internal/dataAccessMethods.js.map +1 -1
- package/esm/base/results/internal/definitionMethods.js +1 -1
- package/esm/base/results/internal/definitionMethods.js.map +1 -1
- package/esm/base/results/internal/lazyInitArray.js +1 -1
- package/esm/base/results/internal/lazyInitArray.js.map +1 -1
- package/esm/base/results/internal/resultDataMethods.js +2 -2
- package/esm/base/results/internal/resultDataMethods.js.map +1 -1
- package/esm/base/results/internal/resultMetaMethods.js +2 -2
- package/esm/base/results/internal/resultMetaMethods.js.map +1 -1
- package/esm/base/vis/DrillEvents.d.ts +2 -2
- package/esm/base/vis/DrillEvents.d.ts.map +1 -1
- package/esm/base/vis/DrillEvents.js +2 -2
- package/esm/base/vis/DrillEvents.js.map +1 -1
- package/esm/base/vis/Events.d.ts +13 -4
- package/esm/base/vis/Events.d.ts.map +1 -1
- package/esm/base/vis/VisualizationProps.d.ts +4 -4
- package/esm/base/vis/VisualizationProps.d.ts.map +1 -1
- package/esm/base/vis/drilling.d.ts +4 -4
- package/esm/base/vis/drilling.d.ts.map +1 -1
- package/esm/base/vis/drilling.js +3 -3
- package/esm/base/vis/drilling.js.map +1 -1
- package/esm/base/vis/export.d.ts +2 -2
- package/esm/base/vis/export.d.ts.map +1 -1
- package/esm/base/vis/export.js +1 -1
- package/esm/base/vis/export.js.map +1 -1
- package/esm/execution/DataViewLoader.d.ts +2 -2
- package/esm/execution/DataViewLoader.d.ts.map +1 -1
- package/esm/execution/DataViewLoader.js +3 -3
- package/esm/execution/DataViewLoader.js.map +1 -1
- package/esm/execution/Execute.d.ts +3 -3
- package/esm/execution/Execute.d.ts.map +1 -1
- package/esm/execution/Execute.js +4 -4
- package/esm/execution/Execute.js.map +1 -1
- package/esm/execution/ExecuteInsight.d.ts +2 -2
- package/esm/execution/ExecuteInsight.d.ts.map +1 -1
- package/esm/execution/ExecuteInsight.js +4 -4
- package/esm/execution/ExecuteInsight.js.map +1 -1
- package/esm/execution/RawExecute.d.ts +2 -2
- package/esm/execution/RawExecute.d.ts.map +1 -1
- package/esm/execution/RawExecute.js +2 -2
- package/esm/execution/RawExecute.js.map +1 -1
- package/esm/execution/createExecution.js +3 -3
- package/esm/execution/createExecution.js.map +1 -1
- package/esm/execution/index.d.ts +10 -10
- package/esm/execution/index.d.ts.map +1 -1
- package/esm/execution/index.js +9 -9
- package/esm/execution/index.js.map +1 -1
- package/esm/execution/interfaces.d.ts +1 -1
- package/esm/execution/interfaces.d.ts.map +1 -1
- package/esm/execution/useDataExport.d.ts +1 -1
- package/esm/execution/useDataExport.d.ts.map +1 -1
- package/esm/execution/useDataExport.js +1 -1
- package/esm/execution/useDataExport.js.map +1 -1
- package/esm/execution/useExecutionDataView.d.ts +2 -2
- package/esm/execution/useExecutionDataView.d.ts.map +1 -1
- package/esm/execution/useExecutionDataView.js +3 -3
- package/esm/execution/useExecutionDataView.js.map +1 -1
- package/esm/execution/useInsight.d.ts +1 -1
- package/esm/execution/useInsight.d.ts.map +1 -1
- package/esm/execution/useInsight.js +1 -1
- package/esm/execution/useInsight.js.map +1 -1
- package/esm/execution/useInsightDataView.d.ts +2 -2
- package/esm/execution/useInsightDataView.d.ts.map +1 -1
- package/esm/execution/useInsightDataView.js +3 -3
- package/esm/execution/useInsightDataView.js.map +1 -1
- package/esm/execution/withExecution.d.ts +1 -1
- package/esm/execution/withExecution.d.ts.map +1 -1
- package/esm/execution/withExecution.js +2 -2
- package/esm/execution/withExecution.js.map +1 -1
- package/esm/execution/withExecutionLoading.d.ts +1 -1
- package/esm/execution/withExecutionLoading.d.ts.map +1 -1
- package/esm/execution/withExecutionLoading.js +2 -2
- package/esm/execution/withExecutionLoading.js.map +1 -1
- package/esm/index.d.ts +3 -3
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +3 -3
- package/esm/index.js.map +1 -1
- package/esm/kpi/FormattedNumber.d.ts +2 -2
- package/esm/kpi/FormattedNumber.d.ts.map +1 -1
- package/esm/kpi/FormattedNumber.js +3 -3
- package/esm/kpi/FormattedNumber.js.map +1 -1
- package/esm/kpi/Kpi.d.ts +4 -4
- package/esm/kpi/Kpi.d.ts.map +1 -1
- package/esm/kpi/Kpi.js +7 -7
- package/esm/kpi/Kpi.js.map +1 -1
- package/esm/kpi/KpiError.d.ts +1 -1
- package/esm/kpi/KpiError.d.ts.map +1 -1
- package/esm/kpi/index.d.ts +1 -1
- package/esm/kpi/index.d.ts.map +1 -1
- package/esm/kpi/index.js +1 -1
- package/esm/kpi/index.js.map +1 -1
- package/{dist → esm}/sdk-ui.d.ts +21 -20
- package/esm/tsdoc-metadata.json +1 -1
- package/package.json +29 -39
- package/dist/base/constants/bucketNames.d.ts +0 -33
- package/dist/base/constants/bucketNames.d.ts.map +0 -1
- package/dist/base/constants/bucketNames.js +0 -47
- package/dist/base/constants/bucketNames.js.map +0 -1
- package/dist/base/constants/colorPalette.d.ts +0 -7
- package/dist/base/constants/colorPalette.d.ts.map +0 -1
- package/dist/base/constants/colorPalette.js +0 -90
- package/dist/base/constants/colorPalette.js.map +0 -1
- package/dist/base/errors/GoodDataSdkError.d.ts +0 -245
- package/dist/base/errors/GoodDataSdkError.d.ts.map +0 -1
- package/dist/base/errors/GoodDataSdkError.js +0 -346
- package/dist/base/errors/GoodDataSdkError.js.map +0 -1
- package/dist/base/errors/errorHandling.d.ts +0 -46
- package/dist/base/errors/errorHandling.d.ts.map +0 -1
- package/dist/base/errors/errorHandling.js +0 -115
- package/dist/base/errors/errorHandling.js.map +0 -1
- package/dist/base/headerMatching/HeaderPredicate.d.ts +0 -26
- package/dist/base/headerMatching/HeaderPredicate.d.ts.map +0 -1
- package/dist/base/headerMatching/HeaderPredicate.js +0 -12
- package/dist/base/headerMatching/HeaderPredicate.js.map +0 -1
- package/dist/base/headerMatching/HeaderPredicateFactory.d.ts +0 -79
- package/dist/base/headerMatching/HeaderPredicateFactory.d.ts.map +0 -1
- package/dist/base/headerMatching/HeaderPredicateFactory.js +0 -276
- package/dist/base/headerMatching/HeaderPredicateFactory.js.map +0 -1
- package/dist/base/headerMatching/MappingHeader.d.ts +0 -55
- package/dist/base/headerMatching/MappingHeader.d.ts.map +0 -1
- package/dist/base/headerMatching/MappingHeader.js +0 -125
- package/dist/base/headerMatching/MappingHeader.js.map +0 -1
- package/dist/base/helpers/logging.d.ts +0 -5
- package/dist/base/helpers/logging.d.ts.map +0 -1
- package/dist/base/helpers/logging.js +0 -12
- package/dist/base/helpers/logging.js.map +0 -1
- package/dist/base/index.d.ts +0 -59
- package/dist/base/index.d.ts.map +0 -1
- package/dist/base/index.js +0 -219
- package/dist/base/index.js.map +0 -1
- package/dist/base/interfaces/OverTimeComparison.d.ts +0 -13
- package/dist/base/interfaces/OverTimeComparison.d.ts.map +0 -1
- package/dist/base/interfaces/OverTimeComparison.js +0 -13
- package/dist/base/interfaces/OverTimeComparison.js.map +0 -1
- package/dist/base/localization/IntlStore.d.ts +0 -21
- package/dist/base/localization/IntlStore.d.ts.map +0 -1
- package/dist/base/localization/IntlStore.js +0 -46
- package/dist/base/localization/IntlStore.js.map +0 -1
- package/dist/base/localization/IntlWrapper.d.ts +0 -13
- package/dist/base/localization/IntlWrapper.d.ts.map +0 -1
- package/dist/base/localization/IntlWrapper.js +0 -25
- package/dist/base/localization/IntlWrapper.js.map +0 -1
- package/dist/base/localization/Locale.d.ts +0 -25
- package/dist/base/localization/Locale.d.ts.map +0 -1
- package/dist/base/localization/Locale.js +0 -37
- package/dist/base/localization/Locale.js.map +0 -1
- package/dist/base/localization/TranslationsCustomizationProvider/Context.d.ts +0 -27
- package/dist/base/localization/TranslationsCustomizationProvider/Context.d.ts.map +0 -1
- package/dist/base/localization/TranslationsCustomizationProvider/Context.js +0 -40
- package/dist/base/localization/TranslationsCustomizationProvider/Context.js.map +0 -1
- package/dist/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.d.ts +0 -54
- package/dist/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.d.ts.map +0 -1
- package/dist/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.js +0 -49
- package/dist/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.js.map +0 -1
- package/dist/base/localization/TranslationsCustomizationProvider/index.d.ts +0 -4
- package/dist/base/localization/TranslationsCustomizationProvider/index.d.ts.map +0 -1
- package/dist/base/localization/TranslationsCustomizationProvider/index.js +0 -16
- package/dist/base/localization/TranslationsCustomizationProvider/index.js.map +0 -1
- package/dist/base/localization/TranslationsCustomizationProvider/utils.d.ts +0 -24
- package/dist/base/localization/TranslationsCustomizationProvider/utils.d.ts.map +0 -1
- package/dist/base/localization/TranslationsCustomizationProvider/utils.js +0 -74
- package/dist/base/localization/TranslationsCustomizationProvider/utils.js.map +0 -1
- package/dist/base/localization/TranslationsProvider.d.ts +0 -33
- package/dist/base/localization/TranslationsProvider.d.ts.map +0 -1
- package/dist/base/localization/TranslationsProvider.js +0 -31
- package/dist/base/localization/TranslationsProvider.js.map +0 -1
- package/dist/base/localization/bundles/de-DE.json +0 -374
- package/dist/base/localization/bundles/en-US.json +0 -1964
- package/dist/base/localization/bundles/es-ES.json +0 -374
- package/dist/base/localization/bundles/fr-FR.json +0 -374
- package/dist/base/localization/bundles/ja-JP.json +0 -374
- package/dist/base/localization/bundles/nl-NL.json +0 -374
- package/dist/base/localization/bundles/pt-BR.json +0 -374
- package/dist/base/localization/bundles/pt-PT.json +0 -374
- package/dist/base/localization/bundles/ru-RU.json +0 -374
- package/dist/base/localization/bundles/zh-Hans.json +0 -374
- package/dist/base/localization/intlUtils.d.ts +0 -33
- package/dist/base/localization/intlUtils.d.ts.map +0 -1
- package/dist/base/localization/intlUtils.js +0 -65
- package/dist/base/localization/intlUtils.js.map +0 -1
- package/dist/base/localization/messagesMap.d.ts +0 -13
- package/dist/base/localization/messagesMap.d.ts.map +0 -1
- package/dist/base/localization/messagesMap.js +0 -32
- package/dist/base/localization/messagesMap.js.map +0 -1
- package/dist/base/measureFormats/fillMissingFormat.d.ts +0 -12
- package/dist/base/measureFormats/fillMissingFormat.d.ts.map +0 -1
- package/dist/base/measureFormats/fillMissingFormat.js +0 -27
- package/dist/base/measureFormats/fillMissingFormat.js.map +0 -1
- package/dist/base/measureFormats/fillMissingFormats.d.ts +0 -12
- package/dist/base/measureFormats/fillMissingFormats.d.ts.map +0 -1
- package/dist/base/measureFormats/fillMissingFormats.js +0 -20
- package/dist/base/measureFormats/fillMissingFormats.js.map +0 -1
- package/dist/base/measureTitles/ArithmeticMeasureTitleFactory.d.ts +0 -32
- package/dist/base/measureTitles/ArithmeticMeasureTitleFactory.d.ts.map +0 -1
- package/dist/base/measureTitles/ArithmeticMeasureTitleFactory.js +0 -69
- package/dist/base/measureTitles/ArithmeticMeasureTitleFactory.js.map +0 -1
- package/dist/base/measureTitles/DerivedMeasureTitleSuffixFactory.d.ts +0 -28
- package/dist/base/measureTitles/DerivedMeasureTitleSuffixFactory.d.ts.map +0 -1
- package/dist/base/measureTitles/DerivedMeasureTitleSuffixFactory.js +0 -49
- package/dist/base/measureTitles/DerivedMeasureTitleSuffixFactory.js.map +0 -1
- package/dist/base/measureTitles/MeasureTitle.d.ts +0 -21
- package/dist/base/measureTitles/MeasureTitle.d.ts.map +0 -1
- package/dist/base/measureTitles/MeasureTitle.js +0 -3
- package/dist/base/measureTitles/MeasureTitle.js.map +0 -1
- package/dist/base/measureTitles/fillMissingTitles.d.ts +0 -23
- package/dist/base/measureTitles/fillMissingTitles.d.ts.map +0 -1
- package/dist/base/measureTitles/fillMissingTitles.js +0 -157
- package/dist/base/measureTitles/fillMissingTitles.js.map +0 -1
- package/dist/base/measureTitles/ignoreTitlesForSimpleMeasures.d.ts +0 -14
- package/dist/base/measureTitles/ignoreTitlesForSimpleMeasures.d.ts.map +0 -1
- package/dist/base/measureTitles/ignoreTitlesForSimpleMeasures.js +0 -32
- package/dist/base/measureTitles/ignoreTitlesForSimpleMeasures.js.map +0 -1
- package/dist/base/react/BackendContext.d.ts +0 -78
- package/dist/base/react/BackendContext.d.ts.map +0 -1
- package/dist/base/react/BackendContext.js +0 -89
- package/dist/base/react/BackendContext.js.map +0 -1
- package/dist/base/react/CancelablePromise.d.ts +0 -38
- package/dist/base/react/CancelablePromise.d.ts.map +0 -1
- package/dist/base/react/CancelablePromise.js +0 -82
- package/dist/base/react/CancelablePromise.js.map +0 -1
- package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts +0 -116
- package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts.map +0 -1
- package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js +0 -134
- package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js.map +0 -1
- package/dist/base/react/ClientWorkspaceContext/interfaces.d.ts +0 -35
- package/dist/base/react/ClientWorkspaceContext/interfaces.d.ts.map +0 -1
- package/dist/base/react/ClientWorkspaceContext/interfaces.js +0 -4
- package/dist/base/react/ClientWorkspaceContext/interfaces.js.map +0 -1
- package/dist/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.d.ts +0 -17
- package/dist/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.d.ts.map +0 -1
- package/dist/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.js +0 -76
- package/dist/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.js.map +0 -1
- package/dist/base/react/ErrorComponent.d.ts +0 -35
- package/dist/base/react/ErrorComponent.d.ts.map +0 -1
- package/dist/base/react/ErrorComponent.js +0 -90
- package/dist/base/react/ErrorComponent.js.map +0 -1
- package/dist/base/react/LoadingComponent.d.ts +0 -28
- package/dist/base/react/LoadingComponent.d.ts.map +0 -1
- package/dist/base/react/LoadingComponent.js +0 -81
- package/dist/base/react/LoadingComponent.js.map +0 -1
- package/dist/base/react/PromiseCache.d.ts +0 -21
- package/dist/base/react/PromiseCache.d.ts.map +0 -1
- package/dist/base/react/PromiseCache.js +0 -66
- package/dist/base/react/PromiseCache.js.map +0 -1
- package/dist/base/react/WorkspaceContext.d.ts +0 -77
- package/dist/base/react/WorkspaceContext.d.ts.map +0 -1
- package/dist/base/react/WorkspaceContext.js +0 -89
- package/dist/base/react/WorkspaceContext.js.map +0 -1
- package/dist/base/react/legacy/availableDrillTargets.d.ts +0 -12
- package/dist/base/react/legacy/availableDrillTargets.d.ts.map +0 -1
- package/dist/base/react/legacy/availableDrillTargets.js +0 -49
- package/dist/base/react/legacy/availableDrillTargets.js.map +0 -1
- package/dist/base/react/legacy/withEntireDataView.d.ts +0 -51
- package/dist/base/react/legacy/withEntireDataView.d.ts.map +0 -1
- package/dist/base/react/legacy/withEntireDataView.js +0 -171
- package/dist/base/react/legacy/withEntireDataView.js.map +0 -1
- package/dist/base/react/placeholders/aliases.d.ts +0 -92
- package/dist/base/react/placeholders/aliases.d.ts.map +0 -1
- package/dist/base/react/placeholders/aliases.js +0 -3
- package/dist/base/react/placeholders/aliases.js.map +0 -1
- package/dist/base/react/placeholders/base.d.ts +0 -279
- package/dist/base/react/placeholders/base.d.ts.map +0 -1
- package/dist/base/react/placeholders/base.js +0 -33
- package/dist/base/react/placeholders/base.js.map +0 -1
- package/dist/base/react/placeholders/context.d.ts +0 -36
- package/dist/base/react/placeholders/context.d.ts.map +0 -1
- package/dist/base/react/placeholders/context.js +0 -47
- package/dist/base/react/placeholders/context.js.map +0 -1
- package/dist/base/react/placeholders/factory.d.ts +0 -34
- package/dist/base/react/placeholders/factory.d.ts.map +0 -1
- package/dist/base/react/placeholders/factory.js +0 -45
- package/dist/base/react/placeholders/factory.js.map +0 -1
- package/dist/base/react/placeholders/hooks.d.ts +0 -70
- package/dist/base/react/placeholders/hooks.d.ts.map +0 -1
- package/dist/base/react/placeholders/hooks.js +0 -150
- package/dist/base/react/placeholders/hooks.js.map +0 -1
- package/dist/base/react/placeholders/resolve.d.ts +0 -30
- package/dist/base/react/placeholders/resolve.d.ts.map +0 -1
- package/dist/base/react/placeholders/resolve.js +0 -82
- package/dist/base/react/placeholders/resolve.js.map +0 -1
- package/dist/base/react/safeSerialize.d.ts +0 -9
- package/dist/base/react/safeSerialize.d.ts.map +0 -1
- package/dist/base/react/safeSerialize.js +0 -21
- package/dist/base/react/safeSerialize.js.map +0 -1
- package/dist/base/react/useCancelablePromise.d.ts +0 -99
- package/dist/base/react/useCancelablePromise.d.ts.map +0 -1
- package/dist/base/react/useCancelablePromise.js +0 -112
- package/dist/base/react/useCancelablePromise.js.map +0 -1
- package/dist/base/react/useCancelablePromiseUtils.d.ts +0 -48
- package/dist/base/react/useCancelablePromiseUtils.d.ts.map +0 -1
- package/dist/base/react/useCancelablePromiseUtils.js +0 -107
- package/dist/base/react/useCancelablePromiseUtils.js.map +0 -1
- package/dist/base/react/usePagedResource.d.ts +0 -21
- package/dist/base/react/usePagedResource.d.ts.map +0 -1
- package/dist/base/react/usePagedResource.js +0 -44
- package/dist/base/react/usePagedResource.js.map +0 -1
- package/dist/base/react/usePrevious.d.ts +0 -8
- package/dist/base/react/usePrevious.d.ts.map +0 -1
- package/dist/base/react/usePrevious.js +0 -20
- package/dist/base/react/usePrevious.js.map +0 -1
- package/dist/base/react/usePromiseCache.d.ts +0 -18
- package/dist/base/react/usePromiseCache.d.ts.map +0 -1
- package/dist/base/react/usePromiseCache.js +0 -61
- package/dist/base/react/usePromiseCache.js.map +0 -1
- package/dist/base/react/withContexts.d.ts +0 -11
- package/dist/base/react/withContexts.d.ts.map +0 -1
- package/dist/base/react/withContexts.js +0 -18
- package/dist/base/react/withContexts.js.map +0 -1
- package/dist/base/react/wrapDisplayName.d.ts +0 -7
- package/dist/base/react/wrapDisplayName.d.ts.map +0 -1
- package/dist/base/react/wrapDisplayName.js +0 -24
- package/dist/base/react/wrapDisplayName.js.map +0 -1
- package/dist/base/results/dataAccess.d.ts +0 -381
- package/dist/base/results/dataAccess.d.ts.map +0 -1
- package/dist/base/results/dataAccess.js +0 -3
- package/dist/base/results/dataAccess.js.map +0 -1
- package/dist/base/results/dataAccessConfig.d.ts +0 -42
- package/dist/base/results/dataAccessConfig.d.ts.map +0 -1
- package/dist/base/results/dataAccessConfig.js +0 -38
- package/dist/base/results/dataAccessConfig.js.map +0 -1
- package/dist/base/results/facade.d.ts +0 -95
- package/dist/base/results/facade.d.ts.map +0 -1
- package/dist/base/results/facade.js +0 -158
- package/dist/base/results/facade.js.map +0 -1
- package/dist/base/results/internal/dataAccessDigest.d.ts +0 -113
- package/dist/base/results/internal/dataAccessDigest.d.ts.map +0 -1
- package/dist/base/results/internal/dataAccessDigest.js +0 -143
- package/dist/base/results/internal/dataAccessDigest.js.map +0 -1
- package/dist/base/results/internal/dataAccessImpl.d.ts +0 -37
- package/dist/base/results/internal/dataAccessImpl.d.ts.map +0 -1
- package/dist/base/results/internal/dataAccessImpl.js +0 -384
- package/dist/base/results/internal/dataAccessImpl.js.map +0 -1
- package/dist/base/results/internal/dataAccessMethods.d.ts +0 -8
- package/dist/base/results/internal/dataAccessMethods.d.ts.map +0 -1
- package/dist/base/results/internal/dataAccessMethods.js +0 -122
- package/dist/base/results/internal/dataAccessMethods.js.map +0 -1
- package/dist/base/results/internal/definitionMethods.d.ts +0 -90
- package/dist/base/results/internal/definitionMethods.d.ts.map +0 -1
- package/dist/base/results/internal/definitionMethods.js +0 -82
- package/dist/base/results/internal/definitionMethods.js.map +0 -1
- package/dist/base/results/internal/lazyInitArray.d.ts +0 -15
- package/dist/base/results/internal/lazyInitArray.d.ts.map +0 -1
- package/dist/base/results/internal/lazyInitArray.js +0 -48
- package/dist/base/results/internal/lazyInitArray.js.map +0 -1
- package/dist/base/results/internal/resultDataMethods.d.ts +0 -82
- package/dist/base/results/internal/resultDataMethods.d.ts.map +0 -1
- package/dist/base/results/internal/resultDataMethods.js +0 -85
- package/dist/base/results/internal/resultDataMethods.js.map +0 -1
- package/dist/base/results/internal/resultMetaMethods.d.ts +0 -89
- package/dist/base/results/internal/resultMetaMethods.d.ts.map +0 -1
- package/dist/base/results/internal/resultMetaMethods.js +0 -145
- package/dist/base/results/internal/resultMetaMethods.js.map +0 -1
- package/dist/base/results/internal/utils.d.ts +0 -30
- package/dist/base/results/internal/utils.d.ts.map +0 -1
- package/dist/base/results/internal/utils.js +0 -54
- package/dist/base/results/internal/utils.js.map +0 -1
- package/dist/base/typings/subtract.d.ts +0 -5
- package/dist/base/typings/subtract.d.ts.map +0 -1
- package/dist/base/typings/subtract.js +0 -3
- package/dist/base/typings/subtract.js.map +0 -1
- package/dist/base/vis/DrillEvents.d.ts +0 -191
- package/dist/base/vis/DrillEvents.d.ts.map +0 -1
- package/dist/base/vis/DrillEvents.js +0 -42
- package/dist/base/vis/DrillEvents.js.map +0 -1
- package/dist/base/vis/Events.d.ts +0 -85
- package/dist/base/vis/Events.d.ts.map +0 -1
- package/dist/base/vis/Events.js +0 -3
- package/dist/base/vis/Events.js.map +0 -1
- package/dist/base/vis/VisualizationProps.d.ts +0 -94
- package/dist/base/vis/VisualizationProps.d.ts.map +0 -1
- package/dist/base/vis/VisualizationProps.js +0 -4
- package/dist/base/vis/VisualizationProps.js.map +0 -1
- package/dist/base/vis/drilling.d.ts +0 -30
- package/dist/base/vis/drilling.d.ts.map +0 -1
- package/dist/base/vis/drilling.js +0 -102
- package/dist/base/vis/drilling.js.map +0 -1
- package/dist/base/vis/export.d.ts +0 -21
- package/dist/base/vis/export.d.ts.map +0 -1
- package/dist/base/vis/export.js +0 -47
- package/dist/base/vis/export.js.map +0 -1
- package/dist/base/vis/visualizationTypes.d.ts +0 -76
- package/dist/base/vis/visualizationTypes.d.ts.map +0 -1
- package/dist/base/vis/visualizationTypes.js +0 -46
- package/dist/base/vis/visualizationTypes.js.map +0 -1
- package/dist/execution/DataViewLoader.d.ts +0 -70
- package/dist/execution/DataViewLoader.d.ts.map +0 -1
- package/dist/execution/DataViewLoader.js +0 -102
- package/dist/execution/DataViewLoader.js.map +0 -1
- package/dist/execution/Execute.d.ts +0 -134
- package/dist/execution/Execute.d.ts.map +0 -1
- package/dist/execution/Execute.js +0 -99
- package/dist/execution/Execute.js.map +0 -1
- package/dist/execution/ExecuteInsight.d.ts +0 -136
- package/dist/execution/ExecuteInsight.d.ts.map +0 -1
- package/dist/execution/ExecuteInsight.js +0 -99
- package/dist/execution/ExecuteInsight.js.map +0 -1
- package/dist/execution/RawExecute.d.ts +0 -86
- package/dist/execution/RawExecute.d.ts.map +0 -1
- package/dist/execution/RawExecute.js +0 -76
- package/dist/execution/RawExecute.js.map +0 -1
- package/dist/execution/createExecution.d.ts +0 -61
- package/dist/execution/createExecution.d.ts.map +0 -1
- package/dist/execution/createExecution.js +0 -57
- package/dist/execution/createExecution.js.map +0 -1
- package/dist/execution/index.d.ts +0 -11
- package/dist/execution/index.d.ts.map +0 -1
- package/dist/execution/index.js +0 -23
- package/dist/execution/index.js.map +0 -1
- package/dist/execution/interfaces.d.ts +0 -23
- package/dist/execution/interfaces.d.ts.map +0 -1
- package/dist/execution/interfaces.js +0 -3
- package/dist/execution/interfaces.js.map +0 -1
- package/dist/execution/useDataExport.d.ts +0 -27
- package/dist/execution/useDataExport.d.ts.map +0 -1
- package/dist/execution/useDataExport.js +0 -35
- package/dist/execution/useDataExport.js.map +0 -1
- package/dist/execution/useExecutionDataView.d.ts +0 -94
- package/dist/execution/useExecutionDataView.d.ts.map +0 -1
- package/dist/execution/useExecutionDataView.js +0 -79
- package/dist/execution/useExecutionDataView.js.map +0 -1
- package/dist/execution/useInsight.d.ts +0 -32
- package/dist/execution/useInsight.d.ts.map +0 -1
- package/dist/execution/useInsight.js +0 -22
- package/dist/execution/useInsight.js.map +0 -1
- package/dist/execution/useInsightDataView.d.ts +0 -88
- package/dist/execution/useInsightDataView.d.ts.map +0 -1
- package/dist/execution/useInsightDataView.js +0 -54
- package/dist/execution/useInsightDataView.js.map +0 -1
- package/dist/execution/withExecution.d.ts +0 -59
- package/dist/execution/withExecution.d.ts.map +0 -1
- package/dist/execution/withExecution.js +0 -46
- package/dist/execution/withExecution.js.map +0 -1
- package/dist/execution/withExecutionLoading.d.ts +0 -145
- package/dist/execution/withExecutionLoading.d.ts.map +0 -1
- package/dist/execution/withExecutionLoading.js +0 -157
- package/dist/execution/withExecutionLoading.js.map +0 -1
- package/dist/index.d.ts +0 -22
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -22
- package/dist/index.js.map +0 -1
- package/dist/kpi/FormattedNumber.d.ts +0 -16
- package/dist/kpi/FormattedNumber.d.ts.map +0 -1
- package/dist/kpi/FormattedNumber.js +0 -18
- package/dist/kpi/FormattedNumber.js.map +0 -1
- package/dist/kpi/Kpi.d.ts +0 -65
- package/dist/kpi/Kpi.d.ts.map +0 -1
- package/dist/kpi/Kpi.js +0 -72
- package/dist/kpi/Kpi.js.map +0 -1
- package/dist/kpi/KpiError.d.ts +0 -7
- package/dist/kpi/KpiError.d.ts.map +0 -1
- package/dist/kpi/KpiError.js +0 -23
- package/dist/kpi/KpiError.js.map +0 -1
- package/dist/kpi/index.d.ts +0 -2
- package/dist/kpi/index.d.ts.map +0 -1
- package/dist/kpi/index.js +0 -7
- package/dist/kpi/index.js.map +0 -1
- package/dist/locales.d.ts +0 -3
- package/dist/locales.d.ts.map +0 -1
- package/dist/locales.js +0 -22
- package/dist/locales.js.map +0 -1
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.withBackend = exports.useBackendStrict = exports.useBackend = exports.BackendProvider = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
// (C) 2019-2022 GoodData Corporation
|
|
6
|
-
const react_1 = tslib_1.__importDefault(require("react"));
|
|
7
|
-
const wrapDisplayName_1 = require("./wrapDisplayName");
|
|
8
|
-
const ts_invariant_1 = tslib_1.__importDefault(require("ts-invariant"));
|
|
9
|
-
const BackendContext = react_1.default.createContext(undefined);
|
|
10
|
-
BackendContext.displayName = "BackendContext";
|
|
11
|
-
/**
|
|
12
|
-
* BackendProvider can be used to inject analytical backend instance to all ui-sdk components in your app.
|
|
13
|
-
*
|
|
14
|
-
* @public
|
|
15
|
-
*/
|
|
16
|
-
const BackendProvider = ({ children, backend }) => {
|
|
17
|
-
return react_1.default.createElement(BackendContext.Provider, { value: backend }, children);
|
|
18
|
-
};
|
|
19
|
-
exports.BackendProvider = BackendProvider;
|
|
20
|
-
/**
|
|
21
|
-
* Hook to get analytical backend instance provided to {@link BackendProvider}.
|
|
22
|
-
*
|
|
23
|
-
* @remarks
|
|
24
|
-
* You can set a backend override that will be returned if defined.
|
|
25
|
-
* This makes the usage more ergonomic (see the following example).
|
|
26
|
-
*
|
|
27
|
-
* Note: For a better TypeScript experience without the hassle of undefined values, you can use the {@link useBackendStrict} hook.
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* ```
|
|
31
|
-
* // instead of
|
|
32
|
-
* const fromContext = useBackend();
|
|
33
|
-
* const effectiveBackend = fromArguments ?? fromContext.
|
|
34
|
-
* // you can write
|
|
35
|
-
* const backend = useBackend(fromArguments);
|
|
36
|
-
*```
|
|
37
|
-
*
|
|
38
|
-
* @param backend - backend to use instead of context value. If undefined, the context value is used.
|
|
39
|
-
* @public
|
|
40
|
-
*/
|
|
41
|
-
const useBackend = (backend) => {
|
|
42
|
-
const backendFromContext = react_1.default.useContext(BackendContext);
|
|
43
|
-
return backend !== null && backend !== void 0 ? backend : backendFromContext;
|
|
44
|
-
};
|
|
45
|
-
exports.useBackend = useBackend;
|
|
46
|
-
/**
|
|
47
|
-
* Hook to get analytical backend instance provided to {@link BackendProvider}.
|
|
48
|
-
*
|
|
49
|
-
* @remarks
|
|
50
|
-
* You can set a backend override that will be returned if defined.
|
|
51
|
-
* This makes the usage more ergonomic (see the following example).
|
|
52
|
-
*
|
|
53
|
-
* Note: If you do not provide an {@link @gooddata/sdk-backend-spi#IAnalyticalBackend} instance to {@link BackendProvider} or as a parameter for this hook,
|
|
54
|
-
* an invariant error is raised.
|
|
55
|
-
*
|
|
56
|
-
* @example
|
|
57
|
-
* ```
|
|
58
|
-
* // instead of
|
|
59
|
-
* const fromContext = useBackendStrict();
|
|
60
|
-
* const effectiveBackend = fromArguments ?? fromContext.
|
|
61
|
-
* // you can write
|
|
62
|
-
* const backend = useBackendStrict(fromArguments);
|
|
63
|
-
*```
|
|
64
|
-
*
|
|
65
|
-
* @param backend - backend to use instead of context value. If undefined, the context value is used.
|
|
66
|
-
* @param context - provide context to improve error message in raised invariant (e.g. parent hook name).
|
|
67
|
-
* @public
|
|
68
|
-
*/
|
|
69
|
-
const useBackendStrict = (backend, context = "useBackendStrict") => {
|
|
70
|
-
const backendFromContext = react_1.default.useContext(BackendContext);
|
|
71
|
-
const effectiveBackend = backend !== null && backend !== void 0 ? backend : backendFromContext;
|
|
72
|
-
(0, ts_invariant_1.default)(effectiveBackend, `${context}: IAnalyticalBackend must be defined. Either pass it as a parameter or make sure there is a BackendProvider up the component tree.`);
|
|
73
|
-
return effectiveBackend;
|
|
74
|
-
};
|
|
75
|
-
exports.useBackendStrict = useBackendStrict;
|
|
76
|
-
/**
|
|
77
|
-
* Wraps component into a BackendContext consumer - injecting an instance of backend from context into the
|
|
78
|
-
* backend prop.
|
|
79
|
-
*
|
|
80
|
-
* @internal
|
|
81
|
-
*/
|
|
82
|
-
function withBackend(Component) {
|
|
83
|
-
const ComponentWithInjectedBackend = (props) => {
|
|
84
|
-
return (react_1.default.createElement(BackendContext.Consumer, null, (backend) => { var _a; return react_1.default.createElement(Component, Object.assign({}, props, { backend: (_a = props.backend) !== null && _a !== void 0 ? _a : backend })); }));
|
|
85
|
-
};
|
|
86
|
-
return (0, wrapDisplayName_1.wrapDisplayName)("withBackend", Component)(ComponentWithInjectedBackend);
|
|
87
|
-
}
|
|
88
|
-
exports.withBackend = withBackend;
|
|
89
|
-
//# sourceMappingURL=BackendContext.js.map
|
|
@@ -1 +0,0 @@
|
|
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AAC,KAAK,EAAE,EAAE;QACxD,OAAO,CACH,8BAAC,cAAc,CAAC,QAAQ,QACnB,CAAC,OAAO,EAAE,EAAE,WAAC,OAAA,8BAAC,SAAS,oBAAK,KAAK,IAAE,OAAO,EAAE,MAAA,KAAK,CAAC,OAAO,mCAAI,OAAO,IAAI,CAAA,EAAA,CACnD,CAC7B,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,IAAA,iCAAe,EAAC,aAAa,EAAE,SAAS,CAAC,CAAC,4BAA4B,CAAC,CAAC;AACnF,CAAC;AAZD,kCAYC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @internal
|
|
3
|
-
*/
|
|
4
|
-
export interface ICancelablePromise<T> {
|
|
5
|
-
promise: Promise<T>;
|
|
6
|
-
cancel: (reason?: string) => void;
|
|
7
|
-
getHasFulfilled: () => boolean;
|
|
8
|
-
getHasCanceled: () => boolean;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* @internal
|
|
12
|
-
*/
|
|
13
|
-
export declare class CancelError extends Error {
|
|
14
|
-
reason?: string | undefined;
|
|
15
|
-
constructor(reason?: string | undefined);
|
|
16
|
-
/**
|
|
17
|
-
* Underlying cause of this error (if any).
|
|
18
|
-
*/
|
|
19
|
-
getReason(): string | undefined;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* @internal
|
|
23
|
-
*/
|
|
24
|
-
export declare const isCancelError: (obj: unknown) => obj is CancelError;
|
|
25
|
-
/**
|
|
26
|
-
* !!! USE WITH CAUTION !!! Opinionated utility to wrap promise and make it cancelable
|
|
27
|
-
*
|
|
28
|
-
* - It does not stop original promise execution after canceling, it just does not care about it's results anymore
|
|
29
|
-
* (for example when react component unmounts)
|
|
30
|
-
* - This is not meant to be universal solution to make promises cancelable, it's not easily composable,
|
|
31
|
-
* and it's not good to solve more complex async logic
|
|
32
|
-
* - For cancelable async operations, there are much better abstractions than promises, for example Tasks,
|
|
33
|
-
* however there is no standard for this in JavaScript
|
|
34
|
-
*
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
|
-
export declare function makeCancelable<T>(promise: Promise<T>): ICancelablePromise<T>;
|
|
38
|
-
//# sourceMappingURL=CancelablePromise.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CancelablePromise.d.ts","sourceRoot":"","sources":["../../../src/base/react/CancelablePromise.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,kBAAkB,CAAC,CAAC;IACjC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IACpB,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,eAAe,EAAE,MAAM,OAAO,CAAC;IAC/B,cAAc,EAAE,MAAM,OAAO,CAAC;CACjC;AAOD;;GAEG;AACH,qBAAa,WAAY,SAAQ,KAAK;IACf,MAAM,CAAC;gBAAP,MAAM,CAAC,oBAAQ;IAOlC;;OAEG;IACI,SAAS,IAAI,MAAM,GAAG,SAAS;CAGzC;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,QAAS,OAAO,uBAEzC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAmC5E"}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.makeCancelable = exports.isCancelError = exports.CancelError = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
// (C) 2019-2021 GoodData Corporation
|
|
6
|
-
const isError_1 = tslib_1.__importDefault(require("lodash/isError"));
|
|
7
|
-
/**
|
|
8
|
-
* @internal
|
|
9
|
-
*/
|
|
10
|
-
const CANCEL_ERROR_MESSAGE = "Canceled";
|
|
11
|
-
/**
|
|
12
|
-
* @internal
|
|
13
|
-
*/
|
|
14
|
-
class CancelError extends Error {
|
|
15
|
-
constructor(reason) {
|
|
16
|
-
super(CANCEL_ERROR_MESSAGE);
|
|
17
|
-
this.reason = reason;
|
|
18
|
-
// https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work
|
|
19
|
-
Object.setPrototypeOf(this, CancelError.prototype);
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Underlying cause of this error (if any).
|
|
23
|
-
*/
|
|
24
|
-
getReason() {
|
|
25
|
-
return this.reason;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
exports.CancelError = CancelError;
|
|
29
|
-
/**
|
|
30
|
-
* @internal
|
|
31
|
-
*/
|
|
32
|
-
const isCancelError = (obj) => {
|
|
33
|
-
return (0, isError_1.default)(obj) && obj.message === CANCEL_ERROR_MESSAGE;
|
|
34
|
-
};
|
|
35
|
-
exports.isCancelError = isCancelError;
|
|
36
|
-
/**
|
|
37
|
-
* !!! USE WITH CAUTION !!! Opinionated utility to wrap promise and make it cancelable
|
|
38
|
-
*
|
|
39
|
-
* - It does not stop original promise execution after canceling, it just does not care about it's results anymore
|
|
40
|
-
* (for example when react component unmounts)
|
|
41
|
-
* - This is not meant to be universal solution to make promises cancelable, it's not easily composable,
|
|
42
|
-
* and it's not good to solve more complex async logic
|
|
43
|
-
* - For cancelable async operations, there are much better abstractions than promises, for example Tasks,
|
|
44
|
-
* however there is no standard for this in JavaScript
|
|
45
|
-
*
|
|
46
|
-
* @internal
|
|
47
|
-
*/
|
|
48
|
-
function makeCancelable(promise) {
|
|
49
|
-
let cancelReason;
|
|
50
|
-
let hasCanceled = false;
|
|
51
|
-
let hasFulfilled = false;
|
|
52
|
-
const wrappedPromise = new Promise((resolve, reject) => {
|
|
53
|
-
promise.then((value) => {
|
|
54
|
-
if (hasCanceled) {
|
|
55
|
-
reject(new CancelError(cancelReason));
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
hasFulfilled = true;
|
|
59
|
-
resolve(value);
|
|
60
|
-
}
|
|
61
|
-
}, (error) => {
|
|
62
|
-
if (hasCanceled) {
|
|
63
|
-
reject(new CancelError(cancelReason));
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
hasFulfilled = true;
|
|
67
|
-
reject(error);
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
return {
|
|
72
|
-
promise: wrappedPromise,
|
|
73
|
-
cancel: (reason) => {
|
|
74
|
-
hasCanceled = true;
|
|
75
|
-
cancelReason = reason;
|
|
76
|
-
},
|
|
77
|
-
getHasCanceled: () => hasCanceled,
|
|
78
|
-
getHasFulfilled: () => hasFulfilled,
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
exports.makeCancelable = makeCancelable;
|
|
82
|
-
//# sourceMappingURL=CancelablePromise.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CancelablePromise.js","sourceRoot":"","sources":["../../../src/base/react/CancelablePromise.ts"],"names":[],"mappings":";;;;AAAA,qCAAqC;AACrC,qEAAqC;AAYrC;;GAEG;AACH,MAAM,oBAAoB,GAAG,UAAU,CAAC;AAExC;;GAEG;AACH,MAAa,WAAY,SAAQ,KAAK;IAClC,YAAmB,MAAe;QAC9B,KAAK,CAAC,oBAAoB,CAAC,CAAC;QADb,WAAM,GAAN,MAAM,CAAS;QAG9B,gIAAgI;QAChI,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACvD,CAAC;IAED;;OAEG;IACI,SAAS;QACZ,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;CACJ;AAdD,kCAcC;AAED;;GAEG;AACI,MAAM,aAAa,GAAG,CAAC,GAAY,EAAsB,EAAE;IAC9D,OAAO,IAAA,iBAAO,EAAC,GAAG,CAAC,IAAI,GAAG,CAAC,OAAO,KAAK,oBAAoB,CAAC;AAChE,CAAC,CAAC;AAFW,QAAA,aAAa,iBAExB;AAEF;;;;;;;;;;;GAWG;AACH,SAAgB,cAAc,CAAI,OAAmB;IACjD,IAAI,YAAgC,CAAC;IACrC,IAAI,WAAW,GAAG,KAAK,CAAC;IACxB,IAAI,YAAY,GAAG,KAAK,CAAC;IAEzB,MAAM,cAAc,GAAG,IAAI,OAAO,CAAI,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACtD,OAAO,CAAC,IAAI,CACR,CAAC,KAAK,EAAE,EAAE;YACN,IAAI,WAAW,EAAE;gBACb,MAAM,CAAC,IAAI,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC;aACzC;iBAAM;gBACH,YAAY,GAAG,IAAI,CAAC;gBACpB,OAAO,CAAC,KAAK,CAAC,CAAC;aAClB;QACL,CAAC,EACD,CAAC,KAAK,EAAE,EAAE;YACN,IAAI,WAAW,EAAE;gBACb,MAAM,CAAC,IAAI,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC;aACzC;iBAAM;gBACH,YAAY,GAAG,IAAI,CAAC;gBACpB,MAAM,CAAC,KAAK,CAAC,CAAC;aACjB;QACL,CAAC,CACJ,CAAC;IACN,CAAC,CAAC,CAAC;IAEH,OAAO;QACH,OAAO,EAAE,cAAc;QACvB,MAAM,EAAE,CAAC,MAAe,EAAE,EAAE;YACxB,WAAW,GAAG,IAAI,CAAC;YACnB,YAAY,GAAG,MAAM,CAAC;QAC1B,CAAC;QACD,cAAc,EAAE,GAAG,EAAE,CAAC,WAAW;QACjC,eAAe,EAAE,GAAG,EAAE,CAAC,YAAY;KACtC,CAAC;AACN,CAAC;AAnCD,wCAmCC"}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { IAnalyticalBackend } from "@gooddata/sdk-backend-spi";
|
|
3
|
-
import { UseCancelablePromiseState, UseCancelablePromiseStatus } from "../useCancelablePromise";
|
|
4
|
-
import { GoodDataSdkError } from "../../errors/GoodDataSdkError";
|
|
5
|
-
import { IClientWorkspaceIdentifiers, IClientWorkspaceStatus } from "./interfaces";
|
|
6
|
-
/**
|
|
7
|
-
* @alpha
|
|
8
|
-
*/
|
|
9
|
-
export type IClientWorkspaceContext = UseCancelablePromiseState<IClientWorkspaceIdentifiers, GoodDataSdkError> & IClientWorkspaceStatus;
|
|
10
|
-
/**
|
|
11
|
-
* Common props of the {@link ClientWorkspaceProvider}.
|
|
12
|
-
*
|
|
13
|
-
* @alpha
|
|
14
|
-
*/
|
|
15
|
-
export interface IClientWorkspaceProviderCoreProps {
|
|
16
|
-
/**
|
|
17
|
-
* Specify an instance of the analytical backend instance to work with.
|
|
18
|
-
*
|
|
19
|
-
* @remarks
|
|
20
|
-
* Note: if you do not have a BackendProvider above in the component tree, then you MUST specify the backend.
|
|
21
|
-
*/
|
|
22
|
-
backend?: IAnalyticalBackend;
|
|
23
|
-
/**
|
|
24
|
-
* Wrapped React components that will have access to the LCMWorkspace context.
|
|
25
|
-
*/
|
|
26
|
-
children: React.ReactNode;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* @alpha
|
|
30
|
-
*/
|
|
31
|
-
export interface IClientWorkspaceProviderWithWorkspaceProps extends IClientWorkspaceProviderCoreProps {
|
|
32
|
-
/**
|
|
33
|
-
* Specify the workspace to use to obtain the LCM context.
|
|
34
|
-
*
|
|
35
|
-
* @remarks
|
|
36
|
-
* Note: another option is to specify dataProduct and client props, and then workspace will be resolved from them.
|
|
37
|
-
*/
|
|
38
|
-
workspace: string;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* @alpha
|
|
42
|
-
*/
|
|
43
|
-
export interface IClientWorkspaceProviderWithClientAndDataProductProps extends IClientWorkspaceProviderCoreProps {
|
|
44
|
-
/**
|
|
45
|
-
* Specify the data product identifier to use to obtain the LCM context.
|
|
46
|
-
*
|
|
47
|
-
* @remarks
|
|
48
|
-
* Note: another option is to specify workspace prop, and then data product identifier will be resolved from it.
|
|
49
|
-
*/
|
|
50
|
-
dataProduct: string;
|
|
51
|
-
/**
|
|
52
|
-
* Specify the client identifier to use to obtain the LCM context.
|
|
53
|
-
*
|
|
54
|
-
* Note: another option is to specify workspace prop, and then client identifier will be resolved from it.
|
|
55
|
-
*/
|
|
56
|
-
client: string;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Props of the {@link ClientWorkspaceProvider} component.
|
|
60
|
-
* @alpha
|
|
61
|
-
*/
|
|
62
|
-
export type IClientWorkspaceProviderProps = IClientWorkspaceProviderWithWorkspaceProps | IClientWorkspaceProviderWithClientAndDataProductProps;
|
|
63
|
-
/**
|
|
64
|
-
* ClientWorkspaceProvider can be used as a replacement of the {@link WorkspaceProvider},
|
|
65
|
-
* if you want to work with the workspace in LCM context.
|
|
66
|
-
*
|
|
67
|
-
* It allows you to:
|
|
68
|
-
* - Use dataProduct and client identifier as a replacement of the workspace identifier.
|
|
69
|
-
* Workspace identifier is resolved and provided to the {@link WorkspaceProvider} automatically.
|
|
70
|
-
*
|
|
71
|
-
* - Use workspace identifier to obtain dataProduct, client and segment identifiers by the {@link useClientWorkspaceIdentifiers} hooks.
|
|
72
|
-
*
|
|
73
|
-
* If the backend does not support clientId / dataProduct LCM provisioning,
|
|
74
|
-
* or the workspace is not provisioned via LCM, segment / client / dataProduct values will be undefined.
|
|
75
|
-
*
|
|
76
|
-
* To read more details about LCM, see: {@link https://help.gooddata.com/pages/viewpage.action?pageId=86796865}
|
|
77
|
-
*
|
|
78
|
-
* @alpha
|
|
79
|
-
*/
|
|
80
|
-
export declare const ClientWorkspaceProvider: React.FC<IClientWorkspaceProviderProps>;
|
|
81
|
-
/**
|
|
82
|
-
* ResolvedClientWorkspaceProvider can be used as a replacement of the {@link WorkspaceProvider}, if you are accessing
|
|
83
|
-
* workspace in LCM context.
|
|
84
|
-
*
|
|
85
|
-
* This provider expects that the client workspace is already resolved on input to the provider. The provider
|
|
86
|
-
* will then establish a client workspace and workspace contexts so that the resolved information can
|
|
87
|
-
* be accessed by the children.
|
|
88
|
-
*
|
|
89
|
-
* Note: check out the {@link ClientWorkspaceProvider} for version of provider that performs the resolution of
|
|
90
|
-
* client workspace identifiers to workspace.
|
|
91
|
-
*
|
|
92
|
-
* @alpha
|
|
93
|
-
*/
|
|
94
|
-
export declare const ResolvedClientWorkspaceProvider: React.FC<IClientWorkspaceIdentifiers>;
|
|
95
|
-
/**
|
|
96
|
-
* Hook to obtain loading status of the {@link ClientWorkspaceProvider} - "success", "error", "loading" or "pending".
|
|
97
|
-
* @alpha
|
|
98
|
-
*/
|
|
99
|
-
export declare const useClientWorkspaceStatus: () => UseCancelablePromiseStatus;
|
|
100
|
-
/**
|
|
101
|
-
* Hook to obtain loading error of the {@link ClientWorkspaceProvider}.
|
|
102
|
-
* @alpha
|
|
103
|
-
*/
|
|
104
|
-
export declare const useClientWorkspaceError: () => GoodDataSdkError | undefined;
|
|
105
|
-
/**
|
|
106
|
-
* Hook to obtain all resolved identifiers from the {@link ClientWorkspaceProvider} - workspace, segment, dataProduct and client.
|
|
107
|
-
* @alpha
|
|
108
|
-
*/
|
|
109
|
-
export declare const useClientWorkspaceIdentifiers: () => IClientWorkspaceIdentifiers;
|
|
110
|
-
/**
|
|
111
|
-
* Hook to check if client workspace is initialized.
|
|
112
|
-
*
|
|
113
|
-
* @alpha
|
|
114
|
-
*/
|
|
115
|
-
export declare const useClientWorkspaceInitialized: () => boolean;
|
|
116
|
-
//# sourceMappingURL=ClientWorkspaceContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ClientWorkspaceContext.d.ts","sourceRoot":"","sources":["../../../../src/base/react/ClientWorkspaceContext/ClientWorkspaceContext.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAE/D,OAAO,EAEH,yBAAyB,EACzB,0BAA0B,EAC7B,MAAM,yBAAyB,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"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useClientWorkspaceInitialized = exports.useClientWorkspaceIdentifiers = exports.useClientWorkspaceError = exports.useClientWorkspaceStatus = exports.ResolvedClientWorkspaceProvider = exports.ClientWorkspaceProvider = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
// (C) 2019-2022 GoodData Corporation
|
|
6
|
-
const react_1 = tslib_1.__importDefault(require("react"));
|
|
7
|
-
const BackendContext_1 = require("../BackendContext");
|
|
8
|
-
const useCancelablePromise_1 = require("../useCancelablePromise");
|
|
9
|
-
const isEmpty_1 = tslib_1.__importDefault(require("lodash/isEmpty"));
|
|
10
|
-
const resolveLCMWorkspaceIdentifiers_1 = require("./resolveLCMWorkspaceIdentifiers");
|
|
11
|
-
const WorkspaceContext_1 = require("../WorkspaceContext");
|
|
12
|
-
const ts_invariant_1 = tslib_1.__importDefault(require("ts-invariant"));
|
|
13
|
-
const ClientWorkspaceContext = react_1.default.createContext({
|
|
14
|
-
status: "pending",
|
|
15
|
-
error: undefined,
|
|
16
|
-
result: undefined,
|
|
17
|
-
isInitialized: false,
|
|
18
|
-
});
|
|
19
|
-
ClientWorkspaceContext.displayName = "ClientWorkspace";
|
|
20
|
-
/**
|
|
21
|
-
* ClientWorkspaceProvider can be used as a replacement of the {@link WorkspaceProvider},
|
|
22
|
-
* if you want to work with the workspace in LCM context.
|
|
23
|
-
*
|
|
24
|
-
* It allows you to:
|
|
25
|
-
* - Use dataProduct and client identifier as a replacement of the workspace identifier.
|
|
26
|
-
* Workspace identifier is resolved and provided to the {@link WorkspaceProvider} automatically.
|
|
27
|
-
*
|
|
28
|
-
* - Use workspace identifier to obtain dataProduct, client and segment identifiers by the {@link useClientWorkspaceIdentifiers} hooks.
|
|
29
|
-
*
|
|
30
|
-
* If the backend does not support clientId / dataProduct LCM provisioning,
|
|
31
|
-
* or the workspace is not provisioned via LCM, segment / client / dataProduct values will be undefined.
|
|
32
|
-
*
|
|
33
|
-
* To read more details about LCM, see: {@link https://help.gooddata.com/pages/viewpage.action?pageId=86796865}
|
|
34
|
-
*
|
|
35
|
-
* @alpha
|
|
36
|
-
*/
|
|
37
|
-
const ClientWorkspaceProvider = (props) => {
|
|
38
|
-
var _a;
|
|
39
|
-
const { children, backend: customBackend } = props;
|
|
40
|
-
const { client, dataProduct, workspace: customWorkspace } = getInputLCMIdentifiersFromProps(props);
|
|
41
|
-
const backend = (0, BackendContext_1.useBackendStrict)(customBackend, "ClientWorkspaceProvider");
|
|
42
|
-
const workspace = (0, WorkspaceContext_1.useWorkspace)(customWorkspace);
|
|
43
|
-
const lcmIdentifiers = (0, useCancelablePromise_1.useCancelablePromise)({
|
|
44
|
-
promise: () => (0, resolveLCMWorkspaceIdentifiers_1.resolveLCMWorkspaceIdentifiers)(backend, { client, dataProduct, workspace }),
|
|
45
|
-
}, [client, dataProduct, workspace, backend]);
|
|
46
|
-
const ws = (_a = lcmIdentifiers.result) === null || _a === void 0 ? void 0 : _a.workspace;
|
|
47
|
-
return (react_1.default.createElement(ClientWorkspaceContext.Provider, { value: Object.assign(Object.assign({}, lcmIdentifiers), { isInitialized: true }) },
|
|
48
|
-
react_1.default.createElement(WorkspaceContext_1.WorkspaceProvider, { workspace: ws }, children)));
|
|
49
|
-
};
|
|
50
|
-
exports.ClientWorkspaceProvider = ClientWorkspaceProvider;
|
|
51
|
-
/**
|
|
52
|
-
* ResolvedClientWorkspaceProvider can be used as a replacement of the {@link WorkspaceProvider}, if you are accessing
|
|
53
|
-
* workspace in LCM context.
|
|
54
|
-
*
|
|
55
|
-
* This provider expects that the client workspace is already resolved on input to the provider. The provider
|
|
56
|
-
* will then establish a client workspace and workspace contexts so that the resolved information can
|
|
57
|
-
* be accessed by the children.
|
|
58
|
-
*
|
|
59
|
-
* Note: check out the {@link ClientWorkspaceProvider} for version of provider that performs the resolution of
|
|
60
|
-
* client workspace identifiers to workspace.
|
|
61
|
-
*
|
|
62
|
-
* @alpha
|
|
63
|
-
*/
|
|
64
|
-
const ResolvedClientWorkspaceProvider = (props) => {
|
|
65
|
-
(0, ts_invariant_1.default)(props.dataProduct);
|
|
66
|
-
(0, ts_invariant_1.default)(props.client);
|
|
67
|
-
(0, ts_invariant_1.default)(props.workspace);
|
|
68
|
-
const context = {
|
|
69
|
-
status: "success",
|
|
70
|
-
result: props,
|
|
71
|
-
error: undefined,
|
|
72
|
-
isInitialized: true,
|
|
73
|
-
};
|
|
74
|
-
return (react_1.default.createElement(ClientWorkspaceContext.Provider, { value: context },
|
|
75
|
-
react_1.default.createElement(WorkspaceContext_1.WorkspaceProvider, { workspace: props.workspace }, props.children)));
|
|
76
|
-
};
|
|
77
|
-
exports.ResolvedClientWorkspaceProvider = ResolvedClientWorkspaceProvider;
|
|
78
|
-
/**
|
|
79
|
-
* Hook to obtain loading status of the {@link ClientWorkspaceProvider} - "success", "error", "loading" or "pending".
|
|
80
|
-
* @alpha
|
|
81
|
-
*/
|
|
82
|
-
const useClientWorkspaceStatus = () => {
|
|
83
|
-
const context = react_1.default.useContext(ClientWorkspaceContext);
|
|
84
|
-
return context.status;
|
|
85
|
-
};
|
|
86
|
-
exports.useClientWorkspaceStatus = useClientWorkspaceStatus;
|
|
87
|
-
/**
|
|
88
|
-
* Hook to obtain loading error of the {@link ClientWorkspaceProvider}.
|
|
89
|
-
* @alpha
|
|
90
|
-
*/
|
|
91
|
-
const useClientWorkspaceError = () => {
|
|
92
|
-
const context = react_1.default.useContext(ClientWorkspaceContext);
|
|
93
|
-
return context.error;
|
|
94
|
-
};
|
|
95
|
-
exports.useClientWorkspaceError = useClientWorkspaceError;
|
|
96
|
-
/**
|
|
97
|
-
* Hook to obtain all resolved identifiers from the {@link ClientWorkspaceProvider} - workspace, segment, dataProduct and client.
|
|
98
|
-
* @alpha
|
|
99
|
-
*/
|
|
100
|
-
const useClientWorkspaceIdentifiers = () => {
|
|
101
|
-
var _a;
|
|
102
|
-
const context = react_1.default.useContext(ClientWorkspaceContext);
|
|
103
|
-
return (_a = context.result) !== null && _a !== void 0 ? _a : {};
|
|
104
|
-
};
|
|
105
|
-
exports.useClientWorkspaceIdentifiers = useClientWorkspaceIdentifiers;
|
|
106
|
-
/**
|
|
107
|
-
* Hook to check if client workspace is initialized.
|
|
108
|
-
*
|
|
109
|
-
* @alpha
|
|
110
|
-
*/
|
|
111
|
-
const useClientWorkspaceInitialized = () => {
|
|
112
|
-
const context = react_1.default.useContext(ClientWorkspaceContext);
|
|
113
|
-
return context.isInitialized;
|
|
114
|
-
};
|
|
115
|
-
exports.useClientWorkspaceInitialized = useClientWorkspaceInitialized;
|
|
116
|
-
//
|
|
117
|
-
//
|
|
118
|
-
//
|
|
119
|
-
function hasWorkspaceProp(obj) {
|
|
120
|
-
return !(0, isEmpty_1.default)(obj) && !!obj.workspace;
|
|
121
|
-
}
|
|
122
|
-
function getInputLCMIdentifiersFromProps(props) {
|
|
123
|
-
if (hasWorkspaceProp(props)) {
|
|
124
|
-
return {
|
|
125
|
-
workspace: props.workspace,
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
(0, ts_invariant_1.default)(props.client && props.dataProduct, "ClientWorkspaceProvider: You must specify either - the workspace identifier, or the client and dataProduct identifier.");
|
|
129
|
-
return {
|
|
130
|
-
client: props.client,
|
|
131
|
-
dataProduct: props.dataProduct,
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
//# sourceMappingURL=ClientWorkspaceContext.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ClientWorkspaceContext.js","sourceRoot":"","sources":["../../../../src/base/react/ClientWorkspaceContext/ClientWorkspaceContext.tsx"],"names":[],"mappings":";;;;AAAA,qCAAqC;AACrC,0DAA0B;AAE1B,sDAAqD;AACrD,kEAIiC;AAEjC,qEAAqC;AACrC,qFAAkF;AAElF,0DAAsE;AACtE,wEAAqC;AAWrC,MAAM,sBAAsB,GAAG,eAAK,CAAC,aAAa,CAA0B;IACxE,MAAM,EAAE,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AAC,aAAa,CAAC;AACjC,CAAC,CAAC;AAHW,QAAA,6BAA6B,iCAGxC;AAEF,EAAE;AACF,EAAE;AACF,EAAE;AAEF,SAAS,gBAAgB,CAAI,GAAM;IAC/B,OAAO,CAAC,IAAA,iBAAO,EAAC,GAAG,CAAC,IAAI,CAAC,CAAE,GAA2B,CAAC,SAAS,CAAC;AACrE,CAAC;AAED,SAAS,+BAA+B,CAAC,KAAoC;IACzE,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;QACzB,OAAO;YACH,SAAS,EAAE,KAAK,CAAC,SAAS;SAC7B,CAAC;KACL;IAED,IAAA,sBAAS,EACL,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,WAAW,EACjC,wHAAwH,CAC3H,CAAC;IACF,OAAO;QACH,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,WAAW,EAAE,KAAK,CAAC,WAAW;KACjC,CAAC;AACN,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/**
|
|
3
|
-
* Resolved LCM identifiers of the workspace.
|
|
4
|
-
*
|
|
5
|
-
* @alpha
|
|
6
|
-
*/
|
|
7
|
-
export interface IClientWorkspaceIdentifiers {
|
|
8
|
-
/**
|
|
9
|
-
* Data product identifier.
|
|
10
|
-
*/
|
|
11
|
-
dataProduct?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Client identifier.
|
|
14
|
-
*/
|
|
15
|
-
client?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Segment identifier.
|
|
18
|
-
*/
|
|
19
|
-
segment?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Workspace identifier.
|
|
22
|
-
*/
|
|
23
|
-
workspace?: string;
|
|
24
|
-
/**
|
|
25
|
-
* React children
|
|
26
|
-
*/
|
|
27
|
-
children?: React.ReactNode;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* @internal
|
|
31
|
-
*/
|
|
32
|
-
export interface IClientWorkspaceStatus {
|
|
33
|
-
isInitialized: boolean;
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../src/base/react/ClientWorkspaceContext/interfaces.ts"],"names":[],"mappings":";AAEA;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IACxC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC,aAAa,EAAE,OAAO,CAAC;CAC1B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../src/base/react/ClientWorkspaceContext/interfaces.ts"],"names":[],"mappings":";AAAA,qCAAqC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { IClientWorkspaceIdentifiers } from "./interfaces";
|
|
2
|
-
/**
|
|
3
|
-
* Resolves LCM workspace identifiers. This function will use the data product and client information
|
|
4
|
-
* and consult the backend in order to obtain identifier of workspace contains analytics for that
|
|
5
|
-
* data product & client combination.
|
|
6
|
-
*
|
|
7
|
-
* Note that at the moment only the bear Analytical Backend supports the workspace identification using
|
|
8
|
-
* LCM workspace identifiers. Attempting to use this function for other backends will yield empty
|
|
9
|
-
* result.
|
|
10
|
-
*
|
|
11
|
-
* @param backend - analytical backend to resolve client workspace identifiers on
|
|
12
|
-
* @param clientWorkspace - client workspace identifiers; must contain data product and client identifier
|
|
13
|
-
* @returns resolved IClientWorkspaceIdentifiers or an empty object if resolution is not possible
|
|
14
|
-
* @alpha
|
|
15
|
-
*/
|
|
16
|
-
export declare function resolveLCMWorkspaceIdentifiers(backend: any, { client, dataProduct, workspace }: IClientWorkspaceIdentifiers): Promise<IClientWorkspaceIdentifiers>;
|
|
17
|
-
//# sourceMappingURL=resolveLCMWorkspaceIdentifiers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolveLCMWorkspaceIdentifiers.d.ts","sourceRoot":"","sources":["../../../../src/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAE3D;;;;;;;;;;;;;GAaG;AACH,wBAAsB,8BAA8B,CAEhD,OAAO,EAAE,GAAG,EACZ,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,EAAE,2BAA2B,GAChE,OAAO,CAAC,2BAA2B,CAAC,CAQtC"}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// (C) 2019-2022 GoodData Corporation
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.resolveLCMWorkspaceIdentifiers = void 0;
|
|
5
|
-
const tslib_1 = require("tslib");
|
|
6
|
-
const partial_1 = tslib_1.__importDefault(require("lodash/partial"));
|
|
7
|
-
const last_1 = tslib_1.__importDefault(require("lodash/last"));
|
|
8
|
-
/**
|
|
9
|
-
* Resolves LCM workspace identifiers. This function will use the data product and client information
|
|
10
|
-
* and consult the backend in order to obtain identifier of workspace contains analytics for that
|
|
11
|
-
* data product & client combination.
|
|
12
|
-
*
|
|
13
|
-
* Note that at the moment only the bear Analytical Backend supports the workspace identification using
|
|
14
|
-
* LCM workspace identifiers. Attempting to use this function for other backends will yield empty
|
|
15
|
-
* result.
|
|
16
|
-
*
|
|
17
|
-
* @param backend - analytical backend to resolve client workspace identifiers on
|
|
18
|
-
* @param clientWorkspace - client workspace identifiers; must contain data product and client identifier
|
|
19
|
-
* @returns resolved IClientWorkspaceIdentifiers or an empty object if resolution is not possible
|
|
20
|
-
* @alpha
|
|
21
|
-
*/
|
|
22
|
-
async function resolveLCMWorkspaceIdentifiers(
|
|
23
|
-
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
24
|
-
backend, { client, dataProduct, workspace }) {
|
|
25
|
-
const projectLcmIdentifiers = await getProjectLcmIdentifiers(backend, workspace, dataProduct, client);
|
|
26
|
-
if (!projectLcmIdentifiers) {
|
|
27
|
-
return {};
|
|
28
|
-
}
|
|
29
|
-
return getLCMWorkspaceIdentifiersFromProjectLcmIdentifiers(projectLcmIdentifiers);
|
|
30
|
-
}
|
|
31
|
-
exports.resolveLCMWorkspaceIdentifiers = resolveLCMWorkspaceIdentifiers;
|
|
32
|
-
function emptyPromise() {
|
|
33
|
-
return Promise.resolve();
|
|
34
|
-
}
|
|
35
|
-
function unwrapDecoratedBackend(backend) {
|
|
36
|
-
if (backend === null || backend === void 0 ? void 0 : backend.decorated) {
|
|
37
|
-
return unwrapDecoratedBackend(backend.decorated);
|
|
38
|
-
}
|
|
39
|
-
return backend;
|
|
40
|
-
}
|
|
41
|
-
function getBackendAuthApiCallPrivateMethod(backend) {
|
|
42
|
-
var _a;
|
|
43
|
-
return (_a = backend.authApiCall) !== null && _a !== void 0 ? _a : emptyPromise;
|
|
44
|
-
}
|
|
45
|
-
async function extractDomainIdFromPrincipal(getPrincipal) {
|
|
46
|
-
var _a, _b, _c, _d;
|
|
47
|
-
const principal = await getPrincipal();
|
|
48
|
-
const domainLink = (_c = (_b = (_a = principal.userMeta) === null || _a === void 0 ? void 0 : _a.links) === null || _b === void 0 ? void 0 : _b.domain) !== null && _c !== void 0 ? _c : "";
|
|
49
|
-
return (_d = (0, last_1.default)(domainLink.split("/"))) !== null && _d !== void 0 ? _d : null;
|
|
50
|
-
}
|
|
51
|
-
async function getBearClientProjectLcmIdentifiersMethod(client, getPrincipal) {
|
|
52
|
-
var _a;
|
|
53
|
-
const method = (_a = client === null || client === void 0 ? void 0 : client.project) === null || _a === void 0 ? void 0 : _a.getProjectLcmIdentifiers.bind(client === null || client === void 0 ? void 0 : client.project);
|
|
54
|
-
const domainId = getPrincipal ? await extractDomainIdFromPrincipal(getPrincipal) : null;
|
|
55
|
-
const methodWithSetDomain = (0, partial_1.default)(method, domainId);
|
|
56
|
-
return methodWithSetDomain !== null && methodWithSetDomain !== void 0 ? methodWithSetDomain : emptyPromise;
|
|
57
|
-
}
|
|
58
|
-
async function getProjectLcmIdentifiers(backend, projectId, productId, clientId) {
|
|
59
|
-
const unwrappedBackend = unwrapDecoratedBackend(backend);
|
|
60
|
-
const authApiCall = getBackendAuthApiCallPrivateMethod(unwrappedBackend);
|
|
61
|
-
return authApiCall(async (client, { getPrincipal }) => {
|
|
62
|
-
const getProjectLcmIdentifiers = await getBearClientProjectLcmIdentifiersMethod(client, getPrincipal);
|
|
63
|
-
return getProjectLcmIdentifiers(projectId, productId, clientId);
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
function getLCMWorkspaceIdentifiersFromProjectLcmIdentifiers(projectLcmResponse) {
|
|
67
|
-
var _a;
|
|
68
|
-
const { clientId: client, dataProductId: dataProduct, segmentId: segment, projectId: workspace, } = (_a = projectLcmResponse === null || projectLcmResponse === void 0 ? void 0 : projectLcmResponse.projectLcm) !== null && _a !== void 0 ? _a : {};
|
|
69
|
-
return {
|
|
70
|
-
dataProduct,
|
|
71
|
-
client,
|
|
72
|
-
segment,
|
|
73
|
-
workspace,
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
//# sourceMappingURL=resolveLCMWorkspaceIdentifiers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolveLCMWorkspaceIdentifiers.js","sourceRoot":"","sources":["../../../../src/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.ts"],"names":[],"mappings":";AAAA,qCAAqC;;;;AAErC,qEAAqC;AACrC,+DAA+B;AAI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