@gooddata/sdk-ui-analytical-designer 11.68.0-alpha.8 → 11.68.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +59 -390
- package/esm/actions/data_actions.d.ts +2 -1
- package/esm/actions/data_actions.d.ts.map +1 -1
- package/esm/actions/data_actions.js +2 -2
- package/esm/components/DeleteReportDialog.d.ts.map +1 -1
- package/esm/components/DeleteReportDialog.js +2 -2
- package/esm/components/DeleteReportDialogUsageList.d.ts.map +1 -1
- package/esm/components/DeleteReportDialogUsageList.js +33 -17
- package/esm/components/InsightUsageOnDashboards.d.ts.map +1 -1
- package/esm/components/InsightUsageOnDashboards.js +40 -27
- package/esm/components/SaveReportFromKDDialog.d.ts.map +1 -1
- package/esm/components/SaveReportFromKDDialog.js +11 -4
- package/esm/components/buckets/AttributeBucketItemHyperlinkConfiguration.js +2 -2
- package/esm/components/buckets/BucketReorderableItem.d.ts.map +1 -1
- package/esm/components/buckets/BucketReorderableItem.js +2 -2
- package/esm/components/buckets/DraggableBucketItem.d.ts.map +1 -1
- package/esm/components/buckets/DraggableBucketItem.js +2 -2
- package/esm/components/buckets/VisualizationPicker.d.ts.map +1 -1
- package/esm/components/buckets/VisualizationPicker.js +2 -3
- package/esm/components/catalog/hooks/GroupHook.js +3 -3
- package/esm/components/catalog/hooks/ScrollableAreaHook.d.ts.map +1 -1
- package/esm/components/catalog/hooks/ScrollableAreaHook.js +2 -2
- package/esm/components/filterBar/dateFilter/PresetSection/supportedPresetsHook.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/PresetSection/supportedPresetsHook.js +2 -2
- package/esm/components/filterBar/dateFilter/presets.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/presets.js +2 -2
- package/esm/components/saveReportFromKD/DocumentItem.d.ts +6 -0
- package/esm/components/saveReportFromKD/DocumentItem.d.ts.map +1 -0
- package/esm/components/saveReportFromKD/DocumentItem.js +11 -0
- package/esm/components/saveReportFromKD/InsightUsageOnDashboardsList.d.ts +3 -2
- package/esm/components/saveReportFromKD/InsightUsageOnDashboardsList.d.ts.map +1 -1
- package/esm/components/saveReportFromKD/InsightUsageOnDashboardsList.js +3 -2
- package/esm/components/shared/AttributeBubbleContent.d.ts.map +1 -1
- package/esm/components/shared/AttributeBubbleContent.js +5 -3
- package/esm/convertors/fromBackend/VisualizationConverter.d.ts.map +1 -1
- package/esm/convertors/fromBackend/VisualizationConverter.js +2 -3
- package/esm/internal.d.ts +1 -0
- package/esm/internal.d.ts.map +1 -1
- package/esm/internal.js +1 -0
- package/esm/models/metadata.d.ts.map +1 -1
- package/esm/models/metadata.js +9 -6
- package/esm/postMessageApi/actions/open_insight_actions.d.ts.map +1 -1
- package/esm/postMessageApi/actions/open_insight_actions.js +2 -2
- package/esm/postMessageApi/outgoing/parent_origin_validation.d.ts +39 -0
- package/esm/postMessageApi/outgoing/parent_origin_validation.d.ts.map +1 -0
- package/esm/postMessageApi/outgoing/parent_origin_validation.js +36 -0
- package/esm/postMessageApi/sagas/command_received_saga.d.ts +68 -1
- package/esm/postMessageApi/sagas/command_received_saga.d.ts.map +1 -1
- package/esm/postMessageApi/sagas/command_received_saga.js +21 -3
- package/esm/postMessageApi/sagas/control_filtering_saga.d.ts.map +1 -1
- package/esm/postMessageApi/sagas/control_filtering_saga.js +6 -6
- package/esm/postMessageApi/sagas/incoming_command_sagas.d.ts +67 -1
- package/esm/postMessageApi/sagas/incoming_command_sagas.d.ts.map +1 -1
- package/esm/postMessageApi/sagas/post_message_saga_helper.d.ts.map +1 -1
- package/esm/postMessageApi/sagas/post_message_saga_helper.js +3 -3
- package/esm/sagas/open_report_sagas.d.ts +9 -2
- package/esm/sagas/open_report_sagas.d.ts.map +1 -1
- package/esm/sagas/open_report_sagas.js +8 -5
- package/esm/sagas/sagas.d.ts +67 -1
- package/esm/sagas/sagas.d.ts.map +1 -1
- package/esm/selectors/buckets_selector.js +3 -3
- package/esm/selectors/insight_selectors.d.ts.map +1 -1
- package/esm/selectors/insight_selectors.js +3 -3
- package/esm/selectors/report_selector.d.ts.map +1 -1
- package/esm/selectors/report_selector.js +3 -2
- package/esm/selectors/report_visualization_selector.d.ts +4 -4
- package/esm/selectors/save_report_from_kd_dialog_selector.d.ts +26 -2
- package/esm/selectors/save_report_from_kd_dialog_selector.d.ts.map +1 -1
- package/esm/selectors/save_report_from_kd_dialog_selector.js +3 -2
- package/esm/selectors/save_report_selector.d.ts +45 -5
- package/esm/selectors/save_report_selector.d.ts.map +1 -1
- package/esm/selectors/save_report_selector.js +13 -12
- package/esm/services/report_service.js +3 -3
- package/esm/store/attribute_elements/attribute_elements_reducer.js +4 -4
- package/esm/store/bucket_filters/bucket_filters_operations.d.ts.map +1 -1
- package/esm/store/bucket_filters/bucket_filters_operations.js +2 -3
- package/esm/store/buckets/buckets_removal_helpers.d.ts.map +1 -1
- package/esm/store/buckets/buckets_removal_helpers.js +4 -4
- package/esm/store/buckets/extended_reference_point_operations.d.ts.map +1 -1
- package/esm/store/buckets/extended_reference_point_operations.js +3 -3
- package/esm/store/buckets/helpers/totals_for_new_measure.js +3 -3
- package/esm/store/insight_usage/insight_usage_helpers.d.ts +2 -1
- package/esm/store/insight_usage/insight_usage_helpers.d.ts.map +1 -1
- package/esm/store/insight_usage/insight_usage_helpers.js +4 -3
- package/esm/store/insight_usage/insight_usage_selectors.d.ts +23 -0
- package/esm/store/insight_usage/insight_usage_selectors.d.ts.map +1 -1
- package/esm/store/insight_usage/insight_usage_selectors.js +4 -1
- package/esm/store/insight_usage/insight_usage_slice.d.ts.map +1 -1
- package/esm/store/insight_usage/insight_usage_slice.js +1 -0
- package/esm/store/insight_usage/insight_usage_state.d.ts +6 -0
- package/esm/store/insight_usage/insight_usage_state.d.ts.map +1 -1
- package/esm/store/metric_editor/metric_editor_sagas.d.ts.map +1 -1
- package/esm/store/metric_editor/metric_editor_sagas.js +2 -3
- package/esm/store/properties/properties_helpers.js +3 -3
- package/esm/store/recommendations/recommendations_slice.d.ts.map +1 -1
- package/esm/store/recommendations/recommendations_slice.js +2 -2
- package/esm/tests/constants.test.helpers.d.ts.map +1 -1
- package/esm/tests/constants.test.helpers.js +2 -2
- package/esm/translations/de-DE.json +19 -9
- package/esm/translations/en-AU.json +16 -6
- package/esm/translations/en-GB.json +16 -6
- package/esm/translations/en-US.json +53 -13
- package/esm/translations/es-419.json +16 -6
- package/esm/translations/es-ES.json +16 -6
- package/esm/translations/fi-FI.json +16 -6
- package/esm/translations/fr-CA.json +16 -6
- package/esm/translations/fr-FR.json +16 -6
- package/esm/translations/id-ID.json +16 -6
- package/esm/translations/it-IT.json +16 -6
- package/esm/translations/ja-JP.json +16 -6
- package/esm/translations/ko-KR.json +16 -6
- package/esm/translations/nl-NL.json +16 -6
- package/esm/translations/pl-PL.json +16 -6
- package/esm/translations/pt-BR.json +16 -6
- package/esm/translations/pt-PT.json +16 -6
- package/esm/translations/ru-RU.json +16 -6
- package/esm/translations/sl-SI.json +16 -6
- package/esm/translations/th-TH.json +16 -6
- package/esm/translations/tr-TR.json +16 -6
- package/esm/translations/uk-UA.json +16 -6
- package/esm/translations/vi-VN.json +16 -6
- package/esm/translations/zh-HK.json +16 -6
- package/esm/translations/zh-Hans.json +16 -6
- package/esm/translations/zh-Hant.json +16 -6
- package/esm/typings/catalog.d.ts +4 -0
- package/esm/typings/catalog.d.ts.map +1 -1
- package/esm/utils/api.js +3 -3
- package/esm/utils/dropdown.js +2 -2
- package/esm/utils/hooks/WindowResizeHook.js +2 -2
- package/package.json +21 -21
- package/styles/css/delete_report_dialog.css +16 -0
- package/styles/css/delete_report_dialog.css.map +1 -1
- package/styles/css/editor_header.css +80 -71
- package/styles/css/editor_header.css.map +1 -1
- package/styles/css/main.css +100 -71
- package/styles/css/main.css.map +1 -1
- package/styles/css/save_report_from_kd_dialog.css +6 -0
- package/styles/css/save_report_from_kd_dialog.css.map +1 -1
- package/styles/scss/delete_report_dialog.scss +21 -1
- package/styles/scss/editor_header.scss +85 -83
- package/styles/scss/save_report_from_kd_dialog.scss +8 -0
|
@@ -5,10 +5,12 @@ import { createNumberFormatter, formatAttributeValue } from "@gooddata/sdk-ui";
|
|
|
5
5
|
export function TooltipAttrElements({ attrElements, attrElementsTotalCount, attrElementsNumberFormat, separators, }) {
|
|
6
6
|
const intl = useIntl();
|
|
7
7
|
const remainingElementsCount = attrElementsTotalCount - attrElements.length;
|
|
8
|
-
// the values
|
|
8
|
+
// the values are displayed formatted, like the filter displays them: date values come formatted,
|
|
9
|
+
// the values of a numeric computed attribute are formatted by their number format; raw otherwise
|
|
9
10
|
const formatter = createNumberFormatter(separators);
|
|
10
|
-
const displayTitle = (
|
|
11
|
-
|
|
11
|
+
const displayTitle = ({ title, formattedTitle }) => formattedTitle ||
|
|
12
|
+
(attrElementsNumberFormat ? formatAttributeValue(title, attrElementsNumberFormat, formatter) : title);
|
|
13
|
+
return (_jsxs(_Fragment, { children: [attrElements.map((element, idx) => (_jsxs("span", { className: "s-attribute-element", children: [displayTitle(element) || `(${intl.formatMessage({ id: "empty_value" })})`, _jsx("br", {})] }, idx))), remainingElementsCount > 0 && (_jsx("span", { className: "adi-tooltip-elements-more", children: _jsx(FormattedMessage, { id: "dashboard.catalog_item.shortening_decoration", values: { count: remainingElementsCount } }) }, attrElements.length))] }));
|
|
12
14
|
}
|
|
13
15
|
export function TooltipValuesSection(props) {
|
|
14
16
|
const { attrElements } = props;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VisualizationConverter.d.ts","sourceRoot":"","sources":["../../../src/convertors/fromBackend/VisualizationConverter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"VisualizationConverter.d.ts","sourceRoot":"","sources":["../../../src/convertors/fromBackend/VisualizationConverter.ts"],"names":[],"mappings":"AAEA,OAAO,EAMH,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,QAAQ,EAOb,KAAK,KAAK,EAIb,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAEH,KAAK,OAAO,IAAI,WAAW,EAC3B,KAAK,cAAc,EAUnB,KAAK,iCAAiC,EAgBzC,MAAM,iCAAiC,CAAC;AA0GzC,eAAO,MAAM,aAAa,WAAY,iCAAiC,KAAG,OAiBzE,CAAC;AAiIF;;GAEG;AACH,eAAO,MAAM,aAAa,WAAY,WAAW,KAAG,OAMnD,CAAC;AA+BF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,kBACd,cAAc,yBACN,MAAM,YACnB,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,KAC7B,QA8BF,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import { omit } from "lodash-es";
|
|
3
2
|
import { isComputedAttributeRef, uriRef, } from "@gooddata/sdk-model";
|
|
4
|
-
import { _compact, _isEmpty } from "@gooddata/util";
|
|
3
|
+
import { _compact, _isEmpty, _omit } from "@gooddata/util";
|
|
5
4
|
import { isVisualizationObjectAbsoluteDateFilter, isVisualizationObjectArbitraryAttributeFilter, isVisualizationObjectArithmeticMeasureDefinition, isVisualizationObjectAttributeFilter, isVisualizationObjectMatchAttributeFilter, isVisualizationObjectMeasure, isVisualizationObjectMeasureValueFilter, isVisualizationObjectNegativeAttributeFilter, isVisualizationObjectPoPMeasureDefinition, isVisualizationObjectPositiveAttributeFilter, isVisualizationObjectPreviousPeriodMeasureDefinition, isVisualizationObjectRankingFilter, isVisualizationObjectRelativeDateFilter, } from "../../typings/bear/bearTypes.js";
|
|
6
5
|
import { fromBearRef, fromScopedBearRef } from "./ObjRefConverter.js";
|
|
7
6
|
import { deserializeProperties, serializeProperties } from "./PropertiesConverter.js";
|
|
@@ -248,7 +247,7 @@ const resolveReferences = (mdObject) => {
|
|
|
248
247
|
return {
|
|
249
248
|
...mdObject,
|
|
250
249
|
content: {
|
|
251
|
-
...
|
|
250
|
+
..._omit(mdObject.content, "references"),
|
|
252
251
|
properties: serializeProperties(convertedProperties),
|
|
253
252
|
...referencesProp,
|
|
254
253
|
},
|
package/esm/internal.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export { store, startSagas, subscribeControls } from "./reduxStore.js";
|
|
|
3
3
|
export { getHelpMenuItems, getTranslatedHelpMenuItemsForLocale } from "./utils/appHeader.js";
|
|
4
4
|
export { type IAdHostBackend, type IApiToken, adoptHostBackend, resetBackend } from "./backend.js";
|
|
5
5
|
export { emitApiTokenIsAboutToExpire } from "./postMessageApi/outgoing/set_api_token_events.js";
|
|
6
|
+
export { type IStartParentOriginValidationOptions, startParentOriginValidation, stopParentOriginValidation, } from "./postMessageApi/outgoing/parent_origin_validation.js";
|
|
6
7
|
export { workspacePermissionsSuccess } from "./actions/permissions_actions.js";
|
|
7
8
|
export { setEmbedded } from "./actions/embedded_actions.js";
|
|
8
9
|
export { resetForPluggableMount } from "./actions/reset_for_pluggable_mount_actions.js";
|
package/esm/internal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../src/internal.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,mCAAmC,EAAE,MAAM,sBAAsB,CAAC;AAC7F,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACnG,OAAO,EAAE,2BAA2B,EAAE,MAAM,mDAAmD,CAAC;AAChG,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAA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AAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAC;AACvF,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EACH,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,aAAa,EACb,SAAS,EACT,QAAQ,EACR,eAAe,GAClB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,KAAK,oBAAoB,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AACrG,OAAO,EAAE,aAAa,EAAE,MAAM,oDAAoD,CAAC;AACnF,OAAO,EACH,yBAAyB,EACzB,2BAA2B,GAC9B,MAAM,yCAAyC,CAAC;AACjD,OAAO,EACH,6BAA6B,EAC7B,8BAA8B,GACjC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACH,0BAA0B,IAAI,kBAAkB,EAChD,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,GACxC,MAAM,mCAAmC,CAAC"}
|
package/esm/internal.js
CHANGED
|
@@ -7,6 +7,7 @@ export { store, startSagas, subscribeControls } from "./reduxStore.js";
|
|
|
7
7
|
export { getHelpMenuItems, getTranslatedHelpMenuItemsForLocale } from "./utils/appHeader.js";
|
|
8
8
|
export { adoptHostBackend, resetBackend } from "./backend.js";
|
|
9
9
|
export { emitApiTokenIsAboutToExpire } from "./postMessageApi/outgoing/set_api_token_events.js";
|
|
10
|
+
export { startParentOriginValidation, stopParentOriginValidation, } from "./postMessageApi/outgoing/parent_origin_validation.js";
|
|
10
11
|
export { workspacePermissionsSuccess } from "./actions/permissions_actions.js";
|
|
11
12
|
export { setEmbedded } from "./actions/embedded_actions.js";
|
|
12
13
|
export { resetForPluggableMount } from "./actions/reset_for_pluggable_mount_actions.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../src/models/metadata.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAG3B,KAAK,MAAM,EAOd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEH,KAAK,sBAAsB,EAG9B,MAAM,kBAAkB,CAAC;AAO1B,OAAO,EACH,KAAK,yBAAyB,EAO9B,KAAK,OAAO,EAKf,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,EAKH,KAAK,OAAO,IAAI,0BAA0B,EAE1C,KAAK,2BAA2B,EAGhC,KAAK,2BAA2B,EAMhC,KAAK,iCAAiC,EAiBzC,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAGH,KAAK,iBAAiB,EAEtB,KAAK,WAAW,EACnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAOpF,OAAO,EAAE,KAAK,8BAA8B,EAAE,MAAM,0BAA0B,CAAC;AAC/E,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAEH,KAAK,eAAe,EACpB,KAAK,aAAa,EACrB,MAAM,6BAA6B,CAAC;AA6BrC,wBAAgB,SAAS,CAAC,CAAC,SAAS,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAEjE;AAiCD;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,qBAAqB,EAAE,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,EAAE,8BAA8B,GAAG,SAAS,WAIzD;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,2BAA2B,WAE9D;AAwOD,MAAM,WAAW,0CAA0C;IACvD,OAAO,EAAE,0BAA0B,EAAE,CAAC;IACtC,OAAO,CAAC,EAAE,iCAAiC,EAAE,CAAC;CACjD;AAKD,wBAAgB,uCAAuC,CACnD,QAAQ,EAAE,2BAA2B,GACtC,0CAA0C,CAQ5C;AAED,wBAAgB,2BAA2B,CACvC,cAAc,EAAE,2BAA2B,GAC5C,0CAA0C,CAE5C;AAuBD,wBAAgB,yBAAyB,CACrC,cAAc,EAAE,2BAA2B,GAC5C,2BAA2B,CAK7B;AAwBD,wBAAgB,wBAAwB,CACpC,cAAc,EAAE,2BAA2B,GAC5C,2BAA2B,CAkB7B;AA+BD,wBAAgB,2BAA2B,CACvC,cAAc,EAAE,2BAA2B,GAC5C,2BAA2B,CAgB7B;AAsED,wBAAgB,yBAAyB,CACrC,cAAc,EAAE,2BAA2B,GAAG,SAAS,GACxD,sBAAsB,CAUxB;AAED,2FAA2F;AAC3F,MAAM,WAAW,wBAAwB;IACrC,OAAO,EAAE,WAAW,CAAC;IACrB,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,cAAc,EAAE,eAAe,CAAC;CACnC;AAED,eAAO,MAAM,iBAAiB,WAAY;IACtC,cAAc,EAAE,2BAA2B,CAAC;IAC5C,cAAc,EAAE,eAAe,CAAC;CACnC,KAAG,wBAA8D,CAAC"}
|
package/esm/models/metadata.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// (C) 2007-2026 GoodData Corporation
|
|
2
2
|
import invariant from "invariant";
|
|
3
|
-
import { negate,
|
|
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 } from "@gooddata/util";
|
|
7
|
+
import { _cloneDeep, _isEmpty, _omit } from "@gooddata/util";
|
|
8
8
|
import { ATTRIBUTE, COMPUTED_ATTRIBUTE, DATE, GEO_ATTRIBUTE, METRIC } from "../constants/bucket.js";
|
|
9
9
|
import { ALL_TIME } from "../constants/presets.js";
|
|
10
10
|
import { isElementUrisSupported } from "../selectors/backend_capabilities_selector.js";
|
|
@@ -1122,7 +1122,10 @@ export function normalizeEmptyDateValuesFilters(visualizationFilters, dateDatase
|
|
|
1122
1122
|
const mode = emptyValueHandlingToMd(storedMode ?? emptyDateValuesFilters[objRefToString(dataSet)]?.mode);
|
|
1123
1123
|
if (isVisualizationObjectAbsoluteDateFilter(filter)) {
|
|
1124
1124
|
return {
|
|
1125
|
-
absoluteDateFilter: {
|
|
1125
|
+
absoluteDateFilter: {
|
|
1126
|
+
..._omit(filter.absoluteDateFilter, "emptyValueHandling"),
|
|
1127
|
+
...mode,
|
|
1128
|
+
},
|
|
1126
1129
|
};
|
|
1127
1130
|
}
|
|
1128
1131
|
const { granularity, from, to } = filter.relativeDateFilter;
|
|
@@ -1141,7 +1144,7 @@ export function normalizeEmptyDateValuesFilters(visualizationFilters, dateDatase
|
|
|
1141
1144
|
};
|
|
1142
1145
|
}
|
|
1143
1146
|
return {
|
|
1144
|
-
relativeDateFilter: { ...
|
|
1147
|
+
relativeDateFilter: { ..._omit(filter.relativeDateFilter, "emptyValueHandling"), ...mode },
|
|
1145
1148
|
};
|
|
1146
1149
|
});
|
|
1147
1150
|
}
|
|
@@ -1417,7 +1420,7 @@ export function omitIrrelevantPropertiesForAvailability(mdObject) {
|
|
|
1417
1420
|
export function pickRelevantFromReportMDObj(metadataObject) {
|
|
1418
1421
|
return pick(metadataObject, ["buckets", "filters"]);
|
|
1419
1422
|
}
|
|
1420
|
-
const omitMeasureFormat = (bucketItem) =>
|
|
1423
|
+
const omitMeasureFormat = (bucketItem) => _omit(bucketItem, ["measure.format"]);
|
|
1421
1424
|
function omitMeasureFormatFromReportMDObj(metadataObject) {
|
|
1422
1425
|
return {
|
|
1423
1426
|
...metadataObject,
|
|
@@ -1428,7 +1431,7 @@ function omitMeasureFormatFromReportMDObj(metadataObject) {
|
|
|
1428
1431
|
};
|
|
1429
1432
|
}
|
|
1430
1433
|
function removeTotalsFromBucket(bucket) {
|
|
1431
|
-
return
|
|
1434
|
+
return _omit(bucket, ["totals"]);
|
|
1432
1435
|
}
|
|
1433
1436
|
export function omitTotalsFromReportMDObj(metadataObject) {
|
|
1434
1437
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"open_insight_actions.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/actions/open_insight_actions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"open_insight_actions.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/actions/open_insight_actions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,wBAAwB,EAAE,KAAK,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAGzG,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAMpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAE5D,MAAM,WAAW,yBAA0B,SAAQ,0BAA0B;IACzE,iBAAiB,EAAE,kBAAkB,CAAC;CACzC;AAED,MAAM,WAAW,+BAAgC,SAAQ,0BAA0B;IAC/E,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,MAAM,WAAW,iCAAkC,SAAQ,0BAA0B;IACjF,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,oBAAoB,0MAqBhC,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAEzE,eAAO,MAAM,iBAAiB,6MAS7B,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5E,eAAO,MAAM,mBAAmB,sMAS/B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2007-2026 GoodData Corporation
|
|
2
2
|
import { createAction } from "@reduxjs/toolkit";
|
|
3
|
-
import {
|
|
3
|
+
import { _omit } from "@gooddata/util";
|
|
4
4
|
import { DEFAULT_POST_MESSAGE_CONTEXT_ID, createPostMessageContextFromId, } from "../actions/post_message_action_helper.js";
|
|
5
5
|
import { PostEventActionTypeKeys } from "./action_types.js";
|
|
6
6
|
export const openInsightRequested = createAction(PostEventActionTypeKeys.OPEN_INSIGHT_REQUESTED, (openInsightCommandData) => {
|
|
@@ -12,7 +12,7 @@ export const openInsightRequested = createAction(PostEventActionTypeKeys.OPEN_IN
|
|
|
12
12
|
*/
|
|
13
13
|
const { insightId, reportId } = data;
|
|
14
14
|
const customRouteParams = {
|
|
15
|
-
...
|
|
15
|
+
..._omit(data, "insightId"),
|
|
16
16
|
reportId: insightId || reportId,
|
|
17
17
|
};
|
|
18
18
|
const payload = {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Options of {@link startParentOriginValidation}.
|
|
3
|
+
*
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export interface IStartParentOriginValidationOptions {
|
|
7
|
+
/**
|
|
8
|
+
* Value of `enableEmbeddingOriginValidation`.
|
|
9
|
+
*/
|
|
10
|
+
isOriginValidationEnabled: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* True when AD is embedded in an iframe (`/embedded/` URL).
|
|
13
|
+
*/
|
|
14
|
+
isIframeEmbedded: boolean;
|
|
15
|
+
organizationId: string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Origin of the first `setApiToken`, already validated by the host.
|
|
18
|
+
*/
|
|
19
|
+
handshakeOrigin?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Decides how the outgoing window events go to the parent. Call it at mount, after the backend is
|
|
23
|
+
* adopted and before the sagas start.
|
|
24
|
+
*
|
|
25
|
+
* With origin validation on, in a frame that has a parent, the events wait until the parent origin
|
|
26
|
+
* is validated and then go to that origin only. In all other cases they go to `*`, as before. Events
|
|
27
|
+
* for a host adapter (AD rendered in-process) do not go through the window, so the gate does not
|
|
28
|
+
* apply to them.
|
|
29
|
+
*
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
export declare function startParentOriginValidation({ isOriginValidationEnabled, isIframeEmbedded, organizationId, handshakeOrigin, }: IStartParentOriginValidationOptions): void;
|
|
33
|
+
/**
|
|
34
|
+
* Stops the parent origin resolution at unmount.
|
|
35
|
+
*
|
|
36
|
+
* @internal
|
|
37
|
+
*/
|
|
38
|
+
export declare function stopParentOriginValidation(): void;
|
|
39
|
+
//# sourceMappingURL=parent_origin_validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parent_origin_validation.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/outgoing/parent_origin_validation.ts"],"names":[],"mappings":"AAWA;;;;GAIG;AACH,MAAM,WAAW,mCAAmC;IAChD;;OAEG;IACH,yBAAyB,EAAE,OAAO,CAAC;IACnC;;OAEG;IACH,gBAAgB,EAAE,OAAO,CAAC;IAC1B,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,2BAA2B,CAAC,EACxC,yBAAyB,EACzB,gBAAgB,EAChB,cAAc,EACd,eAAe,GAClB,EAAE,mCAAmC,GAAG,IAAI,CAa5C;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,IAAI,IAAI,CAEjD"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// (C) 2026 GoodData Corporation
|
|
2
|
+
import { resetEventGate, resolveVisibleParentOrigin, startParentOriginResolution, stopParentOriginResolution, } from "@gooddata/sdk-embedding/internal";
|
|
3
|
+
import { validateHostDomain } from "../sagas/command_received_saga.js";
|
|
4
|
+
/**
|
|
5
|
+
* Decides how the outgoing window events go to the parent. Call it at mount, after the backend is
|
|
6
|
+
* adopted and before the sagas start.
|
|
7
|
+
*
|
|
8
|
+
* With origin validation on, in a frame that has a parent, the events wait until the parent origin
|
|
9
|
+
* is validated and then go to that origin only. In all other cases they go to `*`, as before. Events
|
|
10
|
+
* for a host adapter (AD rendered in-process) do not go through the window, so the gate does not
|
|
11
|
+
* apply to them.
|
|
12
|
+
*
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
export function startParentOriginValidation({ isOriginValidationEnabled, isIframeEmbedded, organizationId, handshakeOrigin, }) {
|
|
16
|
+
// An embed link opened directly is "iframe" by its URL, but has no parent: it never holds.
|
|
17
|
+
const hasParent = window.parent !== window;
|
|
18
|
+
if (!isOriginValidationEnabled || !isIframeEmbedded || !hasParent) {
|
|
19
|
+
resetEventGate();
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
startParentOriginResolution({
|
|
23
|
+
// The Tiger endpoint takes the organization from the credentials, not from the id.
|
|
24
|
+
validate: (origin) => validateHostDomain(organizationId ?? "", origin),
|
|
25
|
+
visibleOrigin: resolveVisibleParentOrigin(),
|
|
26
|
+
handshakeOrigin,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Stops the parent origin resolution at unmount.
|
|
31
|
+
*
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
export function stopParentOriginValidation() {
|
|
35
|
+
stopParentOriginResolution();
|
|
36
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type Channel } from "redux-saga";
|
|
1
2
|
import { type IDrillableItemsCommandBody } from "@gooddata/sdk-embedding";
|
|
2
3
|
import { PostEventActionTypeKeys } from "../actions/action_types.js";
|
|
3
4
|
import { type ICommandReceivedAction } from "../actions/command_received_actions.js";
|
|
@@ -51,5 +52,71 @@ export declare function handleReceivedCommand({ payload: { data: commandData, or
|
|
|
51
52
|
payload: import("@gooddata/sdk-embedding").IFilterContextContent & import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
52
53
|
type: PostEventActionTypeKeys.SET_FILTER_CONTEXT_REQUESTED;
|
|
53
54
|
}>, void, boolean>;
|
|
54
|
-
export declare function watchCommandReceived(): Generator<import("redux-saga/effects").
|
|
55
|
+
export declare function watchCommandReceived(): Generator<import("redux-saga/effects").ActionChannelEffect | import("redux-saga/effects").CallEffect<Generator<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").CallEffect<boolean> | Generator<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").PutEffect<{
|
|
56
|
+
payload: undefined;
|
|
57
|
+
type: import("../../sagas/application_context/application_context_actions.js").ApplicationContextActionsTypeKeys;
|
|
58
|
+
}> | import("redux-saga/effects").SelectEffect, void, string | undefined> | Generator<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").PutEffect<{
|
|
59
|
+
payload: import("../../actions/confirm_unsaved_changes_actions.js").IConfirmUnsavedChangesDialogActionPayload;
|
|
60
|
+
type: import("../../constants/actions.js").ActionTypeKeys.SAGA_CONFIRM_UNSAVED_CHANGES_REQUEST;
|
|
61
|
+
}> | import("redux-saga/effects").SelectEffect, void, boolean> | Generator<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").PutEffect<{
|
|
62
|
+
payload: string | undefined;
|
|
63
|
+
type: import("../../constants/actions.js").ActionTypeKeys.SET_TIMEZONE_OVERRIDE;
|
|
64
|
+
}> | import("redux-saga/effects").SelectEffect, void, boolean> | import("redux-saga/effects").PutEffect<{
|
|
65
|
+
payload: IDrillableItemsCommandBody;
|
|
66
|
+
type: import("../../constants/actions.js").ActionTypeKeys.CONVERT_DRILLABLE_ITEMS;
|
|
67
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
68
|
+
payload: import("../actions/command_error_actions.js").IInsecureCommandFailedActionPayload;
|
|
69
|
+
type: PostEventActionTypeKeys.INSECURE_COMMAND_FAILED;
|
|
70
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
71
|
+
payload: import("../actions/open_insight_actions.js").IOpenInsightActionPayload;
|
|
72
|
+
type: PostEventActionTypeKeys.OPEN_INSIGHT_REQUESTED;
|
|
73
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
74
|
+
payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
75
|
+
type: PostEventActionTypeKeys.HOST_VERIFICATION_FAILED;
|
|
76
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
77
|
+
payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
78
|
+
type: PostEventActionTypeKeys.CLEAR_INSIGHT_REQUESTED;
|
|
79
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
80
|
+
payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
81
|
+
type: PostEventActionTypeKeys.CLEAR_INSIGHT_CONTENT_REQUESTED;
|
|
82
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
83
|
+
payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
84
|
+
type: PostEventActionTypeKeys.UNDO_REQUESTED;
|
|
85
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
86
|
+
payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
87
|
+
type: PostEventActionTypeKeys.REDO_REQUESTED;
|
|
88
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
89
|
+
payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload & import("@gooddata/sdk-embedding").IAdExportInsightCommandBody;
|
|
90
|
+
type: PostEventActionTypeKeys.EXPORT_INSIGHT_REQUESTED;
|
|
91
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
92
|
+
payload: import("@gooddata/sdk-embedding").IRemoveFilterContextContent & import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
93
|
+
type: PostEventActionTypeKeys.REMOVE_FILTER_CONTEXT_REQUESTED;
|
|
94
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
95
|
+
payload: import("@gooddata/sdk-embedding").IAdSaveAsInsightCommandBody & import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
96
|
+
type: PostEventActionTypeKeys.SAVE_AS_INSIGHT_REQUESTED;
|
|
97
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
98
|
+
payload: import("@gooddata/sdk-embedding").IAdSaveCommandBody & import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
99
|
+
type: PostEventActionTypeKeys.SAVE_INSIGHT_REQUESTED;
|
|
100
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
101
|
+
payload: import("@gooddata/sdk-embedding").IFilterContextContent & import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
102
|
+
type: PostEventActionTypeKeys.SET_FILTER_CONTEXT_REQUESTED;
|
|
103
|
+
}>, void, boolean>> | import("redux-saga/effects").ChannelTakeEffect<{
|
|
104
|
+
payload: {
|
|
105
|
+
data: import("@gooddata/sdk-embedding").AdCommandData;
|
|
106
|
+
origin: string;
|
|
107
|
+
};
|
|
108
|
+
type: PostEventActionTypeKeys.COMMAND_RECEIVED;
|
|
109
|
+
}>, void, Channel<{
|
|
110
|
+
payload: {
|
|
111
|
+
data: import("@gooddata/sdk-embedding").AdCommandData;
|
|
112
|
+
origin: string;
|
|
113
|
+
};
|
|
114
|
+
type: PostEventActionTypeKeys.COMMAND_RECEIVED;
|
|
115
|
+
}> & {
|
|
116
|
+
payload: {
|
|
117
|
+
data: import("@gooddata/sdk-embedding").AdCommandData;
|
|
118
|
+
origin: string;
|
|
119
|
+
};
|
|
120
|
+
type: PostEventActionTypeKeys.COMMAND_RECEIVED;
|
|
121
|
+
}>;
|
|
55
122
|
//# sourceMappingURL=command_received_saga.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command_received_saga.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/sagas/command_received_saga.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"command_received_saga.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/sagas/command_received_saga.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,YAAY,CAAC;AAG1C,OAAO,EAIH,KAAK,0BAA0B,EAgBlC,MAAM,yBAAyB,CAAC;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,13 +1,14 @@
|
|
|
1
1
|
// (C) 2020-2026 GoodData Corporation
|
|
2
|
-
import { call, put, select,
|
|
2
|
+
import { actionChannel, call, put, select, take } from "redux-saga/effects";
|
|
3
3
|
import { GdcErrorType, getEventType, isAdClearCommandData, isAdClearInsightCommandData, isAdDrillableItemsCommandData, isAdExportInsightCommandData, isAdOpenInsightCommandData, isAdRedoCommandData, isAdRemoveFilterContextCommandData, isAdRequestCancellationCommandData, isAdSaveAsInsightCommandData, isAdSaveInsightCommandData, isAdSetApiTokenCommandData, isAdSetFilterContextCommandData, isAdSetTimezoneCommandData, isAdUndoCommandData, } from "@gooddata/sdk-embedding";
|
|
4
|
+
import { notifyValidatedCommandOrigin } from "@gooddata/sdk-embedding/internal";
|
|
4
5
|
import { isValidIanaTimezoneId } from "@gooddata/sdk-model";
|
|
5
6
|
import { conversionInit } from "../../actions/drillable_items_actions.js";
|
|
6
7
|
import { setTimezoneOverride } from "../../actions/timezone_override_actions.js";
|
|
7
8
|
import { backend } from "../../backend.js";
|
|
8
9
|
import { HOST_ADAPTER_ORIGIN, getHostAdapter } from "../../embedding/hostBridge.js";
|
|
9
10
|
import { getOrganizationId } from "../../selectors/bootstrap_selector.js";
|
|
10
|
-
import { isEmbeddingWriteCommandsEnabled, isEnableTimezoneChange, } from "../../selectors/feature_flag_selector.js";
|
|
11
|
+
import { isEmbeddingOriginValidationEnabled, isEmbeddingWriteCommandsEnabled, isEnableTimezoneChange, } from "../../selectors/feature_flag_selector.js";
|
|
11
12
|
import { PostEventActionTypeKeys } from "../actions/action_types.js";
|
|
12
13
|
import { clearInsightRequested } from "../actions/clear_insight_actions.js";
|
|
13
14
|
import { clearInsightContentRequested } from "../actions/clear_insight_content_actions.js";
|
|
@@ -27,9 +28,18 @@ export async function validateHostDomain(organizationId, url) {
|
|
|
27
28
|
return backend.organization(organizationId).securitySettings().isUrlValid(url, "UI_EVENT");
|
|
28
29
|
}
|
|
29
30
|
function* isCommandOriginValid(origin) {
|
|
31
|
+
const isValidationEnabled = yield select(isEmbeddingOriginValidationEnabled);
|
|
32
|
+
// Without the flag, no backend call: every origin is valid, as before the validation existed.
|
|
33
|
+
if (!isValidationEnabled) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
30
36
|
try {
|
|
31
37
|
const organizationId = yield select(getOrganizationId);
|
|
32
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
|
+
}
|
|
33
43
|
return result;
|
|
34
44
|
}
|
|
35
45
|
catch (e) {
|
|
@@ -69,6 +79,8 @@ export function* handleReceivedCommand({ payload: { data: commandData, origin: c
|
|
|
69
79
|
? true
|
|
70
80
|
: yield call(isCommandOriginValid, commandOrigin);
|
|
71
81
|
if (!isValidOrigin) {
|
|
82
|
+
// 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.`);
|
|
72
84
|
yield put(hostVerificationFailed(contextId));
|
|
73
85
|
return;
|
|
74
86
|
}
|
|
@@ -129,5 +141,11 @@ export function* handleReceivedCommand({ payload: { data: commandData, origin: c
|
|
|
129
141
|
}
|
|
130
142
|
}
|
|
131
143
|
export function* watchCommandReceived() {
|
|
132
|
-
|
|
144
|
+
// The channel keeps the commands that arrive while a command is handled, for example while its
|
|
145
|
+
// origin check waits for the backend. The commands then run one by one in the order they arrived.
|
|
146
|
+
const commandChannel = yield actionChannel(PostEventActionTypeKeys.COMMAND_RECEIVED);
|
|
147
|
+
while (true) {
|
|
148
|
+
const commandReceivedAction = yield take(commandChannel);
|
|
149
|
+
yield call(handleReceivedCommand, commandReceivedAction);
|
|
150
|
+
}
|
|
133
151
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control_filtering_saga.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/sagas/control_filtering_saga.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"control_filtering_saga.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/sagas/control_filtering_saga.ts"],"names":[],"mappings":"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/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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
|
-
|
|
159
|
+
_uniq(attributeLocalIdentifiers).length !== attributeLocalIdentifiers.length;
|
|
160
160
|
if (areAttributeLocalIdentifiersDuplicates) {
|
|
161
161
|
throw new Error(ERROR_DUPLICATED_RANKING_FILTER_ATTRIBUTES);
|
|
162
162
|
}
|
|
@@ -547,7 +547,7 @@ export function* getValidExternalAttributeFilters(externalFilters) {
|
|
|
547
547
|
return externalFiltersFromCached;
|
|
548
548
|
}
|
|
549
549
|
// a computed attribute has no labels, so it cannot go through the display form lookup below
|
|
550
|
-
const [computedAttributeRefs, labelRefs] =
|
|
550
|
+
const [computedAttributeRefs, labelRefs] = _partition(externalObjRefs, (ref) => isComputedAttributeRef(ref));
|
|
551
551
|
const validatedComputedAttributeFilters = computedAttributeRefs.length
|
|
552
552
|
? yield call(validateExternalComputedAttributeFilters, externalFilters, computedAttributeRefs)
|
|
553
553
|
: [];
|
|
@@ -936,19 +936,19 @@ export function* validateRemoveAttributeFilters(externalAttFilters) {
|
|
|
936
936
|
}
|
|
937
937
|
return mappingRemoveFilters;
|
|
938
938
|
}, { identifiers: [], uris: [] });
|
|
939
|
-
if (
|
|
939
|
+
if (_uniq(uris).length !== uris.length) {
|
|
940
940
|
throw new Error(ERROR_DUPLICATED_ATTRIBUTE_FILTER_URIS);
|
|
941
941
|
}
|
|
942
942
|
yield call(rejectComputedAttributesWhenDisabled, identifiers.some(({ dfType }) => dfType === "computedAttribute"));
|
|
943
943
|
// a label and a computed attribute sharing the identifier are two different filters
|
|
944
|
-
if (
|
|
944
|
+
if (_uniqBy(identifiers, ({ identifier, dfType }) => `${dfType}.${identifier}`).length !==
|
|
945
945
|
identifiers.length) {
|
|
946
946
|
throw new Error(ERROR_DUPLICATED_ATTRIBUTE_FILTER_IDENTIFIERS);
|
|
947
947
|
}
|
|
948
948
|
// validate external attribute filters uris; computed attributes have no labels and resolve through
|
|
949
949
|
// their own service
|
|
950
950
|
const appState = yield select();
|
|
951
|
-
const [computedAttributeIdentifiers, labelIdentifiers] =
|
|
951
|
+
const [computedAttributeIdentifiers, labelIdentifiers] = _partition(identifiers, ({ dfType }) => dfType === "computedAttribute");
|
|
952
952
|
const objRefs = [];
|
|
953
953
|
labelIdentifiers.forEach(({ identifier }) => objRefs.push(idRef(identifier, "displayForm")));
|
|
954
954
|
uris.forEach((uri) => objRefs.push(uriRef(uri)));
|
|
@@ -1,2 +1,68 @@
|
|
|
1
|
-
export declare function watchIncomingCommands(): Generator<import("redux-saga/effects").AllEffect<Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown
|
|
1
|
+
export declare function watchIncomingCommands(): Generator<import("redux-saga/effects").AllEffect<Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown> | Generator<import("redux-saga/effects").ActionChannelEffect | import("redux-saga/effects").CallEffect<Generator<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").CallEffect<boolean> | Generator<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").PutEffect<{
|
|
2
|
+
payload: undefined;
|
|
3
|
+
type: import("../../sagas/application_context/application_context_actions.js").ApplicationContextActionsTypeKeys;
|
|
4
|
+
}> | import("redux-saga/effects").SelectEffect, void, string | undefined> | Generator<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").PutEffect<{
|
|
5
|
+
payload: import("../../actions/confirm_unsaved_changes_actions.js").IConfirmUnsavedChangesDialogActionPayload;
|
|
6
|
+
type: import("../../constants/actions.js").ActionTypeKeys.SAGA_CONFIRM_UNSAVED_CHANGES_REQUEST;
|
|
7
|
+
}> | import("redux-saga/effects").SelectEffect, void, boolean> | Generator<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").PutEffect<{
|
|
8
|
+
payload: string | undefined;
|
|
9
|
+
type: import("../../constants/actions.js").ActionTypeKeys.SET_TIMEZONE_OVERRIDE;
|
|
10
|
+
}> | import("redux-saga/effects").SelectEffect, void, boolean> | import("redux-saga/effects").PutEffect<{
|
|
11
|
+
payload: import("@gooddata/sdk-embedding").IDrillableItemsCommandBody;
|
|
12
|
+
type: import("../../constants/actions.js").ActionTypeKeys.CONVERT_DRILLABLE_ITEMS;
|
|
13
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
14
|
+
payload: import("../actions/command_error_actions.js").IInsecureCommandFailedActionPayload;
|
|
15
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.INSECURE_COMMAND_FAILED;
|
|
16
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
17
|
+
payload: import("../actions/open_insight_actions.js").IOpenInsightActionPayload;
|
|
18
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.OPEN_INSIGHT_REQUESTED;
|
|
19
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
20
|
+
payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
21
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.HOST_VERIFICATION_FAILED;
|
|
22
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
23
|
+
payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
24
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.CLEAR_INSIGHT_REQUESTED;
|
|
25
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
26
|
+
payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
27
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.CLEAR_INSIGHT_CONTENT_REQUESTED;
|
|
28
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
29
|
+
payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
30
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.UNDO_REQUESTED;
|
|
31
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
32
|
+
payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
33
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.REDO_REQUESTED;
|
|
34
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
35
|
+
payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload & import("@gooddata/sdk-embedding").IAdExportInsightCommandBody;
|
|
36
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.EXPORT_INSIGHT_REQUESTED;
|
|
37
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
38
|
+
payload: import("@gooddata/sdk-embedding").IRemoveFilterContextContent & import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
39
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.REMOVE_FILTER_CONTEXT_REQUESTED;
|
|
40
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
41
|
+
payload: import("@gooddata/sdk-embedding").IAdSaveAsInsightCommandBody & import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
42
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.SAVE_AS_INSIGHT_REQUESTED;
|
|
43
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
44
|
+
payload: import("@gooddata/sdk-embedding").IAdSaveCommandBody & import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
45
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.SAVE_INSIGHT_REQUESTED;
|
|
46
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
47
|
+
payload: import("@gooddata/sdk-embedding").IFilterContextContent & import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
48
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.SET_FILTER_CONTEXT_REQUESTED;
|
|
49
|
+
}>, void, boolean>> | import("redux-saga/effects").ChannelTakeEffect<{
|
|
50
|
+
payload: {
|
|
51
|
+
data: import("@gooddata/sdk-embedding").AdCommandData;
|
|
52
|
+
origin: string;
|
|
53
|
+
};
|
|
54
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.COMMAND_RECEIVED;
|
|
55
|
+
}>, void, import("redux-saga").Channel<{
|
|
56
|
+
payload: {
|
|
57
|
+
data: import("@gooddata/sdk-embedding").AdCommandData;
|
|
58
|
+
origin: string;
|
|
59
|
+
};
|
|
60
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.COMMAND_RECEIVED;
|
|
61
|
+
}> & {
|
|
62
|
+
payload: {
|
|
63
|
+
data: import("@gooddata/sdk-embedding").AdCommandData;
|
|
64
|
+
origin: string;
|
|
65
|
+
};
|
|
66
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.COMMAND_RECEIVED;
|
|
67
|
+
}>>, void, unknown>;
|
|
2
68
|
//# sourceMappingURL=incoming_command_sagas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"incoming_command_sagas.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/sagas/incoming_command_sagas.ts"],"names":[],"mappings":"AAoBA,wBAAiB,qBAAqB
|
|
1
|
+
{"version":3,"file":"incoming_command_sagas.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/sagas/incoming_command_sagas.ts"],"names":[],"mappings":"AAoBA,wBAAiB,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAkBrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post_message_saga_helper.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/sagas/post_message_saga_helper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"post_message_saga_helper.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/sagas/post_message_saga_helper.ts"],"names":[],"mappings":"AAEA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EACH,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,EAElC,MAAM,kCAAkC,CAAC;AAK1C,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC1F,OAAO,EAEH,KAAK,0BAA0B,EAClC,MAAM,0CAA0C,CAAC;AAkBlD,eAAO,MAAM,yBAAyB,oBACjB,OAAO,mCAEzB,MAAM,CAAC,MAAM,EAAE,MAAM,CAUvB,CAAC;AAEF,wBAAgB,uBAAuB,CAAC,yBAAyB,CAAC,EAAE,0BAA0B,GAAG,MAAM,CAGtG;AAED,wBAAgB,sCAAsC,CAAC,WAAW,EAAE,aAAa,GAAG,MAAM,CAGzF;AAED,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAE3D;AAED,wBAAgB,qBAAqB,CAAC,EAClC,IAAI,EACJ,EAAE,EACF,WAAW,EACX,aAAa,GAChB,EAAE,0BAA0B,GAAG,iBAAiB,CAehD;AAED,wBAAgB,2BAA2B,CACvC,UAAU,EAAE,0BAA0B,EACtC,qBAAqB,EAAE,MAAM,EAC7B,eAAe,EAAE,OAAO,EACxB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM;;;EAoB9B;AAUD,wBAAgB,4CAA4C,CACxD,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,eAAe,GAC7B,aAAa,CAIf;AAED;;;;;;;GAOG;AACH,wBAAgB,mDAAmD,CAC/D,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,eAAe,EAC5B,MAAM,GAAE,kBAAkC,GAC3C,aAAa,CAOf"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2020-2026 GoodData Corporation
|
|
2
|
-
import { omit } from "lodash-es";
|
|
3
2
|
import moment from "moment";
|
|
4
3
|
import { filterConverters, } from "@gooddata/sdk-embedding/internal";
|
|
4
|
+
import { _omit } from "@gooddata/util";
|
|
5
5
|
import { ALL_TIME } from "../../constants/presets.js";
|
|
6
6
|
import { GRANULARITY } from "../../models/granularity.js";
|
|
7
7
|
import { DEFAULT_POST_MESSAGE_CONTEXT_ID, } from "../actions/post_message_action_helper.js";
|
|
@@ -27,9 +27,9 @@ export const getSupportedGranularities = (isTimeSupported, isSecondsSupported =
|
|
|
27
27
|
// otherwise an embedder could set a second filter that the UI then rejects and resets.
|
|
28
28
|
return isSecondsSupported
|
|
29
29
|
? SUPPORTED_DATE_GRANULARITY
|
|
30
|
-
:
|
|
30
|
+
: _omit(SUPPORTED_DATE_GRANULARITY, ["GDC.time.second"]);
|
|
31
31
|
}
|
|
32
|
-
return
|
|
32
|
+
return _omit(SUPPORTED_DATE_GRANULARITY, ["GDC.time.second", "GDC.time.minute", "GDC.time.hour"]);
|
|
33
33
|
};
|
|
34
34
|
export function getPostMessageContextId(postMessageContextContent) {
|
|
35
35
|
const { contextId } = postMessageContextContent || {};
|
|
@@ -15,7 +15,10 @@ export declare function openReportRequested({ payload: { forceOpen, insightRef }
|
|
|
15
15
|
type: ActionTypeKeys.SHOW_DIALOG_OPEN_REPORT_CONFIRMATION;
|
|
16
16
|
}> | import("redux-saga/effects").SelectEffect, void, never>;
|
|
17
17
|
export declare function getReferencedObjects(projectId: string, insight: IInsight): Generator<import("redux-saga/effects").CallEffect<IInsightReferences>, IInsightReferences, IInsightReferences>;
|
|
18
|
-
export declare function getObjectsReferencing(projectId: string, insight: IInsight): Generator<import("redux-saga/effects").CallEffect<import("@gooddata/sdk-backend-spi").IInsightReferencing>,
|
|
18
|
+
export declare function getObjectsReferencing(projectId: string, insight: IInsight): Generator<import("redux-saga/effects").CallEffect<import("@gooddata/sdk-backend-spi").IInsightReferencing>, {
|
|
19
|
+
dashboards: IMetadataObject[];
|
|
20
|
+
documents: IMetadataObject[];
|
|
21
|
+
}, import("@gooddata/sdk-backend-spi").IInsightReferencing>;
|
|
19
22
|
/**
|
|
20
23
|
* Switches to a dataset that is relevant to the current insight if the dataset selected when opening the insight is not relevant.
|
|
21
24
|
* @param datasetsFromInsight - datasets referenced by insight
|
|
@@ -91,7 +94,10 @@ export declare function failOnMissingDateFilterItems(insight: IInsight): Generat
|
|
|
91
94
|
* date values mode.
|
|
92
95
|
*/
|
|
93
96
|
export declare function hasDateFilterWithUnsupportedGranularity(insight: IInsight): boolean;
|
|
94
|
-
export declare function fetchReport(projectId: string, reportId: string): Generator<import("redux-saga/effects").AllEffect<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").CallEffect<
|
|
97
|
+
export declare function fetchReport(projectId: string, reportId: string): Generator<import("redux-saga/effects").AllEffect<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").CallEffect<{
|
|
98
|
+
dashboards: IMetadataObject[];
|
|
99
|
+
documents: IMetadataObject[];
|
|
100
|
+
}>> | import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").CallEffect<number> | import("redux-saga/effects").CallEffect<import("@gooddata/sdk-model").IListedDashboard[]> | import("redux-saga/effects").CallEffect<IApplicationResetCarrier> | import("redux-saga/effects").CallEffect<import("../store/report/open_report_operation.js").IOpenReportResult> | import("redux-saga/effects").CallEffect<IParameterRestoreResult> | import("redux-saga/effects").CallEffect<{
|
|
95
101
|
itemCache: {
|
|
96
102
|
[x: string]: import("../typings/state_objects.js").ICatalogEntry;
|
|
97
103
|
};
|
|
@@ -143,6 +149,7 @@ export declare function fetchReport(projectId: string, reportId: string): Genera
|
|
|
143
149
|
payload: {
|
|
144
150
|
usages: IMetadataObject[];
|
|
145
151
|
dashboards: import("@gooddata/sdk-model").IListedDashboard[];
|
|
152
|
+
documents: IMetadataObject[];
|
|
146
153
|
};
|
|
147
154
|
type: ActionTypeKeys.STORE_UPDATE_INSIGHT_USAGE_ON_DASHBOARDS;
|
|
148
155
|
}> | import("redux-saga/effects").SelectEffect | import("redux-saga/effects").TakeEffect, void, never>;
|