@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.
Files changed (366) hide show
  1. package/NOTICE +11041 -61664
  2. package/README.md +2 -2
  3. package/esm/actions/app_context_actions.d.ts +0 -15
  4. package/esm/actions/app_context_actions.d.ts.map +1 -1
  5. package/esm/actions/data_actions.d.ts +2 -1
  6. package/esm/actions/data_actions.d.ts.map +1 -1
  7. package/esm/actions/data_actions.js +2 -2
  8. package/esm/actions/delete_actions.d.ts +1 -1
  9. package/esm/actions/delete_actions.d.ts.map +1 -1
  10. package/esm/actions/delete_actions.js +1 -1
  11. package/esm/actions/report_actions.d.ts +0 -25
  12. package/esm/actions/report_actions.d.ts.map +1 -1
  13. package/esm/actions/report_actions.js +0 -28
  14. package/esm/components/CatalogPanel.d.ts +1 -5
  15. package/esm/components/CatalogPanel.d.ts.map +1 -1
  16. package/esm/components/CatalogPanel.js +4 -28
  17. package/esm/components/DeleteReportDialogUsageList.d.ts.map +1 -1
  18. package/esm/components/DeleteReportDialogUsageList.js +33 -17
  19. package/esm/components/InsightUsageOnDashboards.d.ts.map +1 -1
  20. package/esm/components/InsightUsageOnDashboards.js +40 -27
  21. package/esm/components/ReportDescription.js +3 -3
  22. package/esm/components/Root.js +2 -2
  23. package/esm/components/SaveReportFromKDDialog.d.ts.map +1 -1
  24. package/esm/components/SaveReportFromKDDialog.js +11 -4
  25. package/esm/components/buckets/AttributeBucketItemHyperlinkConfiguration.js +2 -2
  26. package/esm/components/buckets/BucketReorderableItem.d.ts.map +1 -1
  27. package/esm/components/buckets/BucketReorderableItem.js +2 -2
  28. package/esm/components/buckets/DraggableBucketItem.d.ts.map +1 -1
  29. package/esm/components/buckets/DraggableBucketItem.js +2 -2
  30. package/esm/components/buckets/MeasureBucketItemConfiguration.d.ts.map +1 -1
  31. package/esm/components/buckets/MeasureBucketItemConfiguration.js +2 -2
  32. package/esm/components/buckets/MeasureDateFilter.d.ts.map +1 -1
  33. package/esm/components/buckets/MeasureDateFilter.js +5 -5
  34. package/esm/components/buckets/VisualizationPicker.d.ts.map +1 -1
  35. package/esm/components/buckets/VisualizationPicker.js +4 -4
  36. package/esm/components/buckets/measureDateFilterOption.d.ts.map +1 -1
  37. package/esm/components/buckets/measureDateFilterOption.js +2 -2
  38. package/esm/components/buckets/useMeasureAttributeFilterItems.d.ts.map +1 -1
  39. package/esm/components/buckets/useMeasureAttributeFilterItems.js +2 -2
  40. package/esm/components/catalog/Catalog.d.ts.map +1 -1
  41. package/esm/components/catalog/Catalog.js +2 -5
  42. package/esm/components/catalog/CatalogList.d.ts +0 -2
  43. package/esm/components/catalog/CatalogList.d.ts.map +1 -1
  44. package/esm/components/catalog/CatalogList.js +2 -2
  45. package/esm/components/catalog/CatalogVisual.d.ts +1 -3
  46. package/esm/components/catalog/CatalogVisual.d.ts.map +1 -1
  47. package/esm/components/catalog/CatalogVisual.js +2 -2
  48. package/esm/components/catalog/blocks/EmptyCatalogWarning.d.ts +1 -3
  49. package/esm/components/catalog/blocks/EmptyCatalogWarning.d.ts.map +1 -1
  50. package/esm/components/catalog/blocks/EmptyCatalogWarning.js +3 -3
  51. package/esm/components/catalog/hooks/GroupHook.d.ts.map +1 -1
  52. package/esm/components/catalog/hooks/GroupHook.js +4 -3
  53. package/esm/components/catalog/hooks/ScrollableAreaHook.d.ts.map +1 -1
  54. package/esm/components/catalog/hooks/ScrollableAreaHook.js +2 -2
  55. package/esm/components/catalog/hooks/TabsHook.d.ts.map +1 -1
  56. package/esm/components/catalog/hooks/TabsHook.js +3 -3
  57. package/esm/components/catalog/item/CatalogDetailsBubble.d.ts.map +1 -1
  58. package/esm/components/catalog/item/CatalogDetailsBubble.js +7 -44
  59. package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/AdditionalDateAttributesDropdown.js +1 -1
  60. package/esm/components/filterBar/dateFilter/Buttons/applyButtonHook.d.ts.map +1 -1
  61. package/esm/components/filterBar/dateFilter/Buttons/applyButtonHook.js +4 -4
  62. package/esm/components/filterBar/dateFilter/DateFilter.js +2 -2
  63. package/esm/components/filterBar/dateFilter/PresetSection/supportedPresetsHook.d.ts.map +1 -1
  64. package/esm/components/filterBar/dateFilter/PresetSection/supportedPresetsHook.js +2 -2
  65. package/esm/components/filterBar/dateFilter/presets.d.ts.map +1 -1
  66. package/esm/components/filterBar/dateFilter/presets.js +2 -2
  67. package/esm/components/header/InsightPickerDialog.d.ts.map +1 -1
  68. package/esm/components/header/InsightPickerDialog.js +5 -1
  69. package/esm/components/header/VisualizationsDropdown.d.ts.map +1 -1
  70. package/esm/components/header/VisualizationsDropdown.js +15 -13
  71. package/esm/components/report/ReportVisualization.d.ts.map +1 -1
  72. package/esm/components/report/ReportVisualization.js +2 -2
  73. package/esm/components/report/WorkspaceEmpty.d.ts.map +1 -1
  74. package/esm/components/report/WorkspaceEmpty.js +1 -10
  75. package/esm/components/report/reportUtils.d.ts.map +1 -1
  76. package/esm/components/report/reportUtils.js +3 -3
  77. package/esm/components/saveReportFromKD/DocumentItem.d.ts +6 -0
  78. package/esm/components/saveReportFromKD/DocumentItem.d.ts.map +1 -0
  79. package/esm/components/saveReportFromKD/DocumentItem.js +11 -0
  80. package/esm/components/saveReportFromKD/InsightUsageOnDashboardsList.d.ts +3 -2
  81. package/esm/components/saveReportFromKD/InsightUsageOnDashboardsList.d.ts.map +1 -1
  82. package/esm/components/saveReportFromKD/InsightUsageOnDashboardsList.js +3 -2
  83. package/esm/components/shared/AttributeBubbleContent.d.ts.map +1 -1
  84. package/esm/components/shared/AttributeBubbleContent.js +5 -3
  85. package/esm/components/shared/ComputedAttributeBubbleContent.d.ts.map +1 -1
  86. package/esm/components/shared/ComputedAttributeBubbleContent.js +2 -2
  87. package/esm/components/shared/MeasureBubbleContent.d.ts +2 -9
  88. package/esm/components/shared/MeasureBubbleContent.d.ts.map +1 -1
  89. package/esm/components/shared/MeasureBubbleContent.js +5 -11
  90. package/esm/constants/actions.d.ts +0 -4
  91. package/esm/constants/actions.d.ts.map +1 -1
  92. package/esm/constants/actions.js +0 -4
  93. package/esm/convertors/fromBackend/VisualizationConverter.d.ts.map +1 -1
  94. package/esm/convertors/fromBackend/VisualizationConverter.js +5 -5
  95. package/esm/convertors/toBackend/InsightConverter.d.ts.map +1 -1
  96. package/esm/convertors/toBackend/InsightConverter.js +10 -9
  97. package/esm/convertors/toBackend/MeasureConverter.d.ts.map +1 -1
  98. package/esm/convertors/toBackend/MeasureConverter.js +2 -2
  99. package/esm/convertors/toBackend/afm/ExecutionConverter.d.ts.map +1 -1
  100. package/esm/convertors/toBackend/afm/ExecutionConverter.js +4 -4
  101. package/esm/convertors/toBackend/afm/FilterConverter.d.ts.map +1 -1
  102. package/esm/convertors/toBackend/afm/FilterConverter.js +2 -2
  103. package/esm/convertors/toBackend/afm/MeasureConverter.d.ts.map +1 -1
  104. package/esm/convertors/toBackend/afm/MeasureConverter.js +2 -2
  105. package/esm/create_store.js +1 -1
  106. package/esm/embedding/analyticalDesignerConfig.d.ts.map +1 -1
  107. package/esm/embedding/analyticalDesignerConfig.js +0 -1
  108. package/esm/embedding/analyticalDesignerTypes.d.ts +4 -0
  109. package/esm/embedding/analyticalDesignerTypes.d.ts.map +1 -1
  110. package/esm/embedding/platformContext.d.ts +2 -2
  111. package/esm/embedding/platformContext.d.ts.map +1 -1
  112. package/esm/embedding/platformContext.js +2 -9
  113. package/esm/internal.d.ts +1 -2
  114. package/esm/internal.d.ts.map +1 -1
  115. package/esm/internal.js +1 -2
  116. package/esm/models/catalog.d.ts.map +1 -1
  117. package/esm/models/catalog.js +3 -2
  118. package/esm/models/decorated_bucket_item.d.ts.map +1 -1
  119. package/esm/models/decorated_bucket_item.js +2 -2
  120. package/esm/models/decorated_metric_attribute_filter.d.ts.map +1 -1
  121. package/esm/models/decorated_metric_attribute_filter.js +3 -2
  122. package/esm/models/metadata.d.ts +7 -5
  123. package/esm/models/metadata.d.ts.map +1 -1
  124. package/esm/models/metadata.js +26 -16
  125. package/esm/models/preset_item.d.ts.map +1 -1
  126. package/esm/models/preset_item.js +4 -3
  127. package/esm/postMessageApi/actions/open_insight_actions.d.ts.map +1 -1
  128. package/esm/postMessageApi/actions/open_insight_actions.js +2 -2
  129. package/esm/postMessageApi/sagas/command_received_saga.d.ts +68 -1
  130. package/esm/postMessageApi/sagas/command_received_saga.d.ts.map +1 -1
  131. package/esm/postMessageApi/sagas/command_received_saga.js +16 -3
  132. package/esm/postMessageApi/sagas/control_filtering_saga.d.ts.map +1 -1
  133. package/esm/postMessageApi/sagas/control_filtering_saga.js +6 -6
  134. package/esm/postMessageApi/sagas/incoming_command_sagas.d.ts +67 -1
  135. package/esm/postMessageApi/sagas/incoming_command_sagas.d.ts.map +1 -1
  136. package/esm/postMessageApi/sagas/post_message_saga_helper.d.ts.map +1 -1
  137. package/esm/postMessageApi/sagas/post_message_saga_helper.js +3 -3
  138. package/esm/reduxStore.d.ts +1 -1
  139. package/esm/reduxStore.d.ts.map +1 -1
  140. package/esm/reduxStore.js +1 -1
  141. package/esm/sagas/bootstrap/backendBootstrapData.d.ts +1 -1
  142. package/esm/sagas/bootstrap/backendBootstrapData.js +1 -1
  143. package/esm/sagas/bootstrap/verifyUserAccess.d.ts.map +1 -1
  144. package/esm/sagas/bootstrap/verifyUserAccess.js +1 -5
  145. package/esm/sagas/bootstrap_error_sagas.d.ts +1 -1
  146. package/esm/sagas/bootstrap_error_sagas.d.ts.map +1 -1
  147. package/esm/sagas/bootstrap_error_sagas.js +1 -3
  148. package/esm/sagas/catalog/catalog_saga.d.ts.map +1 -1
  149. package/esm/sagas/catalog/catalog_saga.js +3 -3
  150. package/esm/sagas/delete_report_sagas.d.ts.map +1 -1
  151. package/esm/sagas/delete_report_sagas.js +6 -3
  152. package/esm/sagas/drillable_items_sagas.d.ts +2 -3
  153. package/esm/sagas/drillable_items_sagas.d.ts.map +1 -1
  154. package/esm/sagas/drillable_items_sagas.js +4 -8
  155. package/esm/sagas/export_report_sagas.d.ts +1 -23
  156. package/esm/sagas/export_report_sagas.d.ts.map +1 -1
  157. package/esm/sagas/export_report_sagas.js +5 -51
  158. package/esm/sagas/open_report_sagas.d.ts +9 -2
  159. package/esm/sagas/open_report_sagas.d.ts.map +1 -1
  160. package/esm/sagas/open_report_sagas.js +8 -5
  161. package/esm/sagas/sagas.d.ts +67 -1
  162. package/esm/sagas/sagas.d.ts.map +1 -1
  163. package/esm/sagas/sagas.js +0 -2
  164. package/esm/sdk-ui-analytical-designer.d.ts +4 -0
  165. package/esm/selectors/backend_capabilities_selector.d.ts +0 -1
  166. package/esm/selectors/backend_capabilities_selector.d.ts.map +1 -1
  167. package/esm/selectors/backend_capabilities_selector.js +0 -1
  168. package/esm/selectors/bootstrap_selector.d.ts +0 -189
  169. package/esm/selectors/bootstrap_selector.d.ts.map +1 -1
  170. package/esm/selectors/bootstrap_selector.js +0 -13
  171. package/esm/selectors/buckets_selector.d.ts.map +1 -1
  172. package/esm/selectors/buckets_selector.js +8 -7
  173. package/esm/selectors/export_button_selector.d.ts.map +1 -1
  174. package/esm/selectors/export_button_selector.js +2 -2
  175. package/esm/selectors/feature_flag_selector.d.ts +8 -28
  176. package/esm/selectors/feature_flag_selector.d.ts.map +1 -1
  177. package/esm/selectors/feature_flag_selector.js +2 -1
  178. package/esm/selectors/insight_delete_selector.d.ts +122 -0
  179. package/esm/selectors/insight_delete_selector.d.ts.map +1 -0
  180. package/esm/selectors/insight_delete_selector.js +13 -0
  181. package/esm/selectors/insight_selectors.d.ts.map +1 -1
  182. package/esm/selectors/insight_selectors.js +3 -3
  183. package/esm/selectors/report_selector.d.ts.map +1 -1
  184. package/esm/selectors/report_selector.js +3 -2
  185. package/esm/selectors/report_visualization_selector.d.ts +12 -8
  186. package/esm/selectors/report_visualization_selector.d.ts.map +1 -1
  187. package/esm/selectors/reset_button_selector.d.ts.map +1 -1
  188. package/esm/selectors/reset_button_selector.js +3 -3
  189. package/esm/selectors/route_selector.d.ts.map +1 -1
  190. package/esm/selectors/route_selector.js +2 -3
  191. package/esm/selectors/save_report_from_kd_dialog_selector.d.ts +26 -2
  192. package/esm/selectors/save_report_from_kd_dialog_selector.d.ts.map +1 -1
  193. package/esm/selectors/save_report_from_kd_dialog_selector.js +3 -2
  194. package/esm/selectors/save_report_selector.d.ts +45 -5
  195. package/esm/selectors/save_report_selector.d.ts.map +1 -1
  196. package/esm/selectors/save_report_selector.js +24 -12
  197. package/esm/services/bootstrap_error_service.d.ts +1 -4
  198. package/esm/services/bootstrap_error_service.d.ts.map +1 -1
  199. package/esm/services/bootstrap_error_service.js +12 -46
  200. package/esm/services/date_datasets_service.d.ts.map +1 -1
  201. package/esm/services/date_datasets_service.js +3 -2
  202. package/esm/services/reference_point_service.js +3 -3
  203. package/esm/services/report_service.d.ts +1 -2
  204. package/esm/services/report_service.d.ts.map +1 -1
  205. package/esm/services/report_service.js +4 -37
  206. package/esm/services/telemetry/tracking_events.d.ts +0 -7
  207. package/esm/services/telemetry/tracking_events.d.ts.map +1 -1
  208. package/esm/services/telemetry/tracking_events.js +0 -5
  209. package/esm/services/visualization_class_service.d.ts.map +1 -1
  210. package/esm/services/visualization_class_service.js +2 -2
  211. package/esm/store/attribute_elements/attribute_elements_reducer.d.ts.map +1 -1
  212. package/esm/store/attribute_elements/attribute_elements_reducer.js +6 -5
  213. package/esm/store/bucket_filters/bucket_filters_operations.d.ts.map +1 -1
  214. package/esm/store/bucket_filters/bucket_filters_operations.js +3 -3
  215. package/esm/store/buckets/buckets_removal_helpers.d.ts.map +1 -1
  216. package/esm/store/buckets/buckets_removal_helpers.js +4 -4
  217. package/esm/store/buckets/buckets_totals_helpers.d.ts.map +1 -1
  218. package/esm/store/buckets/buckets_totals_helpers.js +3 -3
  219. package/esm/store/buckets/extended_reference_point_operations.d.ts.map +1 -1
  220. package/esm/store/buckets/extended_reference_point_operations.js +3 -3
  221. package/esm/store/buckets/helpers/measure_format.d.ts.map +1 -1
  222. package/esm/store/buckets/helpers/measure_format.js +2 -2
  223. package/esm/store/buckets/helpers/totals_for_new_measure.d.ts.map +1 -1
  224. package/esm/store/buckets/helpers/totals_for_new_measure.js +4 -3
  225. package/esm/store/catalog/catalog_reducer.d.ts.map +1 -1
  226. package/esm/store/catalog/catalog_reducer.js +4 -4
  227. package/esm/store/execution/execution_helpers.d.ts.map +1 -1
  228. package/esm/store/execution/execution_helpers.js +3 -3
  229. package/esm/store/filter_bar/filter_bar_helpers.d.ts.map +1 -1
  230. package/esm/store/filter_bar/filter_bar_helpers.js +3 -2
  231. package/esm/store/filter_bar/filter_bar_types.d.ts.map +1 -1
  232. package/esm/store/filter_bar/filter_bar_types.js +7 -7
  233. package/esm/store/filter_bar/parameter_filter_types.d.ts.map +1 -1
  234. package/esm/store/filter_bar/parameter_filter_types.js +2 -2
  235. package/esm/store/insight_usage/insight_usage_helpers.d.ts +2 -1
  236. package/esm/store/insight_usage/insight_usage_helpers.d.ts.map +1 -1
  237. package/esm/store/insight_usage/insight_usage_helpers.js +1 -0
  238. package/esm/store/insight_usage/insight_usage_selectors.d.ts +23 -0
  239. package/esm/store/insight_usage/insight_usage_selectors.d.ts.map +1 -1
  240. package/esm/store/insight_usage/insight_usage_selectors.js +4 -1
  241. package/esm/store/insight_usage/insight_usage_slice.d.ts.map +1 -1
  242. package/esm/store/insight_usage/insight_usage_slice.js +1 -0
  243. package/esm/store/insight_usage/insight_usage_state.d.ts +6 -0
  244. package/esm/store/insight_usage/insight_usage_state.d.ts.map +1 -1
  245. package/esm/store/item_cache/item_cache_helpers.d.ts.map +1 -1
  246. package/esm/store/item_cache/item_cache_helpers.js +3 -2
  247. package/esm/store/measure_date_datasets/measure_date_datasets_helpers.d.ts.map +1 -1
  248. package/esm/store/measure_date_datasets/measure_date_datasets_helpers.js +2 -2
  249. package/esm/store/messages/messages_slice.d.ts.map +1 -1
  250. package/esm/store/messages/messages_slice.js +5 -11
  251. package/esm/store/metric_editor/metric_editor_sagas.d.ts.map +1 -1
  252. package/esm/store/metric_editor/metric_editor_sagas.js +4 -4
  253. package/esm/store/properties/properties_helpers.d.ts.map +1 -1
  254. package/esm/store/properties/properties_helpers.js +5 -4
  255. package/esm/store/properties/properties_operation.d.ts.map +1 -1
  256. package/esm/store/properties/properties_operation.js +2 -2
  257. package/esm/store/properties/properties_slice.d.ts.map +1 -1
  258. package/esm/store/properties/properties_slice.js +3 -3
  259. package/esm/store/recommendations/recommendations_slice.d.ts.map +1 -1
  260. package/esm/store/recommendations/recommendations_slice.js +2 -2
  261. package/esm/store/report/report_slices.d.ts.map +1 -1
  262. package/esm/store/report/report_slices.js +3 -3
  263. package/esm/tests/constants.test.helpers.d.ts.map +1 -1
  264. package/esm/tests/constants.test.helpers.js +2 -2
  265. package/esm/translations/de-DE.json +7 -7
  266. package/esm/translations/en-AU.json +7 -7
  267. package/esm/translations/en-GB.json +7 -7
  268. package/esm/translations/en-US.json +56 -36
  269. package/esm/translations/es-419.json +7 -7
  270. package/esm/translations/es-ES.json +7 -7
  271. package/esm/translations/fi-FI.json +7 -7
  272. package/esm/translations/fr-CA.json +9 -9
  273. package/esm/translations/fr-FR.json +7 -7
  274. package/esm/translations/id-ID.json +7 -7
  275. package/esm/translations/it-IT.json +8 -8
  276. package/esm/translations/ja-JP.json +9 -9
  277. package/esm/translations/ko-KR.json +35 -35
  278. package/esm/translations/nl-NL.json +7 -7
  279. package/esm/translations/pl-PL.json +28 -28
  280. package/esm/translations/pt-BR.json +7 -7
  281. package/esm/translations/pt-PT.json +7 -7
  282. package/esm/translations/ru-RU.json +9 -9
  283. package/esm/translations/sl-SI.json +7 -7
  284. package/esm/translations/th-TH.json +7 -7
  285. package/esm/translations/tr-TR.json +19 -19
  286. package/esm/translations/uk-UA.json +7 -7
  287. package/esm/translations/vi-VN.json +7 -7
  288. package/esm/translations/zh-HK.json +34 -34
  289. package/esm/translations/zh-Hans.json +7 -7
  290. package/esm/translations/zh-Hant.json +25 -25
  291. package/esm/typings/bear/bearTypes.d.ts +0 -3
  292. package/esm/typings/bear/bearTypes.d.ts.map +1 -1
  293. package/esm/typings/bear/bearTypes.js +26 -26
  294. package/esm/typings/catalog.d.ts +4 -2
  295. package/esm/typings/catalog.d.ts.map +1 -1
  296. package/esm/utils/api.d.ts +0 -2
  297. package/esm/utils/api.d.ts.map +1 -1
  298. package/esm/utils/api.js +4 -13
  299. package/esm/utils/custom_mouse_backend.js +1 -1
  300. package/esm/utils/date_datasets.js +4 -4
  301. package/esm/utils/date_datasets_meta.d.ts.map +1 -1
  302. package/esm/utils/date_datasets_meta.js +4 -4
  303. package/esm/utils/drilling/types.d.ts.map +1 -1
  304. package/esm/utils/drilling/types.js +15 -15
  305. package/esm/utils/dropdown.js +2 -2
  306. package/esm/utils/hooks/WindowResizeHook.js +2 -2
  307. package/esm/utils/id_prefix_sanitize.d.ts.map +1 -1
  308. package/esm/utils/id_prefix_sanitize.js +10 -9
  309. package/esm/utils/location.d.ts +1 -3
  310. package/esm/utils/location.d.ts.map +1 -1
  311. package/esm/utils/location.js +2 -7
  312. package/esm/utils/measure_descriptions.d.ts.map +1 -1
  313. package/esm/utils/measure_descriptions.js +2 -2
  314. package/esm/utils/sdkModelToADRep/InsightConverter.d.ts.map +1 -1
  315. package/esm/utils/sdkModelToADRep/InsightConverter.js +11 -10
  316. package/esm/utils/sdkModelToADRep/MeasureConverter.d.ts.map +1 -1
  317. package/esm/utils/sdkModelToADRep/MeasureConverter.js +2 -2
  318. package/esm/utils/telemetry/tableTotals.d.ts.map +1 -1
  319. package/esm/utils/telemetry/tableTotals.js +2 -2
  320. package/esm/utils/visualization_class.d.ts.map +1 -1
  321. package/esm/utils/visualization_class.js +6 -6
  322. package/esm/utils/visualization_properties.d.ts.map +1 -1
  323. package/esm/utils/visualization_properties.js +2 -2
  324. package/package.json +21 -21
  325. package/styles/css/catalog.css +1 -9
  326. package/styles/css/catalog.css.map +1 -1
  327. package/styles/css/delete_report_dialog.css +16 -0
  328. package/styles/css/delete_report_dialog.css.map +1 -1
  329. package/styles/css/editor_canvas.css +0 -4
  330. package/styles/css/editor_canvas.css.map +1 -1
  331. package/styles/css/editor_header.css +80 -71
  332. package/styles/css/editor_header.css.map +1 -1
  333. package/styles/css/export.css +4 -8
  334. package/styles/css/export.css.map +1 -1
  335. package/styles/css/main.css +116 -113
  336. package/styles/css/main.css.map +1 -1
  337. package/styles/css/open_visualizations.css +11 -11
  338. package/styles/css/open_visualizations.css.map +1 -1
  339. package/styles/css/save_report_from_kd_dialog.css +6 -0
  340. package/styles/css/save_report_from_kd_dialog.css.map +1 -1
  341. package/styles/scss/_component_overrides.scss +0 -10
  342. package/styles/scss/catalog.scss +0 -1
  343. package/styles/scss/delete_report_dialog.scss +21 -1
  344. package/styles/scss/editor_canvas.scss +0 -4
  345. package/styles/scss/editor_header.scss +85 -83
  346. package/styles/scss/export.scss +42 -40
  347. package/styles/scss/open_visualizations.scss +4 -3
  348. package/styles/scss/save_report_from_kd_dialog.scss +8 -0
  349. package/esm/bearLegacyFunctions.d.ts +0 -22
  350. package/esm/bearLegacyFunctions.d.ts.map +0 -1
  351. package/esm/bearLegacyFunctions.js +0 -35
  352. package/esm/components/catalog/blocks/CreateMeasureLink.d.ts +0 -7
  353. package/esm/components/catalog/blocks/CreateMeasureLink.d.ts.map +0 -1
  354. package/esm/components/catalog/blocks/CreateMeasureLink.js +0 -17
  355. package/esm/sagas/application_redirect_sagas.d.ts +0 -18
  356. package/esm/sagas/application_redirect_sagas.d.ts.map +0 -1
  357. package/esm/sagas/application_redirect_sagas.js +0 -68
  358. package/esm/selectors/data_page_selector.d.ts +0 -44
  359. package/esm/selectors/data_page_selector.d.ts.map +0 -1
  360. package/esm/selectors/data_page_selector.js +0 -6
  361. package/esm/utils/sso.d.ts +0 -3
  362. package/esm/utils/sso.d.ts.map +0 -1
  363. package/esm/utils/sso.js +0 -5
  364. package/esm/utils/uri.d.ts +0 -2
  365. package/esm/utils/uri.d.ts.map +0 -1
  366. package/esm/utils/uri.js +0 -7
