@gooddata/sdk-ui-analytical-designer 11.69.0-alpha.3 → 11.69.0-alpha.5

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 (142) hide show
  1. package/NOTICE +246 -47
  2. package/esm/backend.d.ts +15 -1
  3. package/esm/backend.d.ts.map +1 -1
  4. package/esm/backend.js +26 -2
  5. package/esm/components/Report.d.ts +3 -1
  6. package/esm/components/Report.d.ts.map +1 -1
  7. package/esm/components/Report.js +13 -4
  8. package/esm/components/filterBar/filterBarDropdown/FilterBarDropdownBody.d.ts +2 -2
  9. package/esm/components/filterBar/filterBarDropdown/FilterBarDropdownBody.d.ts.map +1 -1
  10. package/esm/components/filterBar/filterBarDropdown/FilterBarParameterPicker.d.ts +2 -2
  11. package/esm/components/filterBar/filterBarDropdown/FilterBarParameterPicker.d.ts.map +1 -1
  12. package/esm/components/report/executionProgress/ExecutionProgressPanel.d.ts +12 -0
  13. package/esm/components/report/executionProgress/ExecutionProgressPanel.d.ts.map +1 -0
  14. package/esm/components/report/executionProgress/ExecutionProgressPanel.js +157 -0
  15. package/esm/components/report/executionProgress/ExecutionProgressSteps.d.ts +17 -0
  16. package/esm/components/report/executionProgress/ExecutionProgressSteps.d.ts.map +1 -0
  17. package/esm/components/report/executionProgress/ExecutionProgressSteps.js +122 -0
  18. package/esm/components/report/executionProgress/ExecutionStats.d.ts +10 -0
  19. package/esm/components/report/executionProgress/ExecutionStats.d.ts.map +1 -0
  20. package/esm/components/report/executionProgress/ExecutionStats.js +105 -0
  21. package/esm/components/report/executionProgress/timeline.d.ts +34 -0
  22. package/esm/components/report/executionProgress/timeline.d.ts.map +1 -0
  23. package/esm/components/report/executionProgress/timeline.js +51 -0
  24. package/esm/postMessageApi/actions/action_types.d.ts +1 -0
  25. package/esm/postMessageApi/actions/action_types.d.ts.map +1 -1
  26. package/esm/postMessageApi/actions/action_types.js +1 -0
  27. package/esm/postMessageApi/actions/command_error_actions.d.ts +7 -0
  28. package/esm/postMessageApi/actions/command_error_actions.d.ts.map +1 -1
  29. package/esm/postMessageApi/actions/command_error_actions.js +7 -0
  30. package/esm/postMessageApi/outgoing/command_error_events.d.ts +1 -0
  31. package/esm/postMessageApi/outgoing/command_error_events.d.ts.map +1 -1
  32. package/esm/postMessageApi/outgoing/command_error_events.js +7 -0
  33. package/esm/postMessageApi/outgoing/save_insight_events.d.ts +1 -0
  34. package/esm/postMessageApi/outgoing/save_insight_events.d.ts.map +1 -1
  35. package/esm/postMessageApi/outgoing/save_insight_events.js +7 -0
  36. package/esm/postMessageApi/outgoing/supported_commands_events.d.ts.map +1 -1
  37. package/esm/postMessageApi/outgoing/supported_commands_events.js +0 -4
  38. package/esm/postMessageApi/sagas/command_error_saga.d.ts +3 -2
  39. package/esm/postMessageApi/sagas/command_error_saga.d.ts.map +1 -1
  40. package/esm/postMessageApi/sagas/command_error_saga.js +6 -1
  41. package/esm/postMessageApi/sagas/command_received_saga.d.ts +18 -4
  42. package/esm/postMessageApi/sagas/command_received_saga.d.ts.map +1 -1
  43. package/esm/postMessageApi/sagas/command_received_saga.js +23 -16
  44. package/esm/postMessageApi/sagas/incoming_command_sagas.d.ts +5 -2
  45. package/esm/postMessageApi/sagas/incoming_command_sagas.d.ts.map +1 -1
  46. package/esm/postMessageApi/sagas/save_insight_saga.d.ts.map +1 -1
  47. package/esm/postMessageApi/sagas/save_insight_saga.js +11 -2
  48. package/esm/reducers/combined_root_reducer.d.ts +3 -0
  49. package/esm/reducers/combined_root_reducer.d.ts.map +1 -1
  50. package/esm/reducers/combined_root_reducer.js +2 -0
  51. package/esm/sagas/catalog/catalog_saga.d.ts +1 -1
  52. package/esm/sagas/catalog/catalog_saga.d.ts.map +1 -1
  53. package/esm/sagas/catalog/catalog_saga.js +4 -3
  54. package/esm/sagas/open_report_sagas.d.ts +1 -1
  55. package/esm/sagas/open_report_sagas.d.ts.map +1 -1
  56. package/esm/sagas/sagas.d.ts +5 -2
  57. package/esm/sagas/sagas.d.ts.map +1 -1
  58. package/esm/sagas/sagas.js +4 -0
  59. package/esm/selectors/feature_flag_selector.d.ts +23 -2
  60. package/esm/selectors/feature_flag_selector.d.ts.map +1 -1
  61. package/esm/selectors/feature_flag_selector.js +2 -0
  62. package/esm/selectors/report_visualization_selector.d.ts +12 -0
  63. package/esm/selectors/report_visualization_selector.d.ts.map +1 -1
  64. package/esm/services/buckets_service.d.ts +1 -0
  65. package/esm/services/buckets_service.d.ts.map +1 -1
  66. package/esm/store/catalog/catalog_reducer.d.ts +2 -2
  67. package/esm/store/catalog/catalog_reducer.d.ts.map +1 -1
  68. package/esm/store/catalog/catalog_selector.d.ts +4 -4
  69. package/esm/store/catalog/catalog_store_actions.d.ts +3 -3
  70. package/esm/store/catalog/catalog_store_actions.d.ts.map +1 -1
  71. package/esm/store/catalog/catalog_types.d.ts +2 -2
  72. package/esm/store/catalog/catalog_types.d.ts.map +1 -1
  73. package/esm/store/execution_progress/execution_loading_view_model.d.ts +72 -0
  74. package/esm/store/execution_progress/execution_loading_view_model.d.ts.map +1 -0
  75. package/esm/store/execution_progress/execution_loading_view_model.js +122 -0
  76. package/esm/store/execution_progress/execution_progress_actions.d.ts +42 -0
  77. package/esm/store/execution_progress/execution_progress_actions.d.ts.map +1 -0
  78. package/esm/store/execution_progress/execution_progress_actions.js +19 -0
  79. package/esm/store/execution_progress/execution_progress_mock.d.ts +31 -0
  80. package/esm/store/execution_progress/execution_progress_mock.d.ts.map +1 -0
  81. package/esm/store/execution_progress/execution_progress_mock.js +458 -0
  82. package/esm/store/execution_progress/execution_progress_saga.d.ts +56 -0
  83. package/esm/store/execution_progress/execution_progress_saga.d.ts.map +1 -0
  84. package/esm/store/execution_progress/execution_progress_saga.js +226 -0
  85. package/esm/store/execution_progress/execution_progress_selectors.d.ts +66 -0
  86. package/esm/store/execution_progress/execution_progress_selectors.d.ts.map +1 -0
  87. package/esm/store/execution_progress/execution_progress_selectors.js +7 -0
  88. package/esm/store/execution_progress/execution_progress_slice.d.ts +4 -0
  89. package/esm/store/execution_progress/execution_progress_slice.d.ts.map +1 -0
  90. package/esm/store/execution_progress/execution_progress_slice.js +95 -0
  91. package/esm/store/execution_progress/execution_progress_state.d.ts +54 -0
  92. package/esm/store/execution_progress/execution_progress_state.d.ts.map +1 -0
  93. package/esm/store/execution_progress/execution_progress_state.js +12 -0
  94. package/esm/store/execution_progress/execution_progress_view_model.d.ts +136 -0
  95. package/esm/store/execution_progress/execution_progress_view_model.d.ts.map +1 -0
  96. package/esm/store/execution_progress/execution_progress_view_model.js +378 -0
  97. package/esm/store/execution_progress/execution_stats_view_model.d.ts +42 -0
  98. package/esm/store/execution_progress/execution_stats_view_model.d.ts.map +1 -0
  99. package/esm/store/execution_progress/execution_stats_view_model.js +51 -0
  100. package/esm/store/filter_bar/parameter_filter_actions.d.ts +3 -3
  101. package/esm/store/filter_bar/parameter_filter_actions.d.ts.map +1 -1
  102. package/esm/store/filter_bar/parameter_filter_service.d.ts +3 -3
  103. package/esm/store/filter_bar/parameter_filter_service.d.ts.map +1 -1
  104. package/esm/store/filter_bar/parameter_filter_types.d.ts +2 -2
  105. package/esm/store/filter_bar/parameter_filter_types.d.ts.map +1 -1
  106. package/esm/store/types.d.ts +3 -0
  107. package/esm/store/types.d.ts.map +1 -1
  108. package/esm/tests/parameter.test.helpers.d.ts +2 -2
  109. package/esm/tests/parameter.test.helpers.d.ts.map +1 -1
  110. package/esm/translations/de-DE.json +49 -0
  111. package/esm/translations/en-AU.json +49 -0
  112. package/esm/translations/en-GB.json +49 -0
  113. package/esm/translations/en-US.json +180 -0
  114. package/esm/translations/es-419.json +49 -0
  115. package/esm/translations/es-ES.json +49 -0
  116. package/esm/translations/fi-FI.json +49 -0
  117. package/esm/translations/fr-CA.json +49 -0
  118. package/esm/translations/fr-FR.json +49 -0
  119. package/esm/translations/id-ID.json +49 -0
  120. package/esm/translations/it-IT.json +49 -0
  121. package/esm/translations/ja-JP.json +49 -0
  122. package/esm/translations/ko-KR.json +48 -0
  123. package/esm/translations/nl-NL.json +49 -0
  124. package/esm/translations/pl-PL.json +49 -0
  125. package/esm/translations/pt-BR.json +49 -0
  126. package/esm/translations/pt-PT.json +49 -0
  127. package/esm/translations/ru-RU.json +49 -0
  128. package/esm/translations/sl-SI.json +49 -0
  129. package/esm/translations/th-TH.json +49 -0
  130. package/esm/translations/tr-TR.json +49 -0
  131. package/esm/translations/uk-UA.json +49 -0
  132. package/esm/translations/vi-VN.json +49 -0
  133. package/esm/translations/zh-HK.json +49 -0
  134. package/esm/translations/zh-Hans.json +49 -0
  135. package/esm/translations/zh-Hant.json +49 -0
  136. package/package.json +21 -22
  137. package/styles/css/execution_progress.css +486 -0
  138. package/styles/css/execution_progress.css.map +1 -0
  139. package/styles/css/main.css +485 -0
  140. package/styles/css/main.css.map +1 -1
  141. package/styles/scss/_ad_partials.scss +1 -0
  142. package/styles/scss/execution_progress.scss +547 -0
@@ -0,0 +1,51 @@
1
+ // (C) 2026 GoodData Corporation
2
+ /**
3
+ * Bar geometry of the execution progress panel. Adapted from the gen-ai interaction timeline
4
+ * (sdk-ui-gen-ai components/intelligence/data/timeline.ts): a floor keeps very short items visible
5
+ * next to the long ones.
6
+ */
7
+ /** Floor of an item's share of the track, in percent. */
8
+ export const MIN_BAR_WIDTH_PCT = 1.5;
9
+ /**
10
+ * One segment per item, tiling the whole track in order (the overall step timeline). Items that
11
+ * have not started get no segment.
12
+ */
13
+ export function computeSegments(items, now) {
14
+ const timed = items.filter((item) => item.startedAt !== undefined);
15
+ const durations = timed.map((item) => Math.max((item.finishedAt ?? now) - item.startedAt, 0));
16
+ const total = durations.reduce((sum, duration) => sum + duration, 0);
17
+ if (total <= 0) {
18
+ return timed.map((item) => ({ id: item.id, widthPct: 100 / timed.length }));
19
+ }
20
+ const widths = normalizeToTotal(durations.map((duration) => Math.max((duration / total) * 100, MIN_BAR_WIDTH_PCT)), 100);
21
+ return timed.map((item, index) => ({ id: item.id, widthPct: widths[index] }));
22
+ }
23
+ /**
24
+ * One bar per item placed on the shared time span `[spanStart, spanEnd]` — the parallel data
25
+ * source queries of a federated execution.
26
+ */
27
+ export function computeGanttBars(items, spanStart, spanEnd) {
28
+ const span = Math.max(spanEnd - spanStart, 1);
29
+ return items
30
+ .filter((item) => item.startedAt !== undefined)
31
+ .map((item) => {
32
+ const start = Math.min(Math.max(item.startedAt - spanStart, 0), span);
33
+ const end = Math.min(Math.max((item.finishedAt ?? spanEnd) - spanStart, start), span);
34
+ const offsetPct = (start / span) * 100;
35
+ const widthPct = Math.min(Math.max(((end - start) / span) * 100, MIN_BAR_WIDTH_PCT), 100 - offsetPct);
36
+ return { id: item.id, offsetPct, widthPct };
37
+ });
38
+ }
39
+ function normalizeToTotal(weights, target) {
40
+ const sum = weights.reduce((total, weight) => total + weight, 0);
41
+ if (sum <= 0) {
42
+ return weights;
43
+ }
44
+ return weights.map((weight) => (weight / sum) * target);
45
+ }
46
+ export function formatDuration(ms) {
47
+ if (ms < 1000) {
48
+ return `${Math.max(Math.round(ms), 0)} ms`;
49
+ }
50
+ return `${(ms / 1000).toFixed(1)} s`;
51
+ }
@@ -2,6 +2,7 @@ export declare enum PostEventActionTypeKeys {
2
2
  COMMAND_RECEIVED = "COMMAND_RECEIVED",
3
3
  INSECURE_COMMAND_FAILED = "INSECURE_COMMAND_FAILED",
4
4
  HOST_VERIFICATION_FAILED = "HOST_VERIFICATION_FAILED",
5
+ HOST_VERIFICATION_ERRORED = "HOST_VERIFICATION_ERRORED",
5
6
  OPEN_INSIGHT_REQUESTED = "OPEN_INSIGHT_REQUESTED",
6
7
  OPEN_INSIGHT_EVENT_FAILED = "OPEN_INSIGHT_EVENT_FAILED",
7
8
  OPEN_INSIGHT_EVENT_FINISHED = "OPEN_INSIGHT_EVENT_FINISHED",
@@ -1 +1 @@
1
- {"version":3,"file":"action_types.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/actions/action_types.ts"],"names":[],"mappings":"AAEA,oBAAY,uBAAuB;IAC/B,gBAAgB,qBAAqB;IACrC,uBAAuB,4BAA4B;IACnD,wBAAwB,6BAA6B;IACrD,sBAAsB,2BAA2B;IACjD,yBAAyB,8BAA8B;IACvD,2BAA2B,gCAAgC;IAC3D,uBAAuB,4BAA4B;IACnD,oBAAoB,yBAAyB;IAC7C,sBAAsB,2BAA2B;IACjD,+BAA+B,oCAAoC;IACnE,4BAA4B,iCAAiC;IAC7D,8BAA8B,mCAAmC;IACjE,sBAAsB,2BAA2B;IACjD,mBAAmB,wBAAwB;IAC3C,qBAAqB,0BAA0B;IAC/C,yBAAyB,8BAA8B;IACvD,wBAAwB,6BAA6B;IACrD,qBAAqB,0BAA0B;IAC/C,uBAAuB,4BAA4B;IACnD,cAAc,mBAAmB;IACjC,WAAW,gBAAgB;IAC3B,aAAa,kBAAkB;IAC/B,cAAc,mBAAmB;IACjC,WAAW,gBAAgB;IAC3B,aAAa,kBAAkB;IAC/B,4BAA4B,iCAAiC;IAC7D,yBAAyB,8BAA8B;IACvD,2BAA2B,gCAAgC;IAC3D,+BAA+B,oCAAoC;IACnE,4BAA4B,iCAAiC;IAC7D,8BAA8B,mCAAmC;IACjE,yBAAyB,8BAA8B;IACvD,4BAA4B,iCAAiC;CAChE"}
1
+ {"version":3,"file":"action_types.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/actions/action_types.ts"],"names":[],"mappings":"AAEA,oBAAY,uBAAuB;IAC/B,gBAAgB,qBAAqB;IACrC,uBAAuB,4BAA4B;IACnD,wBAAwB,6BAA6B;IACrD,yBAAyB,8BAA8B;IACvD,sBAAsB,2BAA2B;IACjD,yBAAyB,8BAA8B;IACvD,2BAA2B,gCAAgC;IAC3D,uBAAuB,4BAA4B;IACnD,oBAAoB,yBAAyB;IAC7C,sBAAsB,2BAA2B;IACjD,+BAA+B,oCAAoC;IACnE,4BAA4B,iCAAiC;IAC7D,8BAA8B,mCAAmC;IACjE,sBAAsB,2BAA2B;IACjD,mBAAmB,wBAAwB;IAC3C,qBAAqB,0BAA0B;IAC/C,yBAAyB,8BAA8B;IACvD,wBAAwB,6BAA6B;IACrD,qBAAqB,0BAA0B;IAC/C,uBAAuB,4BAA4B;IACnD,cAAc,mBAAmB;IACjC,WAAW,gBAAgB;IAC3B,aAAa,kBAAkB;IAC/B,cAAc,mBAAmB;IACjC,WAAW,gBAAgB;IAC3B,aAAa,kBAAkB;IAC/B,4BAA4B,iCAAiC;IAC7D,yBAAyB,8BAA8B;IACvD,2BAA2B,gCAAgC;IAC3D,+BAA+B,oCAAoC;IACnE,4BAA4B,iCAAiC;IAC7D,8BAA8B,mCAAmC;IACjE,yBAAyB,8BAA8B;IACvD,4BAA4B,iCAAiC;CAChE"}
@@ -4,6 +4,7 @@ export var PostEventActionTypeKeys;
4
4
  PostEventActionTypeKeys["COMMAND_RECEIVED"] = "COMMAND_RECEIVED";
5
5
  PostEventActionTypeKeys["INSECURE_COMMAND_FAILED"] = "INSECURE_COMMAND_FAILED";
6
6
  PostEventActionTypeKeys["HOST_VERIFICATION_FAILED"] = "HOST_VERIFICATION_FAILED";
7
+ PostEventActionTypeKeys["HOST_VERIFICATION_ERRORED"] = "HOST_VERIFICATION_ERRORED";
7
8
  PostEventActionTypeKeys["OPEN_INSIGHT_REQUESTED"] = "OPEN_INSIGHT_REQUESTED";
8
9
  PostEventActionTypeKeys["OPEN_INSIGHT_EVENT_FAILED"] = "OPEN_INSIGHT_EVENT_FAILED";
9
10
  PostEventActionTypeKeys["OPEN_INSIGHT_EVENT_FINISHED"] = "OPEN_INSIGHT_EVENT_FINISHED";
@@ -6,4 +6,11 @@ export interface IInsecureCommandFailedActionPayload extends IPostMessageContext
6
6
  export declare const insecureCommandFailed: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[commandType: string, contextId?: string | undefined], IInsecureCommandFailedActionPayload, PostEventActionTypeKeys.INSECURE_COMMAND_FAILED, never, never>;
7
7
  export type IInsecureCommandFailedAction = ReturnType<typeof insecureCommandFailed>;
8
8
  export declare const hostVerificationFailed: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[contextId?: string | undefined], IPostMessageContextPayload, PostEventActionTypeKeys.HOST_VERIFICATION_FAILED, never, never>;
9
+ /**
10
+ * The origin check did not give an answer, for example because of a network error. It is not a
11
+ * denial: the next command checks the origin again.
12
+ */
13
+ export declare const hostVerificationErrored: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[contextId?: string | undefined], IPostMessageContextPayload, PostEventActionTypeKeys.HOST_VERIFICATION_ERRORED, never, never>;
14
+ export type IHostVerificationFailedAction = ReturnType<typeof hostVerificationFailed>;
15
+ export type IHostVerificationErroredAction = ReturnType<typeof hostVerificationErrored>;
9
16
  //# sourceMappingURL=command_error_actions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"command_error_actions.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/actions/command_error_actions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAE1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAM5D,MAAM,WAAW,mCAAoC,SAAQ,0BAA0B;IACnF,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,qBAAqB,wNASjC,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpF,eAAO,MAAM,sBAAsB,2LAKlC,CAAC"}
1
+ {"version":3,"file":"command_error_actions.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/actions/command_error_actions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAE1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAM5D,MAAM,WAAW,mCAAoC,SAAQ,0BAA0B;IACnF,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,qBAAqB,wNASjC,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpF,eAAO,MAAM,sBAAsB,2LAKlC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,4LAKnC,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtF,MAAM,MAAM,8BAA8B,GAAG,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
@@ -12,3 +12,10 @@ export const insecureCommandFailed = createAction(PostEventActionTypeKeys.INSECU
12
12
  export const hostVerificationFailed = createAction(PostEventActionTypeKeys.HOST_VERIFICATION_FAILED, (contextId = DEFAULT_POST_MESSAGE_CONTEXT_ID) => ({
13
13
  payload: createPostMessageContextFromId(contextId),
14
14
  }));
15
+ /**
16
+ * The origin check did not give an answer, for example because of a network error. It is not a
17
+ * denial: the next command checks the origin again.
18
+ */
19
+ export const hostVerificationErrored = createAction(PostEventActionTypeKeys.HOST_VERIFICATION_ERRORED, (contextId = DEFAULT_POST_MESSAGE_CONTEXT_ID) => ({
20
+ payload: createPostMessageContextFromId(contextId),
21
+ }));
@@ -1,3 +1,4 @@
1
1
  export declare function insecureCommandFailedEvent(commandType: string, contextId?: string): void;
2
2
  export declare function hostDomainVerificationFailedEvent(contextId?: string): void;
3
+ export declare function hostDomainVerificationErroredEvent(contextId?: string): void;
3
4
  //# sourceMappingURL=command_error_events.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"command_error_events.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/outgoing/command_error_events.ts"],"names":[],"mappings":"AAMA,wBAAgB,0BAA0B,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAMxF;AAED,wBAAgB,iCAAiC,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAM1E"}
1
+ {"version":3,"file":"command_error_events.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/outgoing/command_error_events.ts"],"names":[],"mappings":"AAMA,wBAAgB,0BAA0B,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAMxF;AAED,wBAAgB,iCAAiC,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAM1E;AAED,wBAAgB,kCAAkC,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAM3E"}
@@ -15,3 +15,10 @@ export function hostDomainVerificationFailedEvent(contextId) {
15
15
  };
16
16
  adPostEvent(GdcEventType.AppCommandFailed, commandError, contextId);
17
17
  }
18
+ export function hostDomainVerificationErroredEvent(contextId) {
19
+ const commandError = {
20
+ errorCode: GdcErrorType.RuntimeError,
21
+ errorMessage: `Could not check if the host domain is allowed to control embedded ${GdcProductName.ANALYTICAL_DESIGNER}. Try the command again.`,
22
+ };
23
+ adPostEvent(GdcEventType.AppCommandFailed, commandError, contextId);
24
+ }
@@ -2,6 +2,7 @@ import { type GdcAdCommandType } from "@gooddata/sdk-embedding";
2
2
  import { type IInsight } from "@gooddata/sdk-model";
3
3
  import { type IVisualization } from "../../typings/bear/bearTypes.js";
4
4
  export declare function insightSavingInvalidState(postMessageContextId?: string): void;
5
+ export declare function insightSavingInvalidArgument(postMessageContextId?: string): void;
5
6
  export declare function insightSavingFailed(postMessageContextId?: string): void;
6
7
  /**
7
8
  * Emit an event to notify outer app that the currently edited insight is saved.
@@ -1 +1 @@
1
- {"version":3,"file":"save_insight_events.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/outgoing/save_insight_events.ts"],"names":[],"mappings":"AAEA,OAAO,EAEH,KAAK,gBAAgB,EAKxB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAGpD,OAAO,EAAE,KAAK,cAAc,EAAmB,MAAM,iCAAiC,CAAC;AAIvF,wBAAgB,yBAAyB,CAAC,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAM7E;AAED,wBAAgB,mBAAmB,CAAC,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAMvE;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CACxB,iBAAiB,EAAE,gBAAgB,EAAE,EACrC,mCAAmC,EAAE,cAAc,GAAG,QAAQ,EAC9D,oBAAoB,CAAC,EAAE,MAAM,GAC9B,IAAI,CA+CN"}
1
+ {"version":3,"file":"save_insight_events.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/outgoing/save_insight_events.ts"],"names":[],"mappings":"AAEA,OAAO,EAEH,KAAK,gBAAgB,EAKxB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAGpD,OAAO,EAAE,KAAK,cAAc,EAAmB,MAAM,iCAAiC,CAAC;AAIvF,wBAAgB,yBAAyB,CAAC,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAM7E;AAED,wBAAgB,4BAA4B,CAAC,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAMhF;AAED,wBAAgB,mBAAmB,CAAC,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAMvE;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CACxB,iBAAiB,EAAE,gBAAgB,EAAE,EACrC,mCAAmC,EAAE,cAAc,GAAG,QAAQ,EAC9D,oBAAoB,CAAC,EAAE,MAAM,GAC9B,IAAI,CA+CN"}
@@ -10,6 +10,13 @@ export function insightSavingInvalidState(postMessageContextId) {
10
10
  };
11
11
  adPostEvent(GdcEventType.AppCommandFailed, error, postMessageContextId);
12
12
  }
13
+ export function insightSavingInvalidArgument(postMessageContextId) {
14
+ const error = {
15
+ errorCode: GdcErrorType.InvalidArgument,
16
+ errorMessage: "The insight title must not be empty",
17
+ };
18
+ adPostEvent(GdcEventType.AppCommandFailed, error, postMessageContextId);
19
+ }
13
20
  export function insightSavingFailed(postMessageContextId) {
14
21
  const error = {
15
22
  errorCode: GdcErrorType.RuntimeError,
@@ -1 +1 @@
1
- {"version":3,"file":"supported_commands_events.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/outgoing/supported_commands_events.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAI3D;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,gBAAgB,EAI5C,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,gBAAgB,EAgBhD,CAAC;AAEF,MAAM,WAAW,sBAAsB;IACnC,YAAY,EAAE,OAAO,CAAC;IACtB,uBAAuB,EAAE,OAAO,CAAC;IACjC,8BAA8B,EAAE,OAAO,CAAC;IACxC,sBAAsB,EAAE,OAAO,CAAC;IAChC,wBAAwB,EAAE,OAAO,CAAC;IAClC,wBAAwB,EAAE,OAAO,CAAC;IAClC,eAAe,EAAE,OAAO,CAAC;IACzB,eAAe,EAAE,OAAO,CAAC;IACzB,2BAA2B,EAAE,OAAO,CAAC;IACrC,8BAA8B,EAAE,OAAO,CAAC;IACxC,sBAAsB,EAAE,OAAO,CAAC;IAChC,sBAAsB,EAAE,OAAO,CAAC;CACnC;AAED,wBAAgB,oBAAoB,CAAC,EACjC,uBAAuB,EACvB,8BAA8B,EAC9B,sBAAsB,EACtB,wBAAwB,EACxB,wBAAwB,EACxB,eAAe,EACf,eAAe,EACf,2BAA2B,EAC3B,8BAA8B,EAC9B,sBAAsB,EACtB,sBAAsB,GACzB,EAAE,sBAAsB,GAAG,gBAAgB,EAAE,CA8D7C;AAED,wBAAgB,uBAAuB,CAAC,qBAAqB,EAAE,sBAAsB,GAAG,IAAI,CAQ3F"}
1
+ {"version":3,"file":"supported_commands_events.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/outgoing/supported_commands_events.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAI3D;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,gBAAgB,EAI5C,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,gBAAgB,EAehD,CAAC;AAEF,MAAM,WAAW,sBAAsB;IACnC,YAAY,EAAE,OAAO,CAAC;IACtB,uBAAuB,EAAE,OAAO,CAAC;IACjC,8BAA8B,EAAE,OAAO,CAAC;IACxC,sBAAsB,EAAE,OAAO,CAAC;IAChC,wBAAwB,EAAE,OAAO,CAAC;IAClC,wBAAwB,EAAE,OAAO,CAAC;IAClC,eAAe,EAAE,OAAO,CAAC;IACzB,eAAe,EAAE,OAAO,CAAC;IACzB,2BAA2B,EAAE,OAAO,CAAC;IACrC,8BAA8B,EAAE,OAAO,CAAC;IACxC,sBAAsB,EAAE,OAAO,CAAC;IAChC,sBAAsB,EAAE,OAAO,CAAC;CACnC;AAED,wBAAgB,oBAAoB,CAAC,EACjC,uBAAuB,EACvB,8BAA8B,EAC9B,sBAAsB,EACtB,wBAAwB,EACxB,wBAAwB,EACxB,eAAe,EACf,eAAe,EACf,2BAA2B,EAC3B,8BAA8B,EAC9B,sBAAsB,EACtB,sBAAsB,GACzB,EAAE,sBAAsB,GAAG,gBAAgB,EAAE,CA0D7C;AAED,wBAAgB,uBAAuB,CAAC,qBAAqB,EAAE,sBAAsB,GAAG,IAAI,CAQ3F"}
@@ -24,7 +24,6 @@ export const SUPPORTED_COMMANDS = [
24
24
  GdcAdCommandType.RemoveFilterContext,
25
25
  GdcAdCommandType.RequestCancellation,
26
26
  GdcAdCommandType.SetApiToken,
27
- GdcAdCommandType.AttributeHierarchyModified,
28
27
  GdcAdCommandType.SetTimezone,
29
28
  ];
30
29
  export function getAvailableCommands({ isClearInsightAvailable, isClearInsightContentAvailable, isSaveInsightAvailable, isSaveAsInsightAvailable, isExportInsightAvailable, isRedoAvailable, isUndoAvailable, isSetFilterContextAvailable, isRemoveFilterContextAvailable, isSetApiTokenAvailable, isEnableTimezoneChange, }) {
@@ -65,9 +64,6 @@ export function getAvailableCommands({ isClearInsightAvailable, isClearInsightCo
65
64
  case GdcAdCommandType.SetApiToken:
66
65
  isCommandAvailable = isSetApiTokenAvailable;
67
66
  break;
68
- case GdcAdCommandType.AttributeHierarchyModified:
69
- isCommandAvailable = true;
70
- break;
71
67
  case GdcAdCommandType.SetTimezone:
72
68
  isCommandAvailable = isEnableTimezoneChange;
73
69
  break;
@@ -1,5 +1,6 @@
1
- import { type IInsecureCommandFailedAction } from "../actions/command_error_actions.js";
1
+ import { type IHostVerificationErroredAction, type IHostVerificationFailedAction, type IInsecureCommandFailedAction } from "../actions/command_error_actions.js";
2
2
  export declare function handleNoPermissionToSecureCommand({ payload: { postMessageContext, commandType }, }: IInsecureCommandFailedAction): Generator<import("redux-saga/effects").CallEffect<void>, void, unknown>;
3
- export declare function handleHostVerificationFailed({ payload: { postMessageContext }, }: IInsecureCommandFailedAction): Generator<import("redux-saga/effects").CallEffect<void>, void, unknown>;
3
+ export declare function handleHostVerificationFailed({ payload: { postMessageContext }, }: IHostVerificationFailedAction): Generator<import("redux-saga/effects").CallEffect<void>, void, unknown>;
4
+ export declare function handleHostVerificationErrored({ payload: { postMessageContext }, }: IHostVerificationErroredAction): Generator<import("redux-saga/effects").CallEffect<void>, void, unknown>;
4
5
  export declare function watchInsecureCommand(): Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown>;
5
6
  //# sourceMappingURL=command_error_saga.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"command_error_saga.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/sagas/command_error_saga.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;AAQxF,wBAAiB,iCAAiC,CAAC,EAC/C,OAAO,EAAE,EAAE,kBAAkB,EAAE,WAAW,EAAE,GAC/C,EAAE,4BAA4B,2EAG9B;AAED,wBAAiB,4BAA4B,CAAC,EAC1C,OAAO,EAAE,EAAE,kBAAkB,EAAE,GAClC,EAAE,4BAA4B,2EAG9B;AAED,wBAAiB,oBAAoB,6EAGpC"}
1
+ {"version":3,"file":"command_error_saga.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/sagas/command_error_saga.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,KAAK,8BAA8B,EACnC,KAAK,6BAA6B,EAClC,KAAK,4BAA4B,EACpC,MAAM,qCAAqC,CAAC;AAS7C,wBAAiB,iCAAiC,CAAC,EAC/C,OAAO,EAAE,EAAE,kBAAkB,EAAE,WAAW,EAAE,GAC/C,EAAE,4BAA4B,2EAG9B;AAED,wBAAiB,4BAA4B,CAAC,EAC1C,OAAO,EAAE,EAAE,kBAAkB,EAAE,GAClC,EAAE,6BAA6B,2EAG/B;AAED,wBAAiB,6BAA6B,CAAC,EAC3C,OAAO,EAAE,EAAE,kBAAkB,EAAE,GAClC,EAAE,8BAA8B,2EAGhC;AAED,wBAAiB,oBAAoB,6EAIpC"}
@@ -1,7 +1,7 @@
1
1
  // (C) 2021-2026 GoodData Corporation
2
2
  import { call, takeEvery } from "redux-saga/effects";
3
3
  import { PostEventActionTypeKeys } from "../actions/action_types.js";
4
- import { hostDomainVerificationFailedEvent, insecureCommandFailedEvent, } from "../outgoing/command_error_events.js";
4
+ import { hostDomainVerificationErroredEvent, hostDomainVerificationFailedEvent, insecureCommandFailedEvent, } from "../outgoing/command_error_events.js";
5
5
  import { getPostMessageContextId } from "./post_message_saga_helper.js";
6
6
  export function* handleNoPermissionToSecureCommand({ payload: { postMessageContext, commandType }, }) {
7
7
  const contextId = getPostMessageContextId(postMessageContext);
@@ -11,7 +11,12 @@ export function* handleHostVerificationFailed({ payload: { postMessageContext },
11
11
  const contextId = getPostMessageContextId(postMessageContext);
12
12
  yield call(hostDomainVerificationFailedEvent, contextId);
13
13
  }
14
+ export function* handleHostVerificationErrored({ payload: { postMessageContext }, }) {
15
+ const contextId = getPostMessageContextId(postMessageContext);
16
+ yield call(hostDomainVerificationErroredEvent, contextId);
17
+ }
14
18
  export function* watchInsecureCommand() {
15
19
  yield takeEvery(PostEventActionTypeKeys.INSECURE_COMMAND_FAILED, handleNoPermissionToSecureCommand);
16
20
  yield takeEvery(PostEventActionTypeKeys.HOST_VERIFICATION_FAILED, handleHostVerificationFailed);
21
+ yield takeEvery(PostEventActionTypeKeys.HOST_VERIFICATION_ERRORED, handleHostVerificationErrored);
17
22
  }
@@ -3,7 +3,14 @@ import { type IDrillableItemsCommandBody } from "@gooddata/sdk-embedding";
3
3
  import { PostEventActionTypeKeys } from "../actions/action_types.js";
4
4
  import { type ICommandReceivedAction } from "../actions/command_received_actions.js";
5
5
  export declare function validateHostDomain(organizationId: string, url: string): Promise<boolean>;
6
- export declare function handleReceivedCommand({ payload: { data: commandData, origin: commandOrigin }, }: ICommandReceivedAction): 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<{
6
+ /**
7
+ * Result of the origin check of a command:
8
+ * - `valid`: the origin is in the embedding origins of the organization, or the validation is off,
9
+ * - `denied`: the backend answered that the origin is not in the embedding origins,
10
+ * - `failed`: the check did not give an answer, for example because of a network error.
11
+ */
12
+ type CommandOriginCheckResult = "valid" | "denied" | "failed";
13
+ export declare function handleReceivedCommand({ payload: { data: commandData, origin: commandOrigin }, }: ICommandReceivedAction): Generator<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").CallEffect<CommandOriginCheckResult> | import("redux-saga/effects").CallEffect<boolean> | Generator<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").PutEffect<{
7
14
  payload: undefined;
8
15
  type: import("../../sagas/application_context/application_context_actions.js").ApplicationContextActionsTypeKeys;
9
16
  }> | import("redux-saga/effects").SelectEffect, void, string | undefined> | Generator<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").PutEffect<{
@@ -24,6 +31,9 @@ export declare function handleReceivedCommand({ payload: { data: commandData, or
24
31
  }> | import("redux-saga/effects").PutEffect<{
25
32
  payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
26
33
  type: PostEventActionTypeKeys.HOST_VERIFICATION_FAILED;
34
+ }> | import("redux-saga/effects").PutEffect<{
35
+ payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
36
+ type: PostEventActionTypeKeys.HOST_VERIFICATION_ERRORED;
27
37
  }> | import("redux-saga/effects").PutEffect<{
28
38
  payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
29
39
  type: PostEventActionTypeKeys.CLEAR_INSIGHT_REQUESTED;
@@ -51,8 +61,8 @@ export declare function handleReceivedCommand({ payload: { data: commandData, or
51
61
  }> | import("redux-saga/effects").PutEffect<{
52
62
  payload: import("@gooddata/sdk-embedding").IFilterContextContent & import("@gooddata/sdk-embedding").IPostMessageContextPayload;
53
63
  type: PostEventActionTypeKeys.SET_FILTER_CONTEXT_REQUESTED;
54
- }>, void, boolean>;
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<{
64
+ }>, void, never>;
65
+ 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<CommandOriginCheckResult> | import("redux-saga/effects").CallEffect<boolean> | Generator<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").PutEffect<{
56
66
  payload: undefined;
57
67
  type: import("../../sagas/application_context/application_context_actions.js").ApplicationContextActionsTypeKeys;
58
68
  }> | import("redux-saga/effects").SelectEffect, void, string | undefined> | Generator<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").PutEffect<{
@@ -73,6 +83,9 @@ export declare function watchCommandReceived(): Generator<import("redux-saga/eff
73
83
  }> | import("redux-saga/effects").PutEffect<{
74
84
  payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
75
85
  type: PostEventActionTypeKeys.HOST_VERIFICATION_FAILED;
86
+ }> | import("redux-saga/effects").PutEffect<{
87
+ payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
88
+ type: PostEventActionTypeKeys.HOST_VERIFICATION_ERRORED;
76
89
  }> | import("redux-saga/effects").PutEffect<{
77
90
  payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
78
91
  type: PostEventActionTypeKeys.CLEAR_INSIGHT_REQUESTED;
@@ -100,7 +113,7 @@ export declare function watchCommandReceived(): Generator<import("redux-saga/eff
100
113
  }> | import("redux-saga/effects").PutEffect<{
101
114
  payload: import("@gooddata/sdk-embedding").IFilterContextContent & import("@gooddata/sdk-embedding").IPostMessageContextPayload;
102
115
  type: PostEventActionTypeKeys.SET_FILTER_CONTEXT_REQUESTED;
103
- }>, void, boolean>> | import("redux-saga/effects").ChannelTakeEffect<{
116
+ }>, void, never>> | import("redux-saga/effects").ChannelTakeEffect<{
104
117
  payload: {
105
118
  data: import("@gooddata/sdk-embedding").AdCommandData;
106
119
  origin: string;
@@ -119,4 +132,5 @@ export declare function watchCommandReceived(): Generator<import("redux-saga/eff
119
132
  };
120
133
  type: PostEventActionTypeKeys.COMMAND_RECEIVED;
121
134
  }>;
135
+ export {};
122
136
  //# 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":"AAEA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,YAAY,CAAC;AAG1C,OAAO,EAIH,KAAK,0BAA0B,EAgBlC,MAAM,yBAAyB,CAAC;AAcjC,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;AAgED,wBAAiB,qBAAqB,CAAC,EACnC,OAAO,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,GACxD,EAAE,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAgExB;AAED,wBAAiB,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAYpC"}
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,EAAqB,MAAM,YAAY,CAAC;AAG7D,OAAO,EAIH,KAAK,0BAA0B,EAgBlC,MAAM,yBAAyB,CAAC;AAcjC,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAQrE,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;AAED;;;;;GAKG;AACH,KAAK,wBAAwB,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAiE9D,wBAAiB,qBAAqB,CAAC,EACnC,OAAO,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,GACxD,EAAE,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqExB;AAED,wBAAiB,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAYpC"}
@@ -12,7 +12,7 @@ import { isEmbeddingOriginValidationEnabled, isEmbeddingWriteCommandsEnabled, is
12
12
  import { PostEventActionTypeKeys } from "../actions/action_types.js";
13
13
  import { clearInsightRequested } from "../actions/clear_insight_actions.js";
14
14
  import { clearInsightContentRequested } from "../actions/clear_insight_content_actions.js";
15
- import { hostVerificationFailed, insecureCommandFailed } from "../actions/command_error_actions.js";
15
+ import { hostVerificationErrored, hostVerificationFailed, insecureCommandFailed, } from "../actions/command_error_actions.js";
16
16
  import { removeFilterContextRequested, setFilterContextRequested, } from "../actions/control_filtering_actions.js";
17
17
  import { exportInsightRequested } from "../actions/export_insight_actions.js";
18
18
  import { openInsightRequested } from "../actions/open_insight_actions.js";
@@ -27,26 +27,28 @@ import { getPostMessageContextIdFromCommandData, isWriteCommand } from "./post_m
27
27
  export async function validateHostDomain(organizationId, url) {
28
28
  return backend.organization(organizationId).securitySettings().isUrlValid(url, "UI_EVENT");
29
29
  }
30
- function* isCommandOriginValid(origin) {
30
+ function* checkCommandOrigin(origin) {
31
31
  const isValidationEnabled = yield select(isEmbeddingOriginValidationEnabled);
32
32
  // Without the flag, no backend call: every origin is valid, as before the validation existed.
33
33
  if (!isValidationEnabled) {
34
- return true;
34
+ return "valid";
35
35
  }
36
+ let isValid;
36
37
  try {
37
38
  const organizationId = yield select(getOrganizationId);
38
- const result = yield call(validateHostDomain, organizationId, origin);
39
- if (result) {
40
- // The outgoing events may wait for the first command with a valid origin.
41
- yield call(notifyValidatedCommandOrigin, origin);
42
- }
43
- return result;
39
+ isValid = yield call(validateHostDomain, organizationId, origin);
44
40
  }
45
41
  catch (e) {
46
42
  // oxlint-disable-next-line eslint-js/no-console
47
- console.log(e);
48
- return false;
43
+ console.warn(`Could not check the origin "${origin}" against the embedding origins of the organization. The command was not run.`, e);
44
+ return "failed";
49
45
  }
46
+ if (!isValid) {
47
+ return "denied";
48
+ }
49
+ // The outgoing events may wait for the first command with a valid origin.
50
+ yield call(notifyValidatedCommandOrigin, origin);
51
+ return "valid";
50
52
  }
51
53
  function* isCommandTypeValid(commandType) {
52
54
  const isWrite = isWriteCommand(commandType);
@@ -75,12 +77,17 @@ export function* handleReceivedCommand({ payload: { data: commandData, origin: c
75
77
  // Commands injected in-process by an installed host adapter carry the sentinel origin — no
76
78
  // host-domain validation applies (the sentinel is unreachable via window messages).
77
79
  const isHostInjected = commandOrigin === HOST_ADAPTER_ORIGIN && !!getHostAdapter();
78
- const isValidOrigin = isHostInjected
79
- ? true
80
- : yield call(isCommandOriginValid, commandOrigin);
81
- if (!isValidOrigin) {
80
+ const originCheck = isHostInjected
81
+ ? "valid"
82
+ : yield call(checkCommandOrigin, commandOrigin);
83
+ if (originCheck === "failed") {
84
+ // Not cached: the next command checks the origin again.
85
+ yield put(hostVerificationErrored(contextId));
86
+ return;
87
+ }
88
+ if (originCheck === "denied") {
82
89
  // oxlint-disable-next-line eslint-js/no-console
83
- 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.`);
90
+ console.warn(`Denied the "${commandType}" command from the origin "${commandOrigin}". The origin is not in the embedding origins of the organization.`);
84
91
  yield put(hostVerificationFailed(contextId));
85
92
  return;
86
93
  }
@@ -1,4 +1,4 @@
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<{
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<"denied" | "failed" | "valid"> | import("redux-saga/effects").CallEffect<boolean> | Generator<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").PutEffect<{
2
2
  payload: undefined;
3
3
  type: import("../../sagas/application_context/application_context_actions.js").ApplicationContextActionsTypeKeys;
4
4
  }> | import("redux-saga/effects").SelectEffect, void, string | undefined> | Generator<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").PutEffect<{
@@ -19,6 +19,9 @@ export declare function watchIncomingCommands(): Generator<import("redux-saga/ef
19
19
  }> | import("redux-saga/effects").PutEffect<{
20
20
  payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
21
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.HOST_VERIFICATION_ERRORED;
22
25
  }> | import("redux-saga/effects").PutEffect<{
23
26
  payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
24
27
  type: import("../actions/action_types.js").PostEventActionTypeKeys.CLEAR_INSIGHT_REQUESTED;
@@ -46,7 +49,7 @@ export declare function watchIncomingCommands(): Generator<import("redux-saga/ef
46
49
  }> | import("redux-saga/effects").PutEffect<{
47
50
  payload: import("@gooddata/sdk-embedding").IFilterContextContent & import("@gooddata/sdk-embedding").IPostMessageContextPayload;
48
51
  type: import("../actions/action_types.js").PostEventActionTypeKeys.SET_FILTER_CONTEXT_REQUESTED;
49
- }>, void, boolean>> | import("redux-saga/effects").ChannelTakeEffect<{
52
+ }>, void, never>> | import("redux-saga/effects").ChannelTakeEffect<{
50
53
  payload: {
51
54
  data: import("@gooddata/sdk-embedding").AdCommandData;
52
55
  origin: string;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAkBrC"}
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":"save_insight_saga.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/sagas/save_insight_saga.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AAC3F,OAAO,EACH,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAEnC,MAAM,oCAAoC,CAAC;AAS5C,KAAK,iBAAiB,GAAG,2BAA2B,GAAG,6BAA6B,CAAC;AAErF,wBAAiB,WAAW,CAAC,MAAM,EAAE,iBAAiB,EAAE,SAAS,EAAE,OAAO;;;;;;;;;;;+DAezE;AAED,wBAAiB,0BAA0B,CAAC,MAAM,EAAE,2BAA2B;;;;;;;;;;;+EAE9E;AAED,wBAAiB,4BAA4B,CAAC,MAAM,EAAE,6BAA6B;;;;;;;;;;;+EAElF;AAED,wBAAiB,uBAAuB,CAAC,EACrC,OAAO,EAAE,EAAE,kBAAkB,EAAE,SAAS,EAAE,SAAqC,EAAE,GACpF,EAAE,wBAAwB,2EAQ1B;AAED,wBAAiB,yBAAyB,CAAC,EACvC,OAAO,EAAE,EAAE,mCAAmC,EAAE,kBAAkB,EAAE,GACvE,EAAE,0BAA0B,oKAK5B;AAED,wBAAiB,gBAAgB,6EAKhC"}
1
+ {"version":3,"file":"save_insight_saga.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/sagas/save_insight_saga.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AAC3F,OAAO,EACH,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAEnC,MAAM,oCAAoC,CAAC;AAU5C,KAAK,iBAAiB,GAAG,2BAA2B,GAAG,6BAA6B,CAAC;AAErF,wBAAiB,WAAW,CAAC,MAAM,EAAE,iBAAiB,EAAE,SAAS,EAAE,OAAO;;;;;;;;;;;+DAqBzE;AAED,wBAAiB,0BAA0B,CAAC,MAAM,EAAE,2BAA2B;;;;;;;;;;;+EAE9E;AAED,wBAAiB,4BAA4B,CAAC,MAAM,EAAE,6BAA6B;;;;;;;;;;;+EAElF;AAED,wBAAiB,uBAAuB,CAAC,EACrC,OAAO,EAAE,EAAE,kBAAkB,EAAE,SAAS,EAAE,SAAqC,EAAE,GACpF,EAAE,wBAAwB,2EAU1B;AAED,wBAAiB,yBAAyB,CAAC,EACvC,OAAO,EAAE,EAAE,mCAAmC,EAAE,kBAAkB,EAAE,GACvE,EAAE,0BAA0B,oKAK5B;AAED,wBAAiB,gBAAgB,6EAKhC"}
@@ -7,12 +7,18 @@ import { isReportSavedSelector } from "../../selectors/report_selector.js";
7
7
  import { isSaveAsNewDisabledSelector } from "../../selectors/save_report_selector.js";
8
8
  import { PostEventActionTypeKeys } from "../actions/action_types.js";
9
9
  import { saveInsightFailed, } from "../actions/save_insight_actions.js";
10
- import { insightSaved, insightSavingFailed, insightSavingInvalidState, } from "../outgoing/save_insight_events.js";
10
+ import { insightSaved, insightSavingFailed, insightSavingInvalidArgument, insightSavingInvalidState, } from "../outgoing/save_insight_events.js";
11
11
  import { getPostMessageContextId } from "../sagas/post_message_saga_helper.js";
12
12
  import { availableCommandsSelector } from "../state/selectors/post_message_context_selector.js";
13
13
  export function* saveInsight(action, saveAsNew) {
14
14
  const { payload: { title, postMessageContext }, } = action;
15
15
  const contextId = getPostMessageContextId(postMessageContext);
16
+ // Same rule as the save dialog: the title is trimmed and it must not be empty.
17
+ const trimmedTitle = typeof title === "string" ? title.trim() : "";
18
+ if (!trimmedTitle) {
19
+ yield put(saveInsightFailed(saveAsNew, undefined, contextId, GdcErrorType.InvalidArgument));
20
+ return;
21
+ }
16
22
  const isSaveAsNewDisabled = yield select(isSaveAsNewDisabledSelector);
17
23
  const isReportSaved = yield select(isReportSavedSelector);
18
24
  const isInvalidState = saveAsNew ? isSaveAsNewDisabled || !isReportSaved : isSaveAsNewDisabled;
@@ -20,7 +26,7 @@ export function* saveInsight(action, saveAsNew) {
20
26
  yield put(saveInsightFailed(saveAsNew, undefined, contextId, GdcErrorType.InvalidState));
21
27
  return;
22
28
  }
23
- yield put(reportTitleChange(title));
29
+ yield put(reportTitleChange(trimmedTitle));
24
30
  yield put(saveReportRequested(saveAsNew, false, contextId));
25
31
  }
26
32
  export function* handleSaveInsightRequested(action) {
@@ -34,6 +40,9 @@ export function* handleSaveInsightFailed({ payload: { postMessageContext, errorC
34
40
  if (errorType === GdcErrorType.InvalidState) {
35
41
  yield call(insightSavingInvalidState, contextId);
36
42
  }
43
+ else if (errorType === GdcErrorType.InvalidArgument) {
44
+ yield call(insightSavingInvalidArgument, contextId);
45
+ }
37
46
  else {
38
47
  yield call(insightSavingFailed, contextId);
39
48
  }
@@ -72,6 +72,7 @@ declare const strictRootReducer: import("redux").Reducer<{
72
72
  loadingError: import("../store/report/report_state.js").IReportLoadingErrorState;
73
73
  lastSavedObject: import("../typings/report.js").IReport;
74
74
  execution: import("../store/execution/execution_state.js").IExecutionState;
75
+ executionProgress: import("../store/execution_progress/execution_progress_state.js").IExecutionProgressState;
75
76
  };
76
77
  bootstrapData: import("../store/app_context/app_context_state.js").IBootstrapDataState;
77
78
  projectId: import("../store/app_context/app_context_state.js").IProjectIdState;
@@ -240,6 +241,7 @@ declare const strictRootReducer: import("redux").Reducer<{
240
241
  loadingError: import("../store/report/report_state.js").IReportLoadingErrorState | undefined;
241
242
  lastSavedObject: import("../typings/report.js").IReport | undefined;
242
243
  execution: import("../store/execution/execution_state.js").IExecutionState | undefined;
244
+ executionProgress: import("../store/execution_progress/execution_progress_state.js").IExecutionProgressState | undefined;
243
245
  }> | {
244
246
  saving: boolean;
245
247
  savingAsNew: boolean;
@@ -248,6 +250,7 @@ declare const strictRootReducer: import("redux").Reducer<{
248
250
  loadingError: import("../store/report/report_state.js").IReportLoadingErrorState;
249
251
  lastSavedObject: import("../typings/report.js").IReport;
250
252
  execution: import("../store/execution/execution_state.js").IExecutionState;
253
+ executionProgress: import("../store/execution_progress/execution_progress_state.js").IExecutionProgressState;
251
254
  } | undefined;
252
255
  bootstrapData: import("../store/app_context/app_context_state.js").IBootstrapDataState | undefined;
253
256
  projectId: import("../store/app_context/app_context_state.js").IProjectIdState | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"combined_root_reducer.d.ts","sourceRoot":"","sources":["../../src/reducers/combined_root_reducer.ts"],"names":[],"mappings":"AAgFA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAoHnD,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwBrB,CAAC;AAEH;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEtE;;;;;;;GAOG;AACH,KAAK,gBAAgB,CAAC,OAAO,SAAS,OAAO,EAAE,OAAO,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AAE7E,MAAM,MAAM,yBAAyB,GAAG;IACpC,gBAAgB,CA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AAA;CAAE,KACvB,SAAS,CAAC"}
@@ -23,6 +23,7 @@ import { dndLeafReducer } from "../store/drag_and_drop/dnd_reducer.js";
23
23
  import { drillableItemsSliceReducer } from "../store/drillable_items/drillable_items_slice.js";
24
24
  import { deviceSliceReducer, isEmbeddedSliceReducer, isHostedComponentSliceReducer, isReadOnlySliceReducer, themeSliceReducer, } from "../store/embedding/embedding_slices.js";
25
25
  import { executionSliceReducer } from "../store/execution/execution_slice.js";
26
+ import { executionProgressSliceReducer } from "../store/execution_progress/execution_progress_slice.js";
26
27
  import { featureFlagsSliceReducer } from "../store/feature_flags/feature_flags_slice.js";
27
28
  import { filterBarReducer } from "../store/filter_bar/filter_bar_reducer.js";
28
29
  import { filterBarAutoOpenSliceReducer } from "../store/filter_bar_auto_open/filter_bar_auto_open_slice.js";
@@ -151,6 +152,7 @@ const reportReducer = combineReducers({
151
152
  loadingError: reportLoadingErrorSliceReducer,
152
153
  lastSavedObject: reportLastSavedObjectSliceReducer,
153
154
  execution: executionSliceReducer,
155
+ executionProgress: executionProgressSliceReducer,
154
156
  });
155
157
  const strictRootReducer = combineReducers({
156
158
  appState: appStateReducer,
@@ -16,7 +16,7 @@ export declare function loadAttributeHierarchies(): Generator<import("redux-saga
16
16
  }>, void, IWorkspaceCatalog>;
17
17
  export declare function loadParameters(): Generator<import("redux-saga/effects").CallEffect<IParameterMetadataObject[]> | import("redux-saga/effects").PutEffect<{
18
18
  payload: {
19
- parameters: readonly IParameterMetadataObject[];
19
+ parameters: readonly import("@gooddata/sdk-model").IScalarParameterMetadataObject[];
20
20
  };
21
21
  type: import("../../store/catalog/catalog_store_actions.js").CatalogActionTypeKeys.STORE_SET_CATALOG_PARAMETERS;
22
22
  }> | import("redux-saga/effects").SelectEffect, void, never>;
@@ -1 +1 @@
1
- {"version":3,"file":"catalog_saga.d.ts","sourceRoot":"","sources":["../../../src/sagas/catalog/catalog_saga.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,IAAI,EAAE,M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C,QAAQ,EAAE,WAAW,EAAE,qGAW5D;AAED,wBAAiB,wBAAwB;;;;;6BAOxC;AAID,wBAAiB,cAAc;;;;;6DAyB9B;AAED,wBAAiB,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;uCAqBzC;AAED,wBAAiB,WAAW,CAAC,mBAAmB,UAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;4EAuBvD;AAQD,wBAAiB,4BAA4B,CAAC,OAAO,EAAE,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAUxE;AAED,wBAAiB,8BAA8B,CAAC,OAAO,EAAE,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;8FAE1E;AAED,wBAAiB,iCAAiC,iPAmCjD;AAgBD,wBAAiB,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC;;;;;;;;uIAczG;AAED,wBAAiB,gBAAgB,CAAC,MAAM,EAAE,uCAAuC;;;;;;;;;;gkBA4BhF;AAQD;;GAEG;AACH,wBAAiB,oBAAoB,CAAC,MAAM,EAAE,8BAA8B;;;;;;;;8EAa3E;AAED,wBAAiB,sCAAsC,CACnD,MAAM,EAAE,8CAA8C;;;;;mBAGzD;AAED,wBAAiB,qCAAqC,CAAC,MAAM,EAAE,sCAAsC;;;;;;;;;;;;;6FAoBpG;AAED,wBAAiB,qCAAqC,CAAC,MAAM,EAAE,sCAAsC;;;;;;;;;;;;;6FAuBpG;AAED,wBAAiB,YAAY,4EAiB5B"}
@@ -1,6 +1,6 @@
1
1
  // (C) 2019-2026 GoodData Corporation
2
2
  import { all, call, cancel, delay, fork, put, select, take, takeEvery, } from "redux-saga/effects";
3
- import { catalogItemMetadataObject, idRef, insightBuckets, insightVisualizationUrl, isNumberParameterDefinition, isStringParameterDefinition, newInsightDefinition, } from "@gooddata/sdk-model";
3
+ import { catalogItemMetadataObject, idRef, insightBuckets, insightVisualizationUrl, isNumberParameterDefinition, isScalarParameterMetadataObject, newInsightDefinition, } from "@gooddata/sdk-model";
4
4
  import { _compact, _isEqual } from "@gooddata/util";
5
5
  import { refreshSessionId } from "../../actions/app_context_actions.js";
6
6
  import { updateItemCache } from "../../actions/data_actions.js";
@@ -122,8 +122,9 @@ export function* loadParameters() {
122
122
  .query();
123
123
  return result.all();
124
124
  });
125
- const supportedParameters = parameters.filter((parameter) => isNumberParameterDefinition(parameter.definition) ||
126
- (stringParametersEnabled && isStringParameterDefinition(parameter.definition)));
125
+ const supportedParameters = parameters
126
+ .filter(isScalarParameterMetadataObject)
127
+ .filter((parameter) => stringParametersEnabled || isNumberParameterDefinition(parameter.definition));
127
128
  yield put(setCatalogParameters(supportedParameters));
128
129
  }
129
130
  export function* loadCatalogItemsAndGroups() {
@@ -229,7 +229,7 @@ export declare function fetchDraftReport(projectId: string, reportId: string): G
229
229
  unavailable: number;
230
230
  };
231
231
  } & IParameterRestoreResult & import("../store/report/open_report_operation.js").IOpenReportResult & IApplicationResetCarrier>;
232
- export declare function restoreInsightParameterFilters(insight: IInsight): Generator<import("redux-saga/effects").SelectEffect, IParameterRestoreResult, boolean & readonly import("@gooddata/sdk-model").IParameterMetadataObject[]>;
232
+ export declare function restoreInsightParameterFilters(insight: IInsight): Generator<import("redux-saga/effects").SelectEffect, IParameterRestoreResult, boolean & readonly import("@gooddata/sdk-model").IScalarParameterMetadataObject[]>;
233
233
  export declare function showOpenReportMessage({ payload: { isDraft, useDefaultClass, loadedItems }, }: IOpenReportFinishedAction): Generator<import("redux-saga/effects").CallEffect<string> | import("redux-saga/effects").PutEffect<{
234
234
  payload: import("../actions/messages_actions.js").IShowAddMessagePayload;
235
235
  type: ActionTypeKeys.MESSAGES_ADD;
@@ -1 +1 @@
1
- {"version":3,"file":"open_report_sagas.d.ts","sourceRoot":"","sources":["../../src/sagas/open_report_sagas.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;A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4B,CAAC,OAAO,EAAE,QAAQ,2HAU9D;AAED;;;;GAIG;AACH,wBAAgB,uCAAuC,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAQlF;AAKD,wBAAiB,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uGA6G/D;AAED,wBAAiB,eAAe,CAAC,SAAS,EAAE,MAAM,4MAOjD;AAED,wBAAiB,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+HAyEpE;AAED,wBAAiB,8BAA8B,CAAC,OAAO,EAAE,QAAQ,oKAchE;AAED,wBAAiB,qBAAqB,CAAC,EACnC,OAAO,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,GACrD,EAAE,yBAAyB;;;;;;;;0EA0B3B;AAMD,wBAAiB,eAAe,6EAK/B"}
@@ -1,5 +1,5 @@
1
1
  import { type BootstrapError } from "../actions/app_context_actions.js";
2
- export declare function root(): Generator<import("redux-saga/effects").AllEffect<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
+ export declare function root(): Generator<import("redux-saga/effects").AllEffect<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<"denied" | "failed" | "valid"> | import("redux-saga/effects").CallEffect<boolean> | Generator<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").PutEffect<{
3
3
  payload: undefined;
4
4
  type: import("./application_context/application_context_actions.js").ApplicationContextActionsTypeKeys;
5
5
  }> | import("redux-saga/effects").SelectEffect, void, string | undefined> | Generator<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").PutEffect<{
@@ -20,6 +20,9 @@ export declare function root(): Generator<import("redux-saga/effects").AllEffect
20
20
  }> | import("redux-saga/effects").PutEffect<{
21
21
  payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
22
22
  type: import("../postMessageApi/actions/action_types.js").PostEventActionTypeKeys.HOST_VERIFICATION_FAILED;
23
+ }> | import("redux-saga/effects").PutEffect<{
24
+ payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
25
+ type: import("../postMessageApi/actions/action_types.js").PostEventActionTypeKeys.HOST_VERIFICATION_ERRORED;
23
26
  }> | import("redux-saga/effects").PutEffect<{
24
27
  payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
25
28
  type: import("../postMessageApi/actions/action_types.js").PostEventActionTypeKeys.CLEAR_INSIGHT_REQUESTED;
@@ -47,7 +50,7 @@ export declare function root(): Generator<import("redux-saga/effects").AllEffect
47
50
  }> | import("redux-saga/effects").PutEffect<{
48
51
  payload: import("@gooddata/sdk-embedding").IFilterContextContent & import("@gooddata/sdk-embedding").IPostMessageContextPayload;
49
52
  type: import("../postMessageApi/actions/action_types.js").PostEventActionTypeKeys.SET_FILTER_CONTEXT_REQUESTED;
50
- }>, void, boolean>> | import("redux-saga/effects").ChannelTakeEffect<{
53
+ }>, void, never>> | import("redux-saga/effects").ChannelTakeEffect<{
51
54
  payload: {
52
55
  data: import("@gooddata/sdk-embedding").AdCommandData;
53
56
  origin: string;