@gooddata/sdk-ui-analytical-designer 11.68.0-alpha.0 → 11.68.0-alpha.10
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/NOTICE +11041 -61664
- package/README.md +2 -2
- package/esm/actions/app_context_actions.d.ts +0 -15
- package/esm/actions/app_context_actions.d.ts.map +1 -1
- package/esm/actions/data_actions.d.ts +2 -1
- package/esm/actions/data_actions.d.ts.map +1 -1
- package/esm/actions/data_actions.js +2 -2
- package/esm/actions/delete_actions.d.ts +1 -1
- package/esm/actions/delete_actions.d.ts.map +1 -1
- package/esm/actions/delete_actions.js +1 -1
- package/esm/actions/report_actions.d.ts +0 -25
- package/esm/actions/report_actions.d.ts.map +1 -1
- package/esm/actions/report_actions.js +0 -28
- package/esm/components/CatalogPanel.d.ts +1 -5
- package/esm/components/CatalogPanel.d.ts.map +1 -1
- package/esm/components/CatalogPanel.js +4 -28
- package/esm/components/DeleteReportDialogUsageList.d.ts.map +1 -1
- package/esm/components/DeleteReportDialogUsageList.js +33 -17
- package/esm/components/InsightUsageOnDashboards.d.ts.map +1 -1
- package/esm/components/InsightUsageOnDashboards.js +40 -27
- package/esm/components/ReportDescription.js +3 -3
- package/esm/components/Root.js +2 -2
- package/esm/components/SaveReportFromKDDialog.d.ts.map +1 -1
- package/esm/components/SaveReportFromKDDialog.js +11 -4
- package/esm/components/buckets/AttributeBucketItemHyperlinkConfiguration.js +2 -2
- package/esm/components/buckets/BucketReorderableItem.d.ts.map +1 -1
- package/esm/components/buckets/BucketReorderableItem.js +2 -2
- package/esm/components/buckets/DraggableBucketItem.d.ts.map +1 -1
- package/esm/components/buckets/DraggableBucketItem.js +2 -2
- package/esm/components/buckets/MeasureBucketItemConfiguration.d.ts.map +1 -1
- package/esm/components/buckets/MeasureBucketItemConfiguration.js +2 -2
- package/esm/components/buckets/MeasureDateFilter.d.ts.map +1 -1
- package/esm/components/buckets/MeasureDateFilter.js +5 -5
- package/esm/components/buckets/VisualizationPicker.d.ts.map +1 -1
- package/esm/components/buckets/VisualizationPicker.js +4 -4
- package/esm/components/buckets/measureDateFilterOption.d.ts.map +1 -1
- package/esm/components/buckets/measureDateFilterOption.js +2 -2
- package/esm/components/buckets/useMeasureAttributeFilterItems.d.ts.map +1 -1
- package/esm/components/buckets/useMeasureAttributeFilterItems.js +2 -2
- package/esm/components/catalog/Catalog.d.ts.map +1 -1
- package/esm/components/catalog/Catalog.js +2 -5
- package/esm/components/catalog/CatalogList.d.ts +0 -2
- package/esm/components/catalog/CatalogList.d.ts.map +1 -1
- package/esm/components/catalog/CatalogList.js +2 -2
- package/esm/components/catalog/CatalogVisual.d.ts +1 -3
- package/esm/components/catalog/CatalogVisual.d.ts.map +1 -1
- package/esm/components/catalog/CatalogVisual.js +2 -2
- package/esm/components/catalog/blocks/EmptyCatalogWarning.d.ts +1 -3
- package/esm/components/catalog/blocks/EmptyCatalogWarning.d.ts.map +1 -1
- package/esm/components/catalog/blocks/EmptyCatalogWarning.js +3 -3
- package/esm/components/catalog/hooks/GroupHook.d.ts.map +1 -1
- package/esm/components/catalog/hooks/GroupHook.js +4 -3
- package/esm/components/catalog/hooks/ScrollableAreaHook.d.ts.map +1 -1
- package/esm/components/catalog/hooks/ScrollableAreaHook.js +2 -2
- package/esm/components/catalog/hooks/TabsHook.d.ts.map +1 -1
- package/esm/components/catalog/hooks/TabsHook.js +3 -3
- package/esm/components/catalog/item/CatalogDetailsBubble.d.ts.map +1 -1
- package/esm/components/catalog/item/CatalogDetailsBubble.js +7 -44
- package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/AdditionalDateAttributesDropdown.js +1 -1
- package/esm/components/filterBar/dateFilter/Buttons/applyButtonHook.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/Buttons/applyButtonHook.js +4 -4
- package/esm/components/filterBar/dateFilter/DateFilter.js +2 -2
- package/esm/components/filterBar/dateFilter/PresetSection/supportedPresetsHook.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/PresetSection/supportedPresetsHook.js +2 -2
- package/esm/components/filterBar/dateFilter/presets.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/presets.js +2 -2
- package/esm/components/header/InsightPickerDialog.d.ts.map +1 -1
- package/esm/components/header/InsightPickerDialog.js +5 -1
- package/esm/components/header/VisualizationsDropdown.d.ts.map +1 -1
- package/esm/components/header/VisualizationsDropdown.js +15 -13
- package/esm/components/report/ReportVisualization.d.ts.map +1 -1
- package/esm/components/report/ReportVisualization.js +2 -2
- package/esm/components/report/WorkspaceEmpty.d.ts.map +1 -1
- package/esm/components/report/WorkspaceEmpty.js +1 -10
- package/esm/components/report/reportUtils.d.ts.map +1 -1
- package/esm/components/report/reportUtils.js +3 -3
- package/esm/components/saveReportFromKD/DocumentItem.d.ts +6 -0
- package/esm/components/saveReportFromKD/DocumentItem.d.ts.map +1 -0
- package/esm/components/saveReportFromKD/DocumentItem.js +11 -0
- package/esm/components/saveReportFromKD/InsightUsageOnDashboardsList.d.ts +3 -2
- package/esm/components/saveReportFromKD/InsightUsageOnDashboardsList.d.ts.map +1 -1
- package/esm/components/saveReportFromKD/InsightUsageOnDashboardsList.js +3 -2
- package/esm/components/shared/AttributeBubbleContent.d.ts.map +1 -1
- package/esm/components/shared/AttributeBubbleContent.js +5 -3
- package/esm/components/shared/ComputedAttributeBubbleContent.d.ts.map +1 -1
- package/esm/components/shared/ComputedAttributeBubbleContent.js +2 -2
- package/esm/components/shared/MeasureBubbleContent.d.ts +2 -9
- package/esm/components/shared/MeasureBubbleContent.d.ts.map +1 -1
- package/esm/components/shared/MeasureBubbleContent.js +5 -11
- package/esm/constants/actions.d.ts +0 -4
- package/esm/constants/actions.d.ts.map +1 -1
- package/esm/constants/actions.js +0 -4
- package/esm/convertors/fromBackend/VisualizationConverter.d.ts.map +1 -1
- package/esm/convertors/fromBackend/VisualizationConverter.js +5 -5
- package/esm/convertors/toBackend/InsightConverter.d.ts.map +1 -1
- package/esm/convertors/toBackend/InsightConverter.js +10 -9
- package/esm/convertors/toBackend/MeasureConverter.d.ts.map +1 -1
- package/esm/convertors/toBackend/MeasureConverter.js +2 -2
- package/esm/convertors/toBackend/afm/ExecutionConverter.d.ts.map +1 -1
- package/esm/convertors/toBackend/afm/ExecutionConverter.js +4 -4
- package/esm/convertors/toBackend/afm/FilterConverter.d.ts.map +1 -1
- package/esm/convertors/toBackend/afm/FilterConverter.js +2 -2
- package/esm/convertors/toBackend/afm/MeasureConverter.d.ts.map +1 -1
- package/esm/convertors/toBackend/afm/MeasureConverter.js +2 -2
- package/esm/create_store.js +1 -1
- package/esm/embedding/analyticalDesignerConfig.d.ts.map +1 -1
- package/esm/embedding/analyticalDesignerConfig.js +0 -1
- package/esm/embedding/analyticalDesignerTypes.d.ts +4 -0
- package/esm/embedding/analyticalDesignerTypes.d.ts.map +1 -1
- package/esm/embedding/platformContext.d.ts +2 -2
- package/esm/embedding/platformContext.d.ts.map +1 -1
- package/esm/embedding/platformContext.js +2 -9
- package/esm/internal.d.ts +1 -2
- package/esm/internal.d.ts.map +1 -1
- package/esm/internal.js +1 -2
- package/esm/models/catalog.d.ts.map +1 -1
- package/esm/models/catalog.js +3 -2
- package/esm/models/decorated_bucket_item.d.ts.map +1 -1
- package/esm/models/decorated_bucket_item.js +2 -2
- package/esm/models/decorated_metric_attribute_filter.d.ts.map +1 -1
- package/esm/models/decorated_metric_attribute_filter.js +3 -2
- package/esm/models/metadata.d.ts +7 -5
- package/esm/models/metadata.d.ts.map +1 -1
- package/esm/models/metadata.js +26 -16
- package/esm/models/preset_item.d.ts.map +1 -1
- package/esm/models/preset_item.js +4 -3
- package/esm/postMessageApi/actions/open_insight_actions.d.ts.map +1 -1
- package/esm/postMessageApi/actions/open_insight_actions.js +2 -2
- package/esm/postMessageApi/sagas/command_received_saga.d.ts +68 -1
- package/esm/postMessageApi/sagas/command_received_saga.d.ts.map +1 -1
- package/esm/postMessageApi/sagas/command_received_saga.js +16 -3
- package/esm/postMessageApi/sagas/control_filtering_saga.d.ts.map +1 -1
- package/esm/postMessageApi/sagas/control_filtering_saga.js +6 -6
- package/esm/postMessageApi/sagas/incoming_command_sagas.d.ts +67 -1
- package/esm/postMessageApi/sagas/incoming_command_sagas.d.ts.map +1 -1
- package/esm/postMessageApi/sagas/post_message_saga_helper.d.ts.map +1 -1
- package/esm/postMessageApi/sagas/post_message_saga_helper.js +3 -3
- package/esm/reduxStore.d.ts +1 -1
- package/esm/reduxStore.d.ts.map +1 -1
- package/esm/reduxStore.js +1 -1
- package/esm/sagas/bootstrap/backendBootstrapData.d.ts +1 -1
- package/esm/sagas/bootstrap/backendBootstrapData.js +1 -1
- package/esm/sagas/bootstrap/verifyUserAccess.d.ts.map +1 -1
- package/esm/sagas/bootstrap/verifyUserAccess.js +1 -5
- package/esm/sagas/bootstrap_error_sagas.d.ts +1 -1
- package/esm/sagas/bootstrap_error_sagas.d.ts.map +1 -1
- package/esm/sagas/bootstrap_error_sagas.js +1 -3
- package/esm/sagas/catalog/catalog_saga.d.ts.map +1 -1
- package/esm/sagas/catalog/catalog_saga.js +3 -3
- package/esm/sagas/delete_report_sagas.d.ts.map +1 -1
- package/esm/sagas/delete_report_sagas.js +6 -3
- package/esm/sagas/drillable_items_sagas.d.ts +2 -3
- package/esm/sagas/drillable_items_sagas.d.ts.map +1 -1
- package/esm/sagas/drillable_items_sagas.js +4 -8
- package/esm/sagas/export_report_sagas.d.ts +1 -23
- package/esm/sagas/export_report_sagas.d.ts.map +1 -1
- package/esm/sagas/export_report_sagas.js +5 -51
- package/esm/sagas/open_report_sagas.d.ts +9 -2
- package/esm/sagas/open_report_sagas.d.ts.map +1 -1
- package/esm/sagas/open_report_sagas.js +8 -5
- package/esm/sagas/sagas.d.ts +67 -1
- package/esm/sagas/sagas.d.ts.map +1 -1
- package/esm/sagas/sagas.js +0 -2
- package/esm/sdk-ui-analytical-designer.d.ts +4 -0
- package/esm/selectors/backend_capabilities_selector.d.ts +0 -1
- package/esm/selectors/backend_capabilities_selector.d.ts.map +1 -1
- package/esm/selectors/backend_capabilities_selector.js +0 -1
- package/esm/selectors/bootstrap_selector.d.ts +0 -189
- package/esm/selectors/bootstrap_selector.d.ts.map +1 -1
- package/esm/selectors/bootstrap_selector.js +0 -13
- package/esm/selectors/buckets_selector.d.ts.map +1 -1
- package/esm/selectors/buckets_selector.js +8 -7
- package/esm/selectors/export_button_selector.d.ts.map +1 -1
- package/esm/selectors/export_button_selector.js +2 -2
- package/esm/selectors/feature_flag_selector.d.ts +8 -28
- package/esm/selectors/feature_flag_selector.d.ts.map +1 -1
- package/esm/selectors/feature_flag_selector.js +2 -1
- package/esm/selectors/insight_delete_selector.d.ts +122 -0
- package/esm/selectors/insight_delete_selector.d.ts.map +1 -0
- package/esm/selectors/insight_delete_selector.js +13 -0
- package/esm/selectors/insight_selectors.d.ts.map +1 -1
- package/esm/selectors/insight_selectors.js +3 -3
- package/esm/selectors/report_selector.d.ts.map +1 -1
- package/esm/selectors/report_selector.js +3 -2
- package/esm/selectors/report_visualization_selector.d.ts +12 -8
- package/esm/selectors/report_visualization_selector.d.ts.map +1 -1
- package/esm/selectors/reset_button_selector.d.ts.map +1 -1
- package/esm/selectors/reset_button_selector.js +3 -3
- package/esm/selectors/route_selector.d.ts.map +1 -1
- package/esm/selectors/route_selector.js +2 -3
- package/esm/selectors/save_report_from_kd_dialog_selector.d.ts +26 -2
- package/esm/selectors/save_report_from_kd_dialog_selector.d.ts.map +1 -1
- package/esm/selectors/save_report_from_kd_dialog_selector.js +3 -2
- package/esm/selectors/save_report_selector.d.ts +45 -5
- package/esm/selectors/save_report_selector.d.ts.map +1 -1
- package/esm/selectors/save_report_selector.js +24 -12
- package/esm/services/bootstrap_error_service.d.ts +1 -4
- package/esm/services/bootstrap_error_service.d.ts.map +1 -1
- package/esm/services/bootstrap_error_service.js +12 -46
- package/esm/services/date_datasets_service.d.ts.map +1 -1
- package/esm/services/date_datasets_service.js +3 -2
- package/esm/services/reference_point_service.js +3 -3
- package/esm/services/report_service.d.ts +1 -2
- package/esm/services/report_service.d.ts.map +1 -1
- package/esm/services/report_service.js +4 -37
- package/esm/services/telemetry/tracking_events.d.ts +0 -7
- package/esm/services/telemetry/tracking_events.d.ts.map +1 -1
- package/esm/services/telemetry/tracking_events.js +0 -5
- package/esm/services/visualization_class_service.d.ts.map +1 -1
- package/esm/services/visualization_class_service.js +2 -2
- package/esm/store/attribute_elements/attribute_elements_reducer.d.ts.map +1 -1
- package/esm/store/attribute_elements/attribute_elements_reducer.js +6 -5
- package/esm/store/bucket_filters/bucket_filters_operations.d.ts.map +1 -1
- package/esm/store/bucket_filters/bucket_filters_operations.js +3 -3
- package/esm/store/buckets/buckets_removal_helpers.d.ts.map +1 -1
- package/esm/store/buckets/buckets_removal_helpers.js +4 -4
- package/esm/store/buckets/buckets_totals_helpers.d.ts.map +1 -1
- package/esm/store/buckets/buckets_totals_helpers.js +3 -3
- package/esm/store/buckets/extended_reference_point_operations.d.ts.map +1 -1
- package/esm/store/buckets/extended_reference_point_operations.js +3 -3
- package/esm/store/buckets/helpers/measure_format.d.ts.map +1 -1
- package/esm/store/buckets/helpers/measure_format.js +2 -2
- package/esm/store/buckets/helpers/totals_for_new_measure.d.ts.map +1 -1
- package/esm/store/buckets/helpers/totals_for_new_measure.js +4 -3
- package/esm/store/catalog/catalog_reducer.d.ts.map +1 -1
- package/esm/store/catalog/catalog_reducer.js +4 -4
- package/esm/store/execution/execution_helpers.d.ts.map +1 -1
- package/esm/store/execution/execution_helpers.js +3 -3
- package/esm/store/filter_bar/filter_bar_helpers.d.ts.map +1 -1
- package/esm/store/filter_bar/filter_bar_helpers.js +3 -2
- package/esm/store/filter_bar/filter_bar_types.d.ts.map +1 -1
- package/esm/store/filter_bar/filter_bar_types.js +7 -7
- package/esm/store/filter_bar/parameter_filter_types.d.ts.map +1 -1
- package/esm/store/filter_bar/parameter_filter_types.js +2 -2
- package/esm/store/insight_usage/insight_usage_helpers.d.ts +2 -1
- package/esm/store/insight_usage/insight_usage_helpers.d.ts.map +1 -1
- package/esm/store/insight_usage/insight_usage_helpers.js +1 -0
- package/esm/store/insight_usage/insight_usage_selectors.d.ts +23 -0
- package/esm/store/insight_usage/insight_usage_selectors.d.ts.map +1 -1
- package/esm/store/insight_usage/insight_usage_selectors.js +4 -1
- package/esm/store/insight_usage/insight_usage_slice.d.ts.map +1 -1
- package/esm/store/insight_usage/insight_usage_slice.js +1 -0
- package/esm/store/insight_usage/insight_usage_state.d.ts +6 -0
- package/esm/store/insight_usage/insight_usage_state.d.ts.map +1 -1
- package/esm/store/item_cache/item_cache_helpers.d.ts.map +1 -1
- package/esm/store/item_cache/item_cache_helpers.js +3 -2
- package/esm/store/measure_date_datasets/measure_date_datasets_helpers.d.ts.map +1 -1
- package/esm/store/measure_date_datasets/measure_date_datasets_helpers.js +2 -2
- package/esm/store/messages/messages_slice.d.ts.map +1 -1
- package/esm/store/messages/messages_slice.js +5 -11
- package/esm/store/metric_editor/metric_editor_sagas.d.ts.map +1 -1
- package/esm/store/metric_editor/metric_editor_sagas.js +4 -4
- package/esm/store/properties/properties_helpers.d.ts.map +1 -1
- package/esm/store/properties/properties_helpers.js +5 -4
- package/esm/store/properties/properties_operation.d.ts.map +1 -1
- package/esm/store/properties/properties_operation.js +2 -2
- package/esm/store/properties/properties_slice.d.ts.map +1 -1
- package/esm/store/properties/properties_slice.js +3 -3
- package/esm/store/recommendations/recommendations_slice.d.ts.map +1 -1
- package/esm/store/recommendations/recommendations_slice.js +2 -2
- package/esm/store/report/report_slices.d.ts.map +1 -1
- package/esm/store/report/report_slices.js +3 -3
- package/esm/tests/constants.test.helpers.d.ts.map +1 -1
- package/esm/tests/constants.test.helpers.js +2 -2
- package/esm/translations/de-DE.json +7 -7
- package/esm/translations/en-AU.json +7 -7
- package/esm/translations/en-GB.json +7 -7
- package/esm/translations/en-US.json +56 -36
- package/esm/translations/es-419.json +7 -7
- package/esm/translations/es-ES.json +7 -7
- package/esm/translations/fi-FI.json +7 -7
- package/esm/translations/fr-CA.json +9 -9
- package/esm/translations/fr-FR.json +7 -7
- package/esm/translations/id-ID.json +7 -7
- package/esm/translations/it-IT.json +8 -8
- package/esm/translations/ja-JP.json +9 -9
- package/esm/translations/ko-KR.json +35 -35
- package/esm/translations/nl-NL.json +7 -7
- package/esm/translations/pl-PL.json +28 -28
- package/esm/translations/pt-BR.json +7 -7
- package/esm/translations/pt-PT.json +7 -7
- package/esm/translations/ru-RU.json +9 -9
- package/esm/translations/sl-SI.json +7 -7
- package/esm/translations/th-TH.json +7 -7
- package/esm/translations/tr-TR.json +19 -19
- package/esm/translations/uk-UA.json +7 -7
- package/esm/translations/vi-VN.json +7 -7
- package/esm/translations/zh-HK.json +34 -34
- package/esm/translations/zh-Hans.json +7 -7
- package/esm/translations/zh-Hant.json +25 -25
- package/esm/typings/bear/bearTypes.d.ts +0 -3
- package/esm/typings/bear/bearTypes.d.ts.map +1 -1
- package/esm/typings/bear/bearTypes.js +26 -26
- package/esm/typings/catalog.d.ts +4 -2
- package/esm/typings/catalog.d.ts.map +1 -1
- package/esm/utils/api.d.ts +0 -2
- package/esm/utils/api.d.ts.map +1 -1
- package/esm/utils/api.js +4 -13
- package/esm/utils/custom_mouse_backend.js +1 -1
- package/esm/utils/date_datasets.js +4 -4
- package/esm/utils/date_datasets_meta.d.ts.map +1 -1
- package/esm/utils/date_datasets_meta.js +4 -4
- package/esm/utils/drilling/types.d.ts.map +1 -1
- package/esm/utils/drilling/types.js +15 -15
- package/esm/utils/dropdown.js +2 -2
- package/esm/utils/hooks/WindowResizeHook.js +2 -2
- package/esm/utils/id_prefix_sanitize.d.ts.map +1 -1
- package/esm/utils/id_prefix_sanitize.js +10 -9
- package/esm/utils/location.d.ts +1 -3
- package/esm/utils/location.d.ts.map +1 -1
- package/esm/utils/location.js +2 -7
- package/esm/utils/measure_descriptions.d.ts.map +1 -1
- package/esm/utils/measure_descriptions.js +2 -2
- package/esm/utils/sdkModelToADRep/InsightConverter.d.ts.map +1 -1
- package/esm/utils/sdkModelToADRep/InsightConverter.js +11 -10
- package/esm/utils/sdkModelToADRep/MeasureConverter.d.ts.map +1 -1
- package/esm/utils/sdkModelToADRep/MeasureConverter.js +2 -2
- package/esm/utils/telemetry/tableTotals.d.ts.map +1 -1
- package/esm/utils/telemetry/tableTotals.js +2 -2
- package/esm/utils/visualization_class.d.ts.map +1 -1
- package/esm/utils/visualization_class.js +6 -6
- package/esm/utils/visualization_properties.d.ts.map +1 -1
- package/esm/utils/visualization_properties.js +2 -2
- package/package.json +21 -21
- package/styles/css/catalog.css +1 -9
- package/styles/css/catalog.css.map +1 -1
- package/styles/css/delete_report_dialog.css +16 -0
- package/styles/css/delete_report_dialog.css.map +1 -1
- package/styles/css/editor_canvas.css +0 -4
- package/styles/css/editor_canvas.css.map +1 -1
- package/styles/css/editor_header.css +80 -71
- package/styles/css/editor_header.css.map +1 -1
- package/styles/css/export.css +4 -8
- package/styles/css/export.css.map +1 -1
- package/styles/css/main.css +116 -113
- package/styles/css/main.css.map +1 -1
- package/styles/css/open_visualizations.css +11 -11
- package/styles/css/open_visualizations.css.map +1 -1
- package/styles/css/save_report_from_kd_dialog.css +6 -0
- package/styles/css/save_report_from_kd_dialog.css.map +1 -1
- package/styles/scss/_component_overrides.scss +0 -10
- package/styles/scss/catalog.scss +0 -1
- package/styles/scss/delete_report_dialog.scss +21 -1
- package/styles/scss/editor_canvas.scss +0 -4
- package/styles/scss/editor_header.scss +85 -83
- package/styles/scss/export.scss +42 -40
- package/styles/scss/open_visualizations.scss +4 -3
- package/styles/scss/save_report_from_kd_dialog.scss +8 -0
- package/esm/bearLegacyFunctions.d.ts +0 -22
- package/esm/bearLegacyFunctions.d.ts.map +0 -1
- package/esm/bearLegacyFunctions.js +0 -35
- package/esm/components/catalog/blocks/CreateMeasureLink.d.ts +0 -7
- package/esm/components/catalog/blocks/CreateMeasureLink.d.ts.map +0 -1
- package/esm/components/catalog/blocks/CreateMeasureLink.js +0 -17
- package/esm/sagas/application_redirect_sagas.d.ts +0 -18
- package/esm/sagas/application_redirect_sagas.d.ts.map +0 -1
- package/esm/sagas/application_redirect_sagas.js +0 -68
- package/esm/selectors/data_page_selector.d.ts +0 -44
- package/esm/selectors/data_page_selector.d.ts.map +0 -1
- package/esm/selectors/data_page_selector.js +0 -6
- package/esm/utils/sso.d.ts +0 -3
- package/esm/utils/sso.d.ts.map +0 -1
- package/esm/utils/sso.js +0 -5
- package/esm/utils/uri.d.ts +0 -2
- package/esm/utils/uri.d.ts.map +0 -1
- package/esm/utils/uri.js +0 -7
package/esm/models/metadata.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
// (C) 2007-2026 GoodData Corporation
|
|
2
2
|
import invariant from "invariant";
|
|
3
|
-
import {
|
|
3
|
+
import { negate, pick, pickBy } from "lodash-es";
|
|
4
4
|
import { areObjRefsEqual, isComputedAttributeRef, isIdentifierRef, isUriRef, measureFormat, objRefToString, } from "@gooddata/sdk-model";
|
|
5
5
|
import { BucketNames, OverTimeComparisonTypes, fillMissingFormat, } from "@gooddata/sdk-ui";
|
|
6
6
|
import { Axis } from "@gooddata/sdk-ui-ext/internal";
|
|
7
|
+
import { _cloneDeep, _isEmpty, _omit } from "@gooddata/util";
|
|
7
8
|
import { ATTRIBUTE, COMPUTED_ATTRIBUTE, DATE, GEO_ATTRIBUTE, METRIC } from "../constants/bucket.js";
|
|
8
9
|
import { ALL_TIME } from "../constants/presets.js";
|
|
9
10
|
import { isElementUrisSupported } from "../selectors/backend_capabilities_selector.js";
|
|
@@ -83,7 +84,7 @@ function measureFilterToMd(filter) {
|
|
|
83
84
|
const relativeTo = numberOrUndefined(to);
|
|
84
85
|
// All time is stored without bounds, a no-op the execution drops; to carry the empty date values
|
|
85
86
|
// mode it has to be the real All time filter, the one the execution sends (as on the filter bar)
|
|
86
|
-
if ((relativeFrom === undefined || relativeTo === undefined) && !
|
|
87
|
+
if ((relativeFrom === undefined || relativeTo === undefined) && !_isEmpty(emptyValueHandlingProp)) {
|
|
87
88
|
return {
|
|
88
89
|
relativeDateFilter: {
|
|
89
90
|
dataSet,
|
|
@@ -180,7 +181,7 @@ function dateFilterToMd({ filterConfig, dateDatasetRef, emptyDateValuesFilter },
|
|
|
180
181
|
}
|
|
181
182
|
// All time is stored without bounds, a no-op the execution drops. To carry the empty date values mode
|
|
182
183
|
// it has to be the real All time filter, the one the execution sends.
|
|
183
|
-
if ((from === undefined || to === undefined) && !
|
|
184
|
+
if ((from === undefined || to === undefined) && !_isEmpty(emptyValueHandlingProp)) {
|
|
184
185
|
return {
|
|
185
186
|
relativeDateFilter: {
|
|
186
187
|
dataSet: dateDatasetRef,
|
|
@@ -991,7 +992,7 @@ function transformVisualizationMeasureValueFilter(visualizationFilter) {
|
|
|
991
992
|
if (Array.isArray(conditions) && conditions.length) {
|
|
992
993
|
normalizedConditions = conditions;
|
|
993
994
|
}
|
|
994
|
-
else if (
|
|
995
|
+
else if (_isEmpty(condition)) {
|
|
995
996
|
normalizedConditions = undefined;
|
|
996
997
|
}
|
|
997
998
|
else {
|
|
@@ -1018,7 +1019,9 @@ function transformVisualizationRankingFilter({ rankingFilter: { measures, attrib
|
|
|
1018
1019
|
// Local-identifier qualifiers map back to bucket attribute local ids (strings); any other qualifier
|
|
1019
1020
|
// (uri/identifier) is a catalog attribute kept as an ObjRef. Uses the same dimensionality converter as
|
|
1020
1021
|
// the measure value filter, preserving the qualifier shape (incl. the ref type) without an unsafe cast.
|
|
1021
|
-
const attributesProps =
|
|
1022
|
+
const attributesProps = _isEmpty(attributes)
|
|
1023
|
+
? {}
|
|
1024
|
+
: { attributes: fromSdkModelDimensionality(attributes) };
|
|
1022
1025
|
// A local identifier qualifier means the ranked measure is in the buckets; any other qualifier
|
|
1023
1026
|
// (uri/identifier) means it is a catalog measure referenced by ObjRef.
|
|
1024
1027
|
const measure = measures[0];
|
|
@@ -1098,11 +1101,13 @@ function collectLegacyEmptyDateValuesFilters(visualizationFilters, dateDatasets)
|
|
|
1098
1101
|
return { emptyDateValuesFilters, emptyDateValuesFilterIndices };
|
|
1099
1102
|
}
|
|
1100
1103
|
/**
|
|
1101
|
-
*
|
|
1102
|
-
*
|
|
1103
|
-
*
|
|
1104
|
-
*
|
|
1105
|
-
*
|
|
1104
|
+
* Brings the stored filters to one shape, so that filters with the same meaning compare equal:
|
|
1105
|
+
* - a legacy `""` attribute filter becomes the empty values mode of its date filter, as when the insight
|
|
1106
|
+
* is loaded,
|
|
1107
|
+
* - every All time filter becomes `ALL_TIME_GRANULARITY` from 0 to 0, however it is stored,
|
|
1108
|
+
* - the default `include` mode is dropped, as when the insight is saved.
|
|
1109
|
+
*
|
|
1110
|
+
* Used only to compare stored content; the result is never saved.
|
|
1106
1111
|
*/
|
|
1107
1112
|
export function normalizeEmptyDateValuesFilters(visualizationFilters, dateDatasets) {
|
|
1108
1113
|
const { emptyDateValuesFilters, emptyDateValuesFilterIndices } = collectLegacyEmptyDateValuesFilters(visualizationFilters, dateDatasets);
|
|
@@ -1117,12 +1122,17 @@ export function normalizeEmptyDateValuesFilters(visualizationFilters, dateDatase
|
|
|
1117
1122
|
const mode = emptyValueHandlingToMd(storedMode ?? emptyDateValuesFilters[objRefToString(dataSet)]?.mode);
|
|
1118
1123
|
if (isVisualizationObjectAbsoluteDateFilter(filter)) {
|
|
1119
1124
|
return {
|
|
1120
|
-
absoluteDateFilter: {
|
|
1125
|
+
absoluteDateFilter: {
|
|
1126
|
+
..._omit(filter.absoluteDateFilter, "emptyValueHandling"),
|
|
1127
|
+
...mode,
|
|
1128
|
+
},
|
|
1121
1129
|
};
|
|
1122
1130
|
}
|
|
1123
1131
|
const { granularity, from, to } = filter.relativeDateFilter;
|
|
1124
1132
|
const isAllTime = granularity === ALL_TIME_GRANULARITY || from === undefined || to === undefined;
|
|
1125
|
-
|
|
1133
|
+
// AD saves All time as GDC.time.year without from/to, or as ALL_TIME_GRANULARITY 0..0 when it has
|
|
1134
|
+
// an empty values mode. API clients can store either shape, e.g. ALL_TIME_GRANULARITY with "include".
|
|
1135
|
+
if (isAllTime) {
|
|
1126
1136
|
return {
|
|
1127
1137
|
relativeDateFilter: {
|
|
1128
1138
|
dataSet,
|
|
@@ -1134,7 +1144,7 @@ export function normalizeEmptyDateValuesFilters(visualizationFilters, dateDatase
|
|
|
1134
1144
|
};
|
|
1135
1145
|
}
|
|
1136
1146
|
return {
|
|
1137
|
-
relativeDateFilter: { ...
|
|
1147
|
+
relativeDateFilter: { ..._omit(filter.relativeDateFilter, "emptyValueHandling"), ...mode },
|
|
1138
1148
|
};
|
|
1139
1149
|
});
|
|
1140
1150
|
}
|
|
@@ -1402,7 +1412,7 @@ const getBucketItems = (metadataObject) => metadataObject.buckets.flatMap((bucke
|
|
|
1402
1412
|
export function omitIrrelevantPropertiesForAvailability(mdObject) {
|
|
1403
1413
|
// pickRelevantFromReportMDObj narrows the object part-way through, so the steps are spelled out
|
|
1404
1414
|
// rather than folded over one accumulator type
|
|
1405
|
-
const withoutTotals = omitTotalsFromReportMDObj(
|
|
1415
|
+
const withoutTotals = omitTotalsFromReportMDObj(_cloneDeep(mdObject));
|
|
1406
1416
|
const withoutAlias = omitAliasFromReportMDObj(withoutTotals);
|
|
1407
1417
|
const withoutArithmeticMeasures = omitArithmeticMeasuresMDObj(withoutAlias);
|
|
1408
1418
|
return omitMeasureFormatFromReportMDObj(pickRelevantFromReportMDObj(withoutArithmeticMeasures));
|
|
@@ -1410,7 +1420,7 @@ export function omitIrrelevantPropertiesForAvailability(mdObject) {
|
|
|
1410
1420
|
export function pickRelevantFromReportMDObj(metadataObject) {
|
|
1411
1421
|
return pick(metadataObject, ["buckets", "filters"]);
|
|
1412
1422
|
}
|
|
1413
|
-
const omitMeasureFormat = (bucketItem) =>
|
|
1423
|
+
const omitMeasureFormat = (bucketItem) => _omit(bucketItem, ["measure.format"]);
|
|
1414
1424
|
function omitMeasureFormatFromReportMDObj(metadataObject) {
|
|
1415
1425
|
return {
|
|
1416
1426
|
...metadataObject,
|
|
@@ -1421,7 +1431,7 @@ function omitMeasureFormatFromReportMDObj(metadataObject) {
|
|
|
1421
1431
|
};
|
|
1422
1432
|
}
|
|
1423
1433
|
function removeTotalsFromBucket(bucket) {
|
|
1424
|
-
return
|
|
1434
|
+
return _omit(bucket, ["totals"]);
|
|
1425
1435
|
}
|
|
1426
1436
|
export function omitTotalsFromReportMDObj(metadataObject) {
|
|
1427
1437
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preset_item.d.ts","sourceRoot":"","sources":["../../src/models/preset_item.ts"],"names":[],"mappings":"AAIA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,SAAS,EAAiB,MAAM,YAAY,CAAC;AAE3D,OAAO,EAEH,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EAC3B,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"preset_item.d.ts","sourceRoot":"","sources":["../../src/models/preset_item.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// (C) 2007-2026 GoodData Corporation
|
|
2
2
|
import invariant from "invariant";
|
|
3
|
-
import { findKey,
|
|
3
|
+
import { findKey, keyBy } from "lodash-es";
|
|
4
4
|
import moment from "moment";
|
|
5
5
|
import { defineMessage } from "react-intl";
|
|
6
6
|
import { formatRelativeDateRange } from "@gooddata/sdk-ui-filters";
|
|
7
7
|
import { DEFAULT_LOCALE } from "@gooddata/sdk-ui-filters/internal";
|
|
8
|
+
import { _isEqual } from "@gooddata/util";
|
|
8
9
|
import { ALL_TIME, DAY, EIGHT_MONTHS_AGO, ELEVEN_MONTHS_AGO, FISCAL_MONTH, FISCAL_QUARTER, FISCAL_YEAR, FIVE_MONTHS_AGO, FIVE_QUARTERS_AGO, FIVE_WEEKS_AGO, FIVE_YEARS_AGO, FOUR_MONTHS_AGO, FOUR_QUARTERS_AGO, FOUR_WEEKS_AGO, FOUR_YEARS_AGO, LAST_12_FISCAL_MONTHS, LAST_12_MONTHS, LAST_2_WEEKS_US, LAST_30_DAYS, LAST_4_FISCAL_QUARTERS, LAST_4_QUARTERS, LAST_7_DAYS, LAST_90_DAYS, LAST_FISCAL_MONTH, LAST_FISCAL_QUARTER, LAST_FISCAL_YEAR, LAST_MONTH, LAST_QUARTER, LAST_WEEK, LAST_WEEK_US, LAST_YEAR, MONTH, NINE_MONTHS_AGO, OTHER, QUARTER, SEVEN_MONTHS_AGO, SEVEN_QUARTERS_AGO, SEVEN_WEEKS_AGO, SIX_MONTHS_AGO, SIX_QUARTERS_AGO, SIX_WEEKS_AGO, STATIC_PERIOD, TEN_MONTHS_AGO, THIRTEEN_MONTHS_AGO, THIS_FISCAL_MONTH, THIS_FISCAL_MONTH_TO_DATE, THIS_FISCAL_QUARTER, THIS_FISCAL_QUARTER_TO_DATE, THIS_FISCAL_YEAR, THIS_FISCAL_YEAR_TO_DATE, THIS_MONTH, THIS_MONTH_TO_DATE, THIS_QUARTER, THIS_QUARTER_TO_DATE, THIS_WEEK, THIS_WEEK_TO_DATE, THIS_WEEK_US, THIS_YEAR, THIS_YEAR_TO_DATE, THREE_MONTHS_AGO, THREE_QUARTERS_AGO, THREE_WEEKS_AGO, THREE_YEARS_AGO, TWELVE_MONTHS_AGO, TWO_MONTHS_AGO, TWO_QUARTERS_AGO, TWO_WEEKS_AGO, TWO_YEARS_AGO, WEEK, YEAR, } from "../constants/presets.js";
|
|
9
10
|
import { GRANULARITY, GRANULARITY_OPTIONS } from "./granularity.js";
|
|
10
11
|
export const asDateFilterConfig = (preset) => {
|
|
@@ -490,10 +491,10 @@ function matchStaticPeriod(firstPreset, secondPreset) {
|
|
|
490
491
|
return firstPreset.isStatic && secondPreset.isStatic;
|
|
491
492
|
}
|
|
492
493
|
function matchRelativePreset(firstPreset, secondPreset) {
|
|
493
|
-
const sameInterval = firstPreset.interval &&
|
|
494
|
+
const sameInterval = firstPreset.interval && _isEqual(firstPreset.interval, secondPreset.interval);
|
|
494
495
|
const sameGranularity = firstPreset.granularity && firstPreset.granularity === secondPreset.granularity;
|
|
495
496
|
// Compare boundedFilter to distinguish between regular filters and "to date" filters
|
|
496
|
-
const sameBoundedFilter =
|
|
497
|
+
const sameBoundedFilter = _isEqual(firstPreset.boundedFilter, secondPreset.boundedFilter);
|
|
497
498
|
return sameInterval && sameGranularity && sameBoundedFilter;
|
|
498
499
|
}
|
|
499
500
|
export function arePresetsEqual(firstPreset, secondPreset) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"open_insight_actions.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/actions/open_insight_actions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"open_insight_actions.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/actions/open_insight_actions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,wBAAwB,EAAE,KAAK,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAGzG,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAMpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAE5D,MAAM,WAAW,yBAA0B,SAAQ,0BAA0B;IACzE,iBAAiB,EAAE,kBAAkB,CAAC;CACzC;AAED,MAAM,WAAW,+BAAgC,SAAQ,0BAA0B;IAC/E,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,MAAM,WAAW,iCAAkC,SAAQ,0BAA0B;IACjF,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,oBAAoB,0MAqBhC,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAEzE,eAAO,MAAM,iBAAiB,6MAS7B,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5E,eAAO,MAAM,mBAAmB,sMAS/B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2007-2026 GoodData Corporation
|
|
2
2
|
import { createAction } from "@reduxjs/toolkit";
|
|
3
|
-
import {
|
|
3
|
+
import { _omit } from "@gooddata/util";
|
|
4
4
|
import { DEFAULT_POST_MESSAGE_CONTEXT_ID, createPostMessageContextFromId, } from "../actions/post_message_action_helper.js";
|
|
5
5
|
import { PostEventActionTypeKeys } from "./action_types.js";
|
|
6
6
|
export const openInsightRequested = createAction(PostEventActionTypeKeys.OPEN_INSIGHT_REQUESTED, (openInsightCommandData) => {
|
|
@@ -12,7 +12,7 @@ export const openInsightRequested = createAction(PostEventActionTypeKeys.OPEN_IN
|
|
|
12
12
|
*/
|
|
13
13
|
const { insightId, reportId } = data;
|
|
14
14
|
const customRouteParams = {
|
|
15
|
-
...
|
|
15
|
+
..._omit(data, "insightId"),
|
|
16
16
|
reportId: insightId || reportId,
|
|
17
17
|
};
|
|
18
18
|
const payload = {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type Channel } from "redux-saga";
|
|
1
2
|
import { type IDrillableItemsCommandBody } from "@gooddata/sdk-embedding";
|
|
2
3
|
import { PostEventActionTypeKeys } from "../actions/action_types.js";
|
|
3
4
|
import { type ICommandReceivedAction } from "../actions/command_received_actions.js";
|
|
@@ -51,5 +52,71 @@ export declare function handleReceivedCommand({ payload: { data: commandData, or
|
|
|
51
52
|
payload: import("@gooddata/sdk-embedding").IFilterContextContent & import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
52
53
|
type: PostEventActionTypeKeys.SET_FILTER_CONTEXT_REQUESTED;
|
|
53
54
|
}>, void, boolean>;
|
|
54
|
-
export declare function watchCommandReceived(): Generator<import("redux-saga/effects").
|
|
55
|
+
export declare function watchCommandReceived(): Generator<import("redux-saga/effects").ActionChannelEffect | import("redux-saga/effects").CallEffect<Generator<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").CallEffect<boolean> | Generator<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").PutEffect<{
|
|
56
|
+
payload: undefined;
|
|
57
|
+
type: import("../../sagas/application_context/application_context_actions.js").ApplicationContextActionsTypeKeys;
|
|
58
|
+
}> | import("redux-saga/effects").SelectEffect, void, string | undefined> | Generator<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").PutEffect<{
|
|
59
|
+
payload: import("../../actions/confirm_unsaved_changes_actions.js").IConfirmUnsavedChangesDialogActionPayload;
|
|
60
|
+
type: import("../../constants/actions.js").ActionTypeKeys.SAGA_CONFIRM_UNSAVED_CHANGES_REQUEST;
|
|
61
|
+
}> | import("redux-saga/effects").SelectEffect, void, boolean> | Generator<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").PutEffect<{
|
|
62
|
+
payload: string | undefined;
|
|
63
|
+
type: import("../../constants/actions.js").ActionTypeKeys.SET_TIMEZONE_OVERRIDE;
|
|
64
|
+
}> | import("redux-saga/effects").SelectEffect, void, boolean> | import("redux-saga/effects").PutEffect<{
|
|
65
|
+
payload: IDrillableItemsCommandBody;
|
|
66
|
+
type: import("../../constants/actions.js").ActionTypeKeys.CONVERT_DRILLABLE_ITEMS;
|
|
67
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
68
|
+
payload: import("../actions/command_error_actions.js").IInsecureCommandFailedActionPayload;
|
|
69
|
+
type: PostEventActionTypeKeys.INSECURE_COMMAND_FAILED;
|
|
70
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
71
|
+
payload: import("../actions/open_insight_actions.js").IOpenInsightActionPayload;
|
|
72
|
+
type: PostEventActionTypeKeys.OPEN_INSIGHT_REQUESTED;
|
|
73
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
74
|
+
payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
75
|
+
type: PostEventActionTypeKeys.HOST_VERIFICATION_FAILED;
|
|
76
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
77
|
+
payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
78
|
+
type: PostEventActionTypeKeys.CLEAR_INSIGHT_REQUESTED;
|
|
79
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
80
|
+
payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
81
|
+
type: PostEventActionTypeKeys.CLEAR_INSIGHT_CONTENT_REQUESTED;
|
|
82
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
83
|
+
payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
84
|
+
type: PostEventActionTypeKeys.UNDO_REQUESTED;
|
|
85
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
86
|
+
payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
87
|
+
type: PostEventActionTypeKeys.REDO_REQUESTED;
|
|
88
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
89
|
+
payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload & import("@gooddata/sdk-embedding").IAdExportInsightCommandBody;
|
|
90
|
+
type: PostEventActionTypeKeys.EXPORT_INSIGHT_REQUESTED;
|
|
91
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
92
|
+
payload: import("@gooddata/sdk-embedding").IRemoveFilterContextContent & import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
93
|
+
type: PostEventActionTypeKeys.REMOVE_FILTER_CONTEXT_REQUESTED;
|
|
94
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
95
|
+
payload: import("@gooddata/sdk-embedding").IAdSaveAsInsightCommandBody & import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
96
|
+
type: PostEventActionTypeKeys.SAVE_AS_INSIGHT_REQUESTED;
|
|
97
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
98
|
+
payload: import("@gooddata/sdk-embedding").IAdSaveCommandBody & import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
99
|
+
type: PostEventActionTypeKeys.SAVE_INSIGHT_REQUESTED;
|
|
100
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
101
|
+
payload: import("@gooddata/sdk-embedding").IFilterContextContent & import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
102
|
+
type: PostEventActionTypeKeys.SET_FILTER_CONTEXT_REQUESTED;
|
|
103
|
+
}>, void, boolean>> | import("redux-saga/effects").ChannelTakeEffect<{
|
|
104
|
+
payload: {
|
|
105
|
+
data: import("@gooddata/sdk-embedding").AdCommandData;
|
|
106
|
+
origin: string;
|
|
107
|
+
};
|
|
108
|
+
type: PostEventActionTypeKeys.COMMAND_RECEIVED;
|
|
109
|
+
}>, void, Channel<{
|
|
110
|
+
payload: {
|
|
111
|
+
data: import("@gooddata/sdk-embedding").AdCommandData;
|
|
112
|
+
origin: string;
|
|
113
|
+
};
|
|
114
|
+
type: PostEventActionTypeKeys.COMMAND_RECEIVED;
|
|
115
|
+
}> & {
|
|
116
|
+
payload: {
|
|
117
|
+
data: import("@gooddata/sdk-embedding").AdCommandData;
|
|
118
|
+
origin: string;
|
|
119
|
+
};
|
|
120
|
+
type: PostEventActionTypeKeys.COMMAND_RECEIVED;
|
|
121
|
+
}>;
|
|
55
122
|
//# sourceMappingURL=command_received_saga.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command_received_saga.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/sagas/command_received_saga.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"command_received_saga.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/sagas/command_received_saga.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,YAAY,CAAC;AAG1C,OAAO,EAIH,KAAK,0BAA0B,EAgBlC,MAAM,yBAAyB,CAAC;AAajC,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAIrE,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAiBrF,wBAAsB,kBAAkB,CAAC,cAAc,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAE9F;AA4DD,wBAAiB,qBAAqB,CAAC,EACnC,OAAO,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,GACxD,EAAE,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAgExB;AAED,wBAAiB,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAYpC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// (C) 2020-2026 GoodData Corporation
|
|
2
|
-
import { call, put, select,
|
|
2
|
+
import { actionChannel, call, put, select, take } from "redux-saga/effects";
|
|
3
3
|
import { GdcErrorType, getEventType, isAdClearCommandData, isAdClearInsightCommandData, isAdDrillableItemsCommandData, isAdExportInsightCommandData, isAdOpenInsightCommandData, isAdRedoCommandData, isAdRemoveFilterContextCommandData, isAdRequestCancellationCommandData, isAdSaveAsInsightCommandData, isAdSaveInsightCommandData, isAdSetApiTokenCommandData, isAdSetFilterContextCommandData, isAdSetTimezoneCommandData, isAdUndoCommandData, } from "@gooddata/sdk-embedding";
|
|
4
4
|
import { isValidIanaTimezoneId } from "@gooddata/sdk-model";
|
|
5
5
|
import { conversionInit } from "../../actions/drillable_items_actions.js";
|
|
@@ -7,7 +7,7 @@ import { setTimezoneOverride } from "../../actions/timezone_override_actions.js"
|
|
|
7
7
|
import { backend } from "../../backend.js";
|
|
8
8
|
import { HOST_ADAPTER_ORIGIN, getHostAdapter } from "../../embedding/hostBridge.js";
|
|
9
9
|
import { getOrganizationId } from "../../selectors/bootstrap_selector.js";
|
|
10
|
-
import { isEmbeddingWriteCommandsEnabled, isEnableTimezoneChange, } from "../../selectors/feature_flag_selector.js";
|
|
10
|
+
import { isEmbeddingOriginValidationEnabled, isEmbeddingWriteCommandsEnabled, isEnableTimezoneChange, } from "../../selectors/feature_flag_selector.js";
|
|
11
11
|
import { PostEventActionTypeKeys } from "../actions/action_types.js";
|
|
12
12
|
import { clearInsightRequested } from "../actions/clear_insight_actions.js";
|
|
13
13
|
import { clearInsightContentRequested } from "../actions/clear_insight_content_actions.js";
|
|
@@ -27,6 +27,11 @@ export async function validateHostDomain(organizationId, url) {
|
|
|
27
27
|
return backend.organization(organizationId).securitySettings().isUrlValid(url, "UI_EVENT");
|
|
28
28
|
}
|
|
29
29
|
function* isCommandOriginValid(origin) {
|
|
30
|
+
const isValidationEnabled = yield select(isEmbeddingOriginValidationEnabled);
|
|
31
|
+
// Without the flag, no backend call: every origin is valid, as before the validation existed.
|
|
32
|
+
if (!isValidationEnabled) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
30
35
|
try {
|
|
31
36
|
const organizationId = yield select(getOrganizationId);
|
|
32
37
|
const result = yield call(validateHostDomain, organizationId, origin);
|
|
@@ -69,6 +74,8 @@ export function* handleReceivedCommand({ payload: { data: commandData, origin: c
|
|
|
69
74
|
? true
|
|
70
75
|
: yield call(isCommandOriginValid, commandOrigin);
|
|
71
76
|
if (!isValidOrigin) {
|
|
77
|
+
// oxlint-disable-next-line eslint-js/no-console
|
|
78
|
+
console.warn(`Denied the "${commandType}" command from the origin "${commandOrigin}". The origin is not in the embedding origins of the organization, or the check failed.`);
|
|
72
79
|
yield put(hostVerificationFailed(contextId));
|
|
73
80
|
return;
|
|
74
81
|
}
|
|
@@ -129,5 +136,11 @@ export function* handleReceivedCommand({ payload: { data: commandData, origin: c
|
|
|
129
136
|
}
|
|
130
137
|
}
|
|
131
138
|
export function* watchCommandReceived() {
|
|
132
|
-
|
|
139
|
+
// The channel keeps the commands that arrive while a command is handled, for example while its
|
|
140
|
+
// origin check waits for the backend. The commands then run one by one in the order they arrived.
|
|
141
|
+
const commandChannel = yield actionChannel(PostEventActionTypeKeys.COMMAND_RECEIVED);
|
|
142
|
+
while (true) {
|
|
143
|
+
const commandReceivedAction = yield take(commandChannel);
|
|
144
|
+
yield call(handleReceivedCommand, commandReceivedAction);
|
|
145
|
+
}
|
|
133
146
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control_filtering_saga.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/sagas/control_filtering_saga.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"control_filtering_saga.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/sagas/control_filtering_saga.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// (C) 2020-2026 GoodData Corporation
|
|
2
|
-
import { partition, uniq, uniqBy } from "lodash-es";
|
|
3
2
|
import moment from "moment";
|
|
4
3
|
import { all, call, put, race, select, take, takeEvery } from "redux-saga/effects";
|
|
5
4
|
import { isUnexpectedResponseError } from "@gooddata/sdk-backend-spi";
|
|
6
5
|
import { isPositiveAttributeFilter, isRemoveAttributeFilter, isRemoveDateFilter, isRemoveRankingFilter, } from "@gooddata/sdk-embedding";
|
|
7
6
|
import { filterConverters, toDisplayFormRefType, } from "@gooddata/sdk-embedding/internal";
|
|
8
7
|
import { areObjRefsEqual, idRef, isComputedAttributeRef, isUriRef, uriRef, } from "@gooddata/sdk-model";
|
|
8
|
+
import { _partition, _uniq, _uniqBy } from "@gooddata/util";
|
|
9
9
|
import { updateItemCache } from "../../actions/data_actions.js";
|
|
10
10
|
import { MAX_ATTRIBUTE_FILTERS_COUNT } from "../../constants/catalog_filters.js";
|
|
11
11
|
import { generateBucketItemIdentifier } from "../../models/bucket_item_identifier.js";
|
|
@@ -156,7 +156,7 @@ export function* validateExternalRankingFilter(rankingFilter) {
|
|
|
156
156
|
throw new Error(ERROR_INVALID_RANKING_FILTER_ATTRIBUTES);
|
|
157
157
|
}
|
|
158
158
|
const areAttributeLocalIdentifiersDuplicates = attributeLocalIdentifiers &&
|
|
159
|
-
|
|
159
|
+
_uniq(attributeLocalIdentifiers).length !== attributeLocalIdentifiers.length;
|
|
160
160
|
if (areAttributeLocalIdentifiersDuplicates) {
|
|
161
161
|
throw new Error(ERROR_DUPLICATED_RANKING_FILTER_ATTRIBUTES);
|
|
162
162
|
}
|
|
@@ -547,7 +547,7 @@ export function* getValidExternalAttributeFilters(externalFilters) {
|
|
|
547
547
|
return externalFiltersFromCached;
|
|
548
548
|
}
|
|
549
549
|
// a computed attribute has no labels, so it cannot go through the display form lookup below
|
|
550
|
-
const [computedAttributeRefs, labelRefs] =
|
|
550
|
+
const [computedAttributeRefs, labelRefs] = _partition(externalObjRefs, (ref) => isComputedAttributeRef(ref));
|
|
551
551
|
const validatedComputedAttributeFilters = computedAttributeRefs.length
|
|
552
552
|
? yield call(validateExternalComputedAttributeFilters, externalFilters, computedAttributeRefs)
|
|
553
553
|
: [];
|
|
@@ -936,19 +936,19 @@ export function* validateRemoveAttributeFilters(externalAttFilters) {
|
|
|
936
936
|
}
|
|
937
937
|
return mappingRemoveFilters;
|
|
938
938
|
}, { identifiers: [], uris: [] });
|
|
939
|
-
if (
|
|
939
|
+
if (_uniq(uris).length !== uris.length) {
|
|
940
940
|
throw new Error(ERROR_DUPLICATED_ATTRIBUTE_FILTER_URIS);
|
|
941
941
|
}
|
|
942
942
|
yield call(rejectComputedAttributesWhenDisabled, identifiers.some(({ dfType }) => dfType === "computedAttribute"));
|
|
943
943
|
// a label and a computed attribute sharing the identifier are two different filters
|
|
944
|
-
if (
|
|
944
|
+
if (_uniqBy(identifiers, ({ identifier, dfType }) => `${dfType}.${identifier}`).length !==
|
|
945
945
|
identifiers.length) {
|
|
946
946
|
throw new Error(ERROR_DUPLICATED_ATTRIBUTE_FILTER_IDENTIFIERS);
|
|
947
947
|
}
|
|
948
948
|
// validate external attribute filters uris; computed attributes have no labels and resolve through
|
|
949
949
|
// their own service
|
|
950
950
|
const appState = yield select();
|
|
951
|
-
const [computedAttributeIdentifiers, labelIdentifiers] =
|
|
951
|
+
const [computedAttributeIdentifiers, labelIdentifiers] = _partition(identifiers, ({ dfType }) => dfType === "computedAttribute");
|
|
952
952
|
const objRefs = [];
|
|
953
953
|
labelIdentifiers.forEach(({ identifier }) => objRefs.push(idRef(identifier, "displayForm")));
|
|
954
954
|
uris.forEach((uri) => objRefs.push(uriRef(uri)));
|
|
@@ -1,2 +1,68 @@
|
|
|
1
|
-
export declare function watchIncomingCommands(): Generator<import("redux-saga/effects").AllEffect<Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown
|
|
1
|
+
export declare function watchIncomingCommands(): Generator<import("redux-saga/effects").AllEffect<Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown> | Generator<import("redux-saga/effects").ActionChannelEffect | import("redux-saga/effects").CallEffect<Generator<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").CallEffect<boolean> | Generator<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").PutEffect<{
|
|
2
|
+
payload: undefined;
|
|
3
|
+
type: import("../../sagas/application_context/application_context_actions.js").ApplicationContextActionsTypeKeys;
|
|
4
|
+
}> | import("redux-saga/effects").SelectEffect, void, string | undefined> | Generator<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").PutEffect<{
|
|
5
|
+
payload: import("../../actions/confirm_unsaved_changes_actions.js").IConfirmUnsavedChangesDialogActionPayload;
|
|
6
|
+
type: import("../../constants/actions.js").ActionTypeKeys.SAGA_CONFIRM_UNSAVED_CHANGES_REQUEST;
|
|
7
|
+
}> | import("redux-saga/effects").SelectEffect, void, boolean> | Generator<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").PutEffect<{
|
|
8
|
+
payload: string | undefined;
|
|
9
|
+
type: import("../../constants/actions.js").ActionTypeKeys.SET_TIMEZONE_OVERRIDE;
|
|
10
|
+
}> | import("redux-saga/effects").SelectEffect, void, boolean> | import("redux-saga/effects").PutEffect<{
|
|
11
|
+
payload: import("@gooddata/sdk-embedding").IDrillableItemsCommandBody;
|
|
12
|
+
type: import("../../constants/actions.js").ActionTypeKeys.CONVERT_DRILLABLE_ITEMS;
|
|
13
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
14
|
+
payload: import("../actions/command_error_actions.js").IInsecureCommandFailedActionPayload;
|
|
15
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.INSECURE_COMMAND_FAILED;
|
|
16
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
17
|
+
payload: import("../actions/open_insight_actions.js").IOpenInsightActionPayload;
|
|
18
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.OPEN_INSIGHT_REQUESTED;
|
|
19
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
20
|
+
payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
21
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.HOST_VERIFICATION_FAILED;
|
|
22
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
23
|
+
payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
24
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.CLEAR_INSIGHT_REQUESTED;
|
|
25
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
26
|
+
payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
27
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.CLEAR_INSIGHT_CONTENT_REQUESTED;
|
|
28
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
29
|
+
payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
30
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.UNDO_REQUESTED;
|
|
31
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
32
|
+
payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
33
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.REDO_REQUESTED;
|
|
34
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
35
|
+
payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload & import("@gooddata/sdk-embedding").IAdExportInsightCommandBody;
|
|
36
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.EXPORT_INSIGHT_REQUESTED;
|
|
37
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
38
|
+
payload: import("@gooddata/sdk-embedding").IRemoveFilterContextContent & import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
39
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.REMOVE_FILTER_CONTEXT_REQUESTED;
|
|
40
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
41
|
+
payload: import("@gooddata/sdk-embedding").IAdSaveAsInsightCommandBody & import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
42
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.SAVE_AS_INSIGHT_REQUESTED;
|
|
43
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
44
|
+
payload: import("@gooddata/sdk-embedding").IAdSaveCommandBody & import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
45
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.SAVE_INSIGHT_REQUESTED;
|
|
46
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
47
|
+
payload: import("@gooddata/sdk-embedding").IFilterContextContent & import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
48
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.SET_FILTER_CONTEXT_REQUESTED;
|
|
49
|
+
}>, void, boolean>> | import("redux-saga/effects").ChannelTakeEffect<{
|
|
50
|
+
payload: {
|
|
51
|
+
data: import("@gooddata/sdk-embedding").AdCommandData;
|
|
52
|
+
origin: string;
|
|
53
|
+
};
|
|
54
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.COMMAND_RECEIVED;
|
|
55
|
+
}>, void, import("redux-saga").Channel<{
|
|
56
|
+
payload: {
|
|
57
|
+
data: import("@gooddata/sdk-embedding").AdCommandData;
|
|
58
|
+
origin: string;
|
|
59
|
+
};
|
|
60
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.COMMAND_RECEIVED;
|
|
61
|
+
}> & {
|
|
62
|
+
payload: {
|
|
63
|
+
data: import("@gooddata/sdk-embedding").AdCommandData;
|
|
64
|
+
origin: string;
|
|
65
|
+
};
|
|
66
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.COMMAND_RECEIVED;
|
|
67
|
+
}>>, void, unknown>;
|
|
2
68
|
//# sourceMappingURL=incoming_command_sagas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"incoming_command_sagas.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/sagas/incoming_command_sagas.ts"],"names":[],"mappings":"AAoBA,wBAAiB,qBAAqB
|
|
1
|
+
{"version":3,"file":"incoming_command_sagas.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/sagas/incoming_command_sagas.ts"],"names":[],"mappings":"AAoBA,wBAAiB,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAkBrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post_message_saga_helper.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/sagas/post_message_saga_helper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"post_message_saga_helper.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/sagas/post_message_saga_helper.ts"],"names":[],"mappings":"AAEA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EACH,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,EAElC,MAAM,kCAAkC,CAAC;AAK1C,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC1F,OAAO,EAEH,KAAK,0BAA0B,EAClC,MAAM,0CAA0C,CAAC;AAkBlD,eAAO,MAAM,yBAAyB,oBACjB,OAAO,mCAEzB,MAAM,CAAC,MAAM,EAAE,MAAM,CAUvB,CAAC;AAEF,wBAAgB,uBAAuB,CAAC,yBAAyB,CAAC,EAAE,0BAA0B,GAAG,MAAM,CAGtG;AAED,wBAAgB,sCAAsC,CAAC,WAAW,EAAE,aAAa,GAAG,MAAM,CAGzF;AAED,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAE3D;AAED,wBAAgB,qBAAqB,CAAC,EAClC,IAAI,EACJ,EAAE,EACF,WAAW,EACX,aAAa,GAChB,EAAE,0BAA0B,GAAG,iBAAiB,CAehD;AAED,wBAAgB,2BAA2B,CACvC,UAAU,EAAE,0BAA0B,EACtC,qBAAqB,EAAE,MAAM,EAC7B,eAAe,EAAE,OAAO,EACxB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM;;;EAoB9B;AAUD,wBAAgB,4CAA4C,CACxD,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,eAAe,GAC7B,aAAa,CAIf;AAED;;;;;;;GAOG;AACH,wBAAgB,mDAAmD,CAC/D,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,eAAe,EAC5B,MAAM,GAAE,kBAAkC,GAC3C,aAAa,CAOf"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2020-2026 GoodData Corporation
|
|
2
|
-
import { omit } from "lodash-es";
|
|
3
2
|
import moment from "moment";
|
|
4
3
|
import { filterConverters, } from "@gooddata/sdk-embedding/internal";
|
|
4
|
+
import { _omit } from "@gooddata/util";
|
|
5
5
|
import { ALL_TIME } from "../../constants/presets.js";
|
|
6
6
|
import { GRANULARITY } from "../../models/granularity.js";
|
|
7
7
|
import { DEFAULT_POST_MESSAGE_CONTEXT_ID, } from "../actions/post_message_action_helper.js";
|
|
@@ -27,9 +27,9 @@ export const getSupportedGranularities = (isTimeSupported, isSecondsSupported =
|
|
|
27
27
|
// otherwise an embedder could set a second filter that the UI then rejects and resets.
|
|
28
28
|
return isSecondsSupported
|
|
29
29
|
? SUPPORTED_DATE_GRANULARITY
|
|
30
|
-
:
|
|
30
|
+
: _omit(SUPPORTED_DATE_GRANULARITY, ["GDC.time.second"]);
|
|
31
31
|
}
|
|
32
|
-
return
|
|
32
|
+
return _omit(SUPPORTED_DATE_GRANULARITY, ["GDC.time.second", "GDC.time.minute", "GDC.time.hour"]);
|
|
33
33
|
};
|
|
34
34
|
export function getPostMessageContextId(postMessageContextContent) {
|
|
35
35
|
const { contextId } = postMessageContextContent || {};
|
package/esm/reduxStore.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const store: import("@reduxjs/toolkit").EnhancedStore<import("./store/types.js").IAppState, import("redux").UnknownAction, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
|
|
2
2
|
dispatch: {};
|
|
3
|
-
}>, import("redux").StoreEnhancer]>>,
|
|
3
|
+
}>, import("redux").StoreEnhancer]>>, startSagas: () => import("redux-saga").Task<any>, subscribeControls: () => (() => void);
|
|
4
4
|
//# sourceMappingURL=reduxStore.d.ts.map
|
package/esm/reduxStore.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reduxStore.d.ts","sourceRoot":"","sources":["../src/reduxStore.ts"],"names":[],"mappings":"AASA,eAAO,MAAQ,KAAK;;sCAAE,
|
|
1
|
+
{"version":3,"file":"reduxStore.d.ts","sourceRoot":"","sources":["../src/reduxStore.ts"],"names":[],"mappings":"AASA,eAAO,MAAQ,KAAK;;sCAAE,UAAU,wCAAE,iBAAiB,oBAAkB,CAAC"}
|
package/esm/reduxStore.js
CHANGED
|
@@ -5,4 +5,4 @@ import { createStore } from "./create_store.js";
|
|
|
5
5
|
// upgraded. The store is created in separate file from app.tsx where it was created before to not have
|
|
6
6
|
// circular dependencies between the files.
|
|
7
7
|
// Sagas are not auto-started; caller invokes startSagas() when ready.
|
|
8
|
-
export const { store,
|
|
8
|
+
export const { store, startSagas, subscribeControls } = createStore();
|
|
@@ -20,7 +20,7 @@ export declare function loadSettings(backend: IAnalyticalBackend, workspaceId: s
|
|
|
20
20
|
/**
|
|
21
21
|
* AD's bootstrap data loaded from the backend, for a host that passes none. The user and the settings
|
|
22
22
|
* are required. The other values are optional and fall back to their defaults. The workspace title
|
|
23
|
-
* is the workspace identifier
|
|
23
|
+
* is the workspace identifier because AD does not show the workspace title.
|
|
24
24
|
*/
|
|
25
25
|
export declare function backendBootstrapData(backend: IAnalyticalBackend, workspaceId: string | undefined, locale: ILocale | undefined, { loadTheme, ...known }?: IBackendBootstrapDataOptions): Promise<IBootstrapData>;
|
|
26
26
|
export {};
|
|
@@ -24,7 +24,7 @@ export function loadSettings(backend, workspaceId) {
|
|
|
24
24
|
/**
|
|
25
25
|
* AD's bootstrap data loaded from the backend, for a host that passes none. The user and the settings
|
|
26
26
|
* are required. The other values are optional and fall back to their defaults. The workspace title
|
|
27
|
-
* is the workspace identifier
|
|
27
|
+
* is the workspace identifier because AD does not show the workspace title.
|
|
28
28
|
*/
|
|
29
29
|
export async function backendBootstrapData(backend, workspaceId, locale, { loadTheme = true, ...known } = {}) {
|
|
30
30
|
const workspace = workspaceId ? backend.workspace(workspaceId) : undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verifyUserAccess.d.ts","sourceRoot":"","sources":["../../../src/sagas/bootstrap/verifyUserAccess.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"verifyUserAccess.d.ts","sourceRoot":"","sources":["../../../src/sagas/bootstrap/verifyUserAccess.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAkB3E,eAAO,MAAM,4BAA4B,EAAE,cAA4D,CAAC;AACxG,eAAO,MAAM,oBAAoB,EAAE,cAAoD,CAAC;AACxF,eAAO,MAAM,6BAA6B,EAAE,cAA6D,CAAC;AAC1G,eAAO,MAAM,0BAA0B,EAAE,cAA0D,CAAC;AACpG,eAAO,MAAM,0BAA0B,EAAE,cAA0D,CAAC;AACpG,eAAO,MAAM,uBAAuB,EAAE,cAAuD,CAAC;AAC9F,eAAO,MAAM,uBAAuB,EAAE,cAAuD,CAAC;AAE9F,wBAAiB,gBAAgB,yHAsChC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { call, select } from "redux-saga/effects";
|
|
3
3
|
import { canEditVisualization } from "@gooddata/sdk-model";
|
|
4
4
|
import { ACCESS_DESIGNER_DENIED_ERROR as ACCESS_DESIGNER_DENIED_ERROR_CODE, ACCESS_WORKBENCH_DENIED_ERROR as ACCESS_WORKBENCH_DENIED_ERROR_CODE, CREATE_REPORT_DENIED_ERROR as CREATE_REPORT_DENIED_ERROR_CODE, NOT_AUTHENTICATED_ERROR as NOT_AUTHENTICATED_ERROR_CODE, NOT_AUTHORIZED_ERROR as NOT_AUTHORIZED_ERROR_CODE, NO_PROJECT_AVAILABLE_ERROR as NO_PROJECT_AVAILABLE_ERROR_CODE, PROJECT_NOT_FOUND_ERROR as PROJECT_NOT_FOUND_ERROR_CODE, } from "../../constants/errors.js";
|
|
5
|
-
import { getCurrentProjectInfo,
|
|
5
|
+
import { getCurrentProjectInfo, stashedProjectUri } from "../../selectors/bootstrap_selector.js";
|
|
6
6
|
import { enableVisualizationPermissions } from "../../selectors/feature_flag_selector.js";
|
|
7
7
|
import { getIsEmbedded } from "../../selectors/meta_selector.js";
|
|
8
8
|
import { workspacePermissions as workspacePermissionsSelector } from "../../selectors/permissions_selector.js";
|
|
@@ -18,13 +18,9 @@ export const NOT_AUTHENTICATED_ERROR = { type: NOT_AUTHENTICATED_ERROR_CODE };
|
|
|
18
18
|
export function* verifyUserAccess() {
|
|
19
19
|
const routeParams = yield select(getRouteParams);
|
|
20
20
|
const currentProjectInfo = yield select(getCurrentProjectInfo);
|
|
21
|
-
const hasWSAccess = yield select(hasWorkspaceAccess);
|
|
22
21
|
const workspacePermissions = yield select(workspacePermissionsSelector);
|
|
23
22
|
const isEmbedded = yield select(getIsEmbedded);
|
|
24
23
|
const userStashedProjectUri = yield select(stashedProjectUri);
|
|
25
|
-
if (!hasWSAccess) {
|
|
26
|
-
throw NOT_AUTHORIZED_ERROR;
|
|
27
|
-
}
|
|
28
24
|
if (!workspacePermissions.canAccessWorkbench && !isEmbedded) {
|
|
29
25
|
throw ACCESS_WORKBENCH_DENIED_ERROR;
|
|
30
26
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type IBootstrapErrorAction } from "../actions/app_context_actions.js";
|
|
2
2
|
import { type IAppState } from "../store/types.js";
|
|
3
|
-
export declare function bootstrapError(action: IBootstrapErrorAction): Generator<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").CallEffect<(params: import("../utils/location.js").IUriResolverParams) => void> | import("redux-saga/effects").
|
|
3
|
+
export declare function bootstrapError(action: IBootstrapErrorAction): Generator<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").CallEffect<(params: import("../utils/location.js").IUriResolverParams) => void> | import("redux-saga/effects").SelectEffect, void, IAppState & ((params: import("../utils/location.js").IUriResolverParams) => void)>;
|
|
4
4
|
export declare function watchErrorBootstrap(): Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown>;
|
|
5
5
|
//# sourceMappingURL=bootstrap_error_sagas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap_error_sagas.d.ts","sourceRoot":"","sources":["../../src/sagas/bootstrap_error_sagas.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAG/E,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"bootstrap_error_sagas.d.ts","sourceRoot":"","sources":["../../src/sagas/bootstrap_error_sagas.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAG/E,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD,wBAAiB,cAAc,CAAC,MAAM,EAAE,qBAAqB,gTAO5D;AAED,wBAAiB,mBAAmB,6EAEnC"}
|
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
import { call, select, takeEvery } from "redux-saga/effects";
|
|
3
3
|
import { ActionTypeKeys } from "../constants/actions.js";
|
|
4
4
|
import { getErrorHandler } from "../services/bootstrap_error_service.js";
|
|
5
|
-
import { isLoggedInViaSso } from "../utils/sso.js";
|
|
6
5
|
export function* bootstrapError(action) {
|
|
7
6
|
const state = yield select();
|
|
8
|
-
const
|
|
9
|
-
const errorHandler = yield call(getErrorHandler, state, action, loggedViaSso);
|
|
7
|
+
const errorHandler = yield call(getErrorHandler, state, action);
|
|
10
8
|
if (errorHandler) {
|
|
11
9
|
yield call(errorHandler, action.payload);
|
|
12
10
|
}
|