@@ -1,9 +1,10 @@
1
1
  // (C) 2007-2026 GoodData Corporation
2
2
  import invariant from "invariant";
3
- import { cloneDeep, isEmpty, negate, omit, pick, pickBy } from "lodash-es";
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) && !isEmpty(emptyValueHandlingProp)) {
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) && !isEmpty(emptyValueHandlingProp)) {
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 (isEmpty(condition)) {
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 = isEmpty(attributes) ? {} : { attributes: fromSdkModelDimensionality(attributes) };
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
- * Rewrites the stored filters so that every representation of the same empty date values mode compares
1102
- * equal: the legacy `""` attribute filter is folded into its date filter's `emptyValueHandling` (the way
1103
- * the reader does), All time with a mode becomes the ALL_TIME_GRANULARITY filter whether it is stored with
1104
- * bounds or without, and the `include` default is dropped as the writer drops it. Only for comparing
1105
- * stored content, the result is never saved.
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: { ...omit(filter.absoluteDateFilter, "emptyValueHandling"), ...mode },
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
- if (isAllTime && !isEmpty(mode)) {
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: { ...omit(filter.relativeDateFilter, "emptyValueHandling"), ...mode },
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(cloneDeep(mdObject));
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) => omit(bucketItem, ["measure.format"]);
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 omit(bucket, ["totals"]);
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;AA4E7B,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAEjF,OAAO,EAAoC,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEtF,MAAM,WAAW,WAAW;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC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,GAAG,iBAAiB,CAO7E;AA4BD,wBAAgB,eAAe,CAAC,WAAW,EAAE,oBAAoB,EAAE,YAAY,EAAE,oBAAoB,WASpG"}
@@ -1,10 +1,11 @@
1
1
  // (C) 2007-2026 GoodData Corporation
2
2
  import invariant from "invariant";
3
- import { findKey, isEqual, keyBy } from "lodash-es";
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 && isEqual(firstPreset.interval, secondPreset.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 = isEqual(firstPreset.boundedFilter, secondPreset.boundedFilter);
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":"AAKA,OAAO,EAAE,KAAK,wBAAwB,EAAE,KAAK,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAEzG,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAMpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAE5D,MAAM,WAAW,y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,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 { omit } from "lodash-es";
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
- ...omit(data, "insightId"),
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").ForkEffect<never>, void, unknown>;
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":"AAIA,OAAO,EAIH,KAAK,0BAA0B,EAgBlC,MAAM,yBAAyB,CAAC;AAYjC,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;AAqDD,wBAAiB,qBAAqB,CAAC,EACnC,OAAO,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,GACxD,EAAE,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBA4DxB;AAED,wBAAiB,oBAAoB,6EAEpC"}
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, takeEvery } from "redux-saga/effects";
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
- yield takeEvery(PostEventActionTypeKeys.COMMAND_RECEIVED, handleReceivedCommand);
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":"AAIA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAI/C,OAAO,EACH,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,E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AAC,2BAA2B,CAAC,EAAE,wBAAwB,4IAMlG;AAED,wBAAiB,8BAA8B,CAAC,kBAAkB,EAAE,0BAA0B,EAAE,qXAsF/F;AAED,wBAAiB,qBAAqB,6EAcrC"}
1
+ {"version":3,"file":"control_filtering_saga.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/sagas/control_filtering_saga.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAI/C,OAAO,EACH,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAKhC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEH,KAAK,oCAAoC,EACzC,KAAK,0BAA0B,EAC/B,KAAK,gCAAgC,EACrC,KAAK,yBAAyB,EAGjC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAEH,KAAK,mCAAmC,EACxC,KAAK,wBAAwB,EAC7B,KAAK,gCAAgC,EACrC,KAAK,MAAM,EAMd,MAAM,qBAAqB,CAAC;AAgC7B,OAAO,EACH,KAAK,sCAAsC,EAC3C,KAAK,mCAAmC,EACxC,KAAK,mCAAmC,EACxC,KAAK,8BAA8B,EAEnC,KAAK,+BAA+B,EACpC,KAAK,iCAAiC,EAGzC,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EACH,wBAAwB,EAE3B,MAAM,+DAA+D,CAAC;AAavE,OAAO,EAA+B,KAAK,OAAO,EAAE,MAAM,4CAA4C,CAAC;AACvG,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAuB,KAAK,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAGrF,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAOvF,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAGH,KAAK,mCAAmC,EAIxC,KAAK,gCAA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EAAE,OAAO,WAiE/B;AAED,wBAAgB,wBAAwB,CACpC,KAAK,EAAE,SAAS,EAChB,eAAe,EAAE,+BAA+B,EAAE,EAClD,WAAW,EAAE,eAAe,GAC7B,mBAAmB,CAqCrB;AA0ED,wBAAiB,kCAAkC,CAAC,EAChD,OAAO,EAAE,EAAE,OAAO,EAAE,kBAAkB,EAAE,GAC3C,EAAE,mCAAmC;;;;;;;;;;;;;;;;;;6DA8DrC;AA+BD,wBAAiB,yBAAyB,CAAC,WAAW,EAAE,qBAAqB,EAAE,6EAmC9E;AAED,wBAAiB,2BAA2B,CAAC,2BAA2B,CAAC,EAAE,wBAAwB,4IAMlG;AAED,wBAAiB,8BAA8B,CAAC,kBAAkB,EAAE,0BAA0B,EAAE,qXAsF/F;AAED,wBAAiB,qBAAqB,6EAcrC"}
@@ -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
- uniq(attributeLocalIdentifiers).length !== attributeLocalIdentifiers.length;
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] = partition(externalObjRefs, (ref) => isComputedAttributeRef(ref));
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 (uniq(uris).length !== uris.length) {
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 (uniqBy(identifiers, ({ identifier, dfType }) => `${dfType}.${identifier}`).length !==
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] = partition(identifiers, ({ dfType }) => dfType === "computedAttribute");
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>>, 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,+IAkBrC"}
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":"AAGA,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;AAI1C,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
+ {"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
- : omit(SUPPORTED_DATE_GRANULARITY, ["GDC.time.second"]);
30
+ : _omit(SUPPORTED_DATE_GRANULARITY, ["GDC.time.second"]);
31
31
  }
32
- return omit(SUPPORTED_DATE_GRANULARITY, ["GDC.time.second", "GDC.time.minute", "GDC.time.hour"]);
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 || {};
@@ -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]>>, sagaMiddleware: import("redux-saga").SagaMiddleware<object>, startSagas: () => import("redux-saga").Task<any>, subscribeControls: () => (() => void);
3
+ }>, import("redux").StoreEnhancer]>>, startSagas: () => import("redux-saga").Task<any>, subscribeControls: () => (() => void);
4
4
  //# sourceMappingURL=reduxStore.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reduxStore.d.ts","sourceRoot":"","sources":["../src/reduxStore.ts"],"names":[],"mappings":"AASA,eAAO,MAAQ,KAAK;;sCAAE,cAAc,+CAAE,UAAU,wCAAE,iBAAiB,oBAAkB,CAAC"}
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, sagaMiddleware, startSagas, subscribeControls } = createStore();
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: only the standalone header showed it.
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: only the standalone header showed it.
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;AAsB3E,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,yHA2ChC"}
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, hasWorkspaceAccess, stashedProjectUri, } from "../../selectors/bootstrap_selector.js";
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").CallEffect<boolean> | import("redux-saga/effects").SelectEffect, void, IAppState & (boolean & ((params: import("../utils/location.js").IUriResolverParams) => void))>;
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;AAGnD,wBAAiB,cAAc,CAAC,MAAM,EAAE,qBAAqB,+WAc5D;AAED,wBAAiB,mBAAmB,6EAEnC"}
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 loggedViaSso = yield call(isLoggedInViaSso);
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
  }