@gooddata/sdk-ui-analytical-designer 11.68.0-alpha.0 → 11.68.0-alpha.2

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 (158) hide show
  1. package/NOTICE +49 -13
  2. package/README.md +2 -2
  3. package/esm/actions/app_context_actions.d.ts +0 -14
  4. package/esm/actions/app_context_actions.d.ts.map +1 -1
  5. package/esm/actions/delete_actions.d.ts +1 -1
  6. package/esm/actions/delete_actions.d.ts.map +1 -1
  7. package/esm/actions/delete_actions.js +1 -1
  8. package/esm/actions/report_actions.d.ts +0 -25
  9. package/esm/actions/report_actions.d.ts.map +1 -1
  10. package/esm/actions/report_actions.js +0 -28
  11. package/esm/components/CatalogPanel.d.ts +1 -5
  12. package/esm/components/CatalogPanel.d.ts.map +1 -1
  13. package/esm/components/CatalogPanel.js +4 -28
  14. package/esm/components/catalog/Catalog.d.ts.map +1 -1
  15. package/esm/components/catalog/Catalog.js +2 -5
  16. package/esm/components/catalog/CatalogList.d.ts +0 -2
  17. package/esm/components/catalog/CatalogList.d.ts.map +1 -1
  18. package/esm/components/catalog/CatalogList.js +2 -2
  19. package/esm/components/catalog/CatalogVisual.d.ts +1 -3
  20. package/esm/components/catalog/CatalogVisual.d.ts.map +1 -1
  21. package/esm/components/catalog/CatalogVisual.js +2 -2
  22. package/esm/components/catalog/blocks/EmptyCatalogWarning.d.ts +1 -3
  23. package/esm/components/catalog/blocks/EmptyCatalogWarning.d.ts.map +1 -1
  24. package/esm/components/catalog/blocks/EmptyCatalogWarning.js +3 -3
  25. package/esm/components/catalog/item/CatalogDetailsBubble.d.ts.map +1 -1
  26. package/esm/components/catalog/item/CatalogDetailsBubble.js +7 -44
  27. package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/AdditionalDateAttributesDropdown.js +1 -1
  28. package/esm/components/header/InsightPickerDialog.d.ts.map +1 -1
  29. package/esm/components/header/InsightPickerDialog.js +5 -1
  30. package/esm/components/header/VisualizationsDropdown.d.ts.map +1 -1
  31. package/esm/components/header/VisualizationsDropdown.js +13 -11
  32. package/esm/components/report/WorkspaceEmpty.d.ts.map +1 -1
  33. package/esm/components/report/WorkspaceEmpty.js +1 -10
  34. package/esm/components/shared/ComputedAttributeBubbleContent.d.ts.map +1 -1
  35. package/esm/components/shared/ComputedAttributeBubbleContent.js +2 -2
  36. package/esm/components/shared/MeasureBubbleContent.d.ts +2 -9
  37. package/esm/components/shared/MeasureBubbleContent.d.ts.map +1 -1
  38. package/esm/components/shared/MeasureBubbleContent.js +5 -11
  39. package/esm/constants/actions.d.ts +0 -4
  40. package/esm/constants/actions.d.ts.map +1 -1
  41. package/esm/constants/actions.js +0 -4
  42. package/esm/create_store.js +1 -1
  43. package/esm/embedding/platformContext.d.ts +2 -2
  44. package/esm/embedding/platformContext.d.ts.map +1 -1
  45. package/esm/embedding/platformContext.js +2 -8
  46. package/esm/internal.d.ts +1 -2
  47. package/esm/internal.d.ts.map +1 -1
  48. package/esm/internal.js +1 -2
  49. package/esm/reduxStore.d.ts +1 -1
  50. package/esm/reduxStore.d.ts.map +1 -1
  51. package/esm/reduxStore.js +1 -1
  52. package/esm/sagas/bootstrap/backendBootstrapData.d.ts +1 -1
  53. package/esm/sagas/bootstrap/backendBootstrapData.js +1 -1
  54. package/esm/sagas/bootstrap/verifyUserAccess.d.ts.map +1 -1
  55. package/esm/sagas/bootstrap/verifyUserAccess.js +1 -5
  56. package/esm/sagas/bootstrap_error_sagas.d.ts +1 -1
  57. package/esm/sagas/bootstrap_error_sagas.d.ts.map +1 -1
  58. package/esm/sagas/bootstrap_error_sagas.js +1 -3
  59. package/esm/sagas/delete_report_sagas.d.ts.map +1 -1
  60. package/esm/sagas/delete_report_sagas.js +6 -3
  61. package/esm/sagas/drillable_items_sagas.d.ts +2 -3
  62. package/esm/sagas/drillable_items_sagas.d.ts.map +1 -1
  63. package/esm/sagas/drillable_items_sagas.js +2 -6
  64. package/esm/sagas/export_report_sagas.d.ts +1 -23
  65. package/esm/sagas/export_report_sagas.d.ts.map +1 -1
  66. package/esm/sagas/export_report_sagas.js +5 -51
  67. package/esm/sagas/sagas.d.ts.map +1 -1
  68. package/esm/sagas/sagas.js +0 -2
  69. package/esm/selectors/backend_capabilities_selector.d.ts +0 -1
  70. package/esm/selectors/backend_capabilities_selector.d.ts.map +1 -1
  71. package/esm/selectors/backend_capabilities_selector.js +0 -1
  72. package/esm/selectors/bootstrap_selector.d.ts +0 -189
  73. package/esm/selectors/bootstrap_selector.d.ts.map +1 -1
  74. package/esm/selectors/bootstrap_selector.js +0 -13
  75. package/esm/selectors/feature_flag_selector.d.ts +8 -28
  76. package/esm/selectors/feature_flag_selector.d.ts.map +1 -1
  77. package/esm/selectors/feature_flag_selector.js +2 -1
  78. package/esm/selectors/insight_delete_selector.d.ts +122 -0
  79. package/esm/selectors/insight_delete_selector.d.ts.map +1 -0
  80. package/esm/selectors/insight_delete_selector.js +13 -0
  81. package/esm/selectors/report_visualization_selector.d.ts +4 -0
  82. package/esm/selectors/report_visualization_selector.d.ts.map +1 -1
  83. package/esm/services/bootstrap_error_service.d.ts +1 -4
  84. package/esm/services/bootstrap_error_service.d.ts.map +1 -1
  85. package/esm/services/bootstrap_error_service.js +12 -46
  86. package/esm/services/report_service.d.ts +1 -2
  87. package/esm/services/report_service.d.ts.map +1 -1
  88. package/esm/services/report_service.js +1 -35
  89. package/esm/services/telemetry/tracking_events.d.ts +0 -7
  90. package/esm/services/telemetry/tracking_events.d.ts.map +1 -1
  91. package/esm/services/telemetry/tracking_events.js +0 -5
  92. package/esm/store/messages/messages_slice.d.ts.map +1 -1
  93. package/esm/store/messages/messages_slice.js +5 -11
  94. package/esm/translations/de-DE.json +6 -1
  95. package/esm/translations/en-AU.json +6 -1
  96. package/esm/translations/en-GB.json +6 -1
  97. package/esm/translations/en-US.json +3 -23
  98. package/esm/translations/es-419.json +6 -1
  99. package/esm/translations/es-ES.json +6 -1
  100. package/esm/translations/fi-FI.json +6 -1
  101. package/esm/translations/fr-CA.json +8 -3
  102. package/esm/translations/fr-FR.json +6 -1
  103. package/esm/translations/id-ID.json +6 -1
  104. package/esm/translations/it-IT.json +7 -2
  105. package/esm/translations/ja-JP.json +8 -3
  106. package/esm/translations/ko-KR.json +34 -29
  107. package/esm/translations/nl-NL.json +6 -1
  108. package/esm/translations/pl-PL.json +27 -22
  109. package/esm/translations/pt-BR.json +6 -1
  110. package/esm/translations/pt-PT.json +6 -1
  111. package/esm/translations/ru-RU.json +8 -3
  112. package/esm/translations/sl-SI.json +6 -1
  113. package/esm/translations/th-TH.json +6 -1
  114. package/esm/translations/tr-TR.json +18 -13
  115. package/esm/translations/uk-UA.json +6 -1
  116. package/esm/translations/vi-VN.json +6 -1
  117. package/esm/translations/zh-HK.json +33 -28
  118. package/esm/translations/zh-Hans.json +6 -1
  119. package/esm/translations/zh-Hant.json +24 -19
  120. package/esm/typings/bear/bearTypes.d.ts +0 -3
  121. package/esm/typings/bear/bearTypes.d.ts.map +1 -1
  122. package/esm/typings/catalog.d.ts +0 -2
  123. package/esm/typings/catalog.d.ts.map +1 -1
  124. package/esm/utils/api.d.ts +0 -2
  125. package/esm/utils/api.d.ts.map +1 -1
  126. package/esm/utils/api.js +0 -9
  127. package/esm/utils/custom_mouse_backend.js +1 -1
  128. package/esm/utils/location.d.ts +1 -3
  129. package/esm/utils/location.d.ts.map +1 -1
  130. package/esm/utils/location.js +2 -7
  131. package/package.json +21 -21
  132. package/styles/css/catalog.css +1 -9
  133. package/styles/css/catalog.css.map +1 -1
  134. package/styles/css/editor_canvas.css +0 -4
  135. package/styles/css/editor_canvas.css.map +1 -1
  136. package/styles/css/main.css +1 -23
  137. package/styles/css/main.css.map +1 -1
  138. package/styles/scss/_component_overrides.scss +0 -10
  139. package/styles/scss/catalog.scss +0 -1
  140. package/styles/scss/editor_canvas.scss +0 -4
  141. package/esm/bearLegacyFunctions.d.ts +0 -22
  142. package/esm/bearLegacyFunctions.d.ts.map +0 -1
  143. package/esm/bearLegacyFunctions.js +0 -35
  144. package/esm/components/catalog/blocks/CreateMeasureLink.d.ts +0 -7
  145. package/esm/components/catalog/blocks/CreateMeasureLink.d.ts.map +0 -1
  146. package/esm/components/catalog/blocks/CreateMeasureLink.js +0 -17
  147. package/esm/sagas/application_redirect_sagas.d.ts +0 -18
  148. package/esm/sagas/application_redirect_sagas.d.ts.map +0 -1
  149. package/esm/sagas/application_redirect_sagas.js +0 -68
  150. package/esm/selectors/data_page_selector.d.ts +0 -44
  151. package/esm/selectors/data_page_selector.d.ts.map +0 -1
  152. package/esm/selectors/data_page_selector.js +0 -6
  153. package/esm/utils/sso.d.ts +0 -3
  154. package/esm/utils/sso.d.ts.map +0 -1
  155. package/esm/utils/sso.js +0 -5
  156. package/esm/utils/uri.d.ts +0 -2
  157. package/esm/utils/uri.d.ts.map +0 -1
  158. package/esm/utils/uri.js +0 -7
@@ -7,20 +7,13 @@ import { useDispatch, useSelector } from "react-redux";
7
7
  import { Bubble, BubbleHoverTrigger, Button, IconCopy, RichText, ScrollGradient } from "@gooddata/sdk-ui-kit";
8
8
  import { useTheme } from "@gooddata/sdk-ui-theme-provider";
9
9
  import { addMessage } from "../../../actions/messages_actions.js";
10
- import { COMPUTED_ATTRIBUTE } from "../../../constants/bucket.js";
11
10
  import { CatalogUiActions } from "../../../sagas/catalog/catalog_ui_actions.js";
12
11
  import { getCatalogBubbleItemCacheKey } from "../../../sagas/catalog/catalog_utils.js";
13
- import { canManageMetadata } from "../../../selectors/backend_capabilities_selector.js";
14
- import { getProjectId, getSeparators } from "../../../selectors/bootstrap_selector.js";
15
- import { getIsEmbedded } from "../../../selectors/meta_selector.js";
12
+ import { getSeparators } from "../../../selectors/bootstrap_selector.js";
16
13
  import { canEditCatalogMetric } from "../../../selectors/metric_permissions_selector.js";
17
- import { canManageMetric } from "../../../selectors/permissions_selector.js";
18
- import { isEmbeddedFromKD } from "../../../selectors/route_selector.js";
19
14
  import { getAttributeHierarchiesWithCatalogItem, getItemTooltipDetails, } from "../../../store/catalog/catalog_selector.js";
20
15
  import { metricEditorOpen } from "../../../store/metric_editor/metric_editor_actions.js";
21
- import { getMetricsEditorUrl } from "../../../utils/api.js";
22
16
  import { getCatalogItemTitle } from "../../../utils/translations.js";
23
- import { getWorkspaceRef } from "../../../utils/uri.js";
24
17
  import { AttributeBubbleContent } from "../../shared/AttributeBubbleContent.js";
25
18
  import { ComputedAttributeBubbleContent } from "../../shared/ComputedAttributeBubbleContent.js";
26
19
  import { FactBubbleContent } from "../../shared/FactBubbleContent.js";
@@ -71,11 +64,6 @@ const getBubbleDetails = (state, item) => {
71
64
  };
72
65
  export const CatalogDetailsBubble = memo(function CatalogDetailsBubble({ item }) {
73
66
  const theme = useTheme();
74
- const projectId = useSelector(getProjectId);
75
- const isEmbeddedMode = useSelector(getIsEmbedded);
76
- const isEmbeddedModeFromKD = useSelector(isEmbeddedFromKD);
77
- const canUserManageMetric = useSelector(canManageMetric);
78
- const canBackendManageMetadata = useSelector(canManageMetadata);
79
67
  const bubbleDetails = useSelector((state) => getBubbleDetails(state, item)) ?? null;
80
68
  // memoised per item: getAttributeHierarchiesWithCatalogItem builds a filtering selector, so a
81
69
  // fresh one on every render would hand useSelector a new array each time it is called
@@ -89,7 +77,6 @@ export const CatalogDetailsBubble = memo(function CatalogDetailsBubble({ item })
89
77
  const openMetricEditorDialog = useCallback((metricRef) => dispatch(metricEditorOpen(metricRef)), [dispatch]);
90
78
  const showToastMessage = useCallback((payload) => dispatch(addMessage(payload)), [dispatch]);
91
79
  const intl = useIntl();
92
- const workspacesRef = getWorkspaceRef(true);
93
80
  const bubbleTimeoutRef = useRef(null);
94
81
  // Keep the latest details in a ref so the delayed (attribute) request can re-check them at the
95
82
  // moment it fires, rather than the stale value captured when the timeout was scheduled.
@@ -152,40 +139,18 @@ export const CatalogDetailsBubble = memo(function CatalogDetailsBubble({ item })
152
139
  "s-catalogue-bubble-loading": !details,
153
140
  });
154
141
  };
155
- const openMetricsEditor = () => {
156
- const itemUri = item.uri;
157
- const url = getMetricsEditorUrl(projectId, itemUri, workspacesRef);
158
- window.open(`${window.location.origin}${url}`, "_blank");
159
- };
160
- const isRedirectAllowed = () => {
161
- const itemUri = item.uri;
162
- return (
163
- // The redirect opens the metric editor, which loads a measure. A computed attribute
164
- // borrows the metric bubble but is not one, so the editor would 404 on its uri.
165
- item.type !== COMPUTED_ATTRIBUTE &&
166
- (!isEmbeddedMode || isEmbeddedModeFromKD) &&
167
- canBackendManageMetadata &&
168
- canUserManageMetric &&
169
- !!itemUri);
170
- };
171
- const renderTitle = () => {
172
- const title = getCatalogItemTitle(item, intl);
173
- if (isRedirectAllowed()) {
174
- return (_jsx("a", { className: "gd-button-link s-adi-catalog-tooltip-title-redirect", href: getMetricsEditorUrl(projectId, item.uri, workspacesRef), target: "_blank", rel: "noopener noreferrer", children: _jsx("h3", { className: "s-adi-catalog-tooltip-heading", children: _jsx("span", { className: "gd-button-text", children: title }) }) }));
175
- }
176
- return _jsx("h3", { className: "s-adi-catalog-tooltip-heading", children: title });
177
- };
142
+ const renderTitle = () => (_jsx("h3", { className: "s-adi-catalog-tooltip-heading", children: getCatalogItemTitle(item, intl) }));
178
143
  const renderDetails = () => {
179
144
  const type = item.type;
180
145
  switch (type) {
181
146
  case "metric":
182
147
  case "measure":
183
- return (_jsx(MeasureBubbleContent, { metricMaql: getItemDetails("metricMaql"), projectId: projectId, isRedirectAllowed: isRedirectAllowed() }));
148
+ return _jsx(MeasureBubbleContent, { metricMaql: getItemDetails("metricMaql") });
184
149
  // A computed attribute is an attribute with values AND a MAQL definition: the values
185
150
  // are shown first like an attribute's, then the definition the same way a metric's is
186
151
  // - with the referenced objects resolved to their titles.
187
152
  case "computedAttribute":
188
- return (_jsx(ComputedAttributeBubbleContent, { attrElements: getItemDetails("attrElements"), attrElementsTotalCount: getItemDetails("attrElementsTotalCount"), attrElementsNumberFormat: getItemDetails("attrElementsNumberFormat"), separators: separators, metricMaql: getItemDetails("metricMaql"), projectId: projectId, isRedirectAllowed: isRedirectAllowed() }));
153
+ return (_jsx(ComputedAttributeBubbleContent, { attrElements: getItemDetails("attrElements"), attrElementsTotalCount: getItemDetails("attrElementsTotalCount"), attrElementsNumberFormat: getItemDetails("attrElementsNumberFormat"), separators: separators, metricMaql: getItemDetails("metricMaql") }));
189
154
  case "attribute":
190
155
  return (_jsx(AttributeBubbleContent, { attrElements: getItemDetails("attrElements"), attrElementsTotalCount: getItemDetails("attrElementsTotalCount"), attrElementsNumberFormat: getItemDetails("attrElementsNumberFormat"), separators: separators, dataset: getItemDetails("dataset") }));
191
156
  case "fact":
@@ -231,9 +196,7 @@ export const CatalogDetailsBubble = memo(function CatalogDetailsBubble({ item })
231
196
  { align: "cr tl", offset: { x: -15, y: 0 } },
232
197
  ], arrowStyle: { display: "none" }, children: [_jsx("div", { className: "adi-catalog-tooltip-header", children: renderTitle() }), _jsxs(ScrollGradient, { size: 13, backgroundColor: theme?.palette?.complementary?.c0, className: "adi-catalog-tooltip-scroll", contentClassName: "adi-catalog-tooltip-scroll-content", onScroll: stopEventPropagation, children: [summary ? (_jsx("div", { className: "adi-item-description s-adi-catalog-tooltip-description", children: _jsx(RichText, { referencesEnabled: true, className: "adi-item-rich-text-description", value: summary, renderMode: "view", separators: separators }) })) : null, _jsx("h4", { children: _jsx(FormattedMessage, { id: "dashboard.catalog_item.type" }) }), _jsx("p", { className: "adi-item-type s-adi-catalog-tooltip-type", children: intl.formatMessage(bucketItemTypeMessages[type] ?? {
233
198
  id: `bucket_item_types.${type}`,
234
- }) }), renderDetails(), renderIdentifier(), renderHierarchies()] }), _jsxs("div", { className: "adi-catalog-tooltip-footer", children: [!!isRedirectAllowed() && (_jsx(Button, { className: "gd-button-secondary gd-button-small s-adi-catalog-tooltip-button-redirect", value: intl.formatMessage({
235
- id: "dashboard.catalog_item.view_details",
236
- }), onClick: openMetricsEditor })), (type === "measure" || type === "metric") && (_jsx("div", { className: "adi-catalog-tooltip-metric-editor-edit", children: _jsx(Button, { className: buttonActionClassnames, value: intl.formatMessage({
237
- id: metricActionButtonValue,
238
- }), onClick: openMetricEditorDialogHandler }) }))] })] })] }) }));
199
+ }) }), renderDetails(), renderIdentifier(), renderHierarchies()] }), _jsx("div", { className: "adi-catalog-tooltip-footer", children: (type === "measure" || type === "metric") && (_jsx("div", { className: "adi-catalog-tooltip-metric-editor-edit", children: _jsx(Button, { className: buttonActionClassnames, value: intl.formatMessage({
200
+ id: metricActionButtonValue,
201
+ }), onClick: openMetricEditorDialogHandler }) })) })] })] }) }));
239
202
  });
@@ -10,7 +10,7 @@ import { DateGranularitySubMenuItems } from "../../../buckets/categories/DateGra
10
10
  // dropdown gets an inline z-index from that controller and would otherwise paint over the menu
11
11
  // (the .adi-date-granularity-dropdown CSS pins 5001, tying only with un-controlled overlays).
12
12
  // Mounted only while the menu is open, so it registers on open and releases on close; without a
13
- // controller it falls back to 5001, keeping standalone AD behavior unchanged.
13
+ // controller it falls back to 5001, the same z-index as the un-controlled overlays.
14
14
  function MenuItemsWrapper({ children }) {
15
15
  const zIndex = useOverlayZIndexWithRegister();
16
16
  return (_jsx(ItemsWrapper, { className: "adi-additional-date-granularities-dropdown s-adi-additional-date-granularities-dropdown adi-date-granularity-dropdown", smallItemsSpacing: true, style: { zIndex }, children: children }));
@@ -1 +1 @@
1
- {"version":3,"file":"InsightPickerDialog.d.ts","sourceRoot":"","sources":["../../../src/components/header/InsightPickerDialog.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AAiB7F;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,EAChC,SAAS,EACT,KAAK,EACL,UAAU,EACV,iBAAiB,EAAE,aAAa,EAChC,WAAW,EACX,WAAW,EACX,wBAAwB,EACxB,uBAAuB,EACvB,aAAa,GAChB,EAAE,4BAA4B,2CAwH9B"}
1
+ {"version":3,"file":"InsightPickerDialog.d.ts","sourceRoot":"","sources":["../../../src/components/header/InsightPickerDialog.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AAqB7F;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,EAChC,SAAS,EACT,KAAK,EACL,UAAU,EACV,iBAAiB,EAAE,aAAa,EAChC,WAAW,EACX,WAAW,EACX,wBAAwB,EACxB,uBAAuB,EACvB,aAAa,GAChB,EAAE,4BAA4B,2CA4H9B"}
@@ -13,6 +13,7 @@ import { descriptionTooltipOpened } from "../../sagas/description_tooltip/descri
13
13
  import { isOwnershipSupported, supportsObjectUris } from "../../selectors/backend_capabilities_selector.js";
14
14
  import { getUserLoginMD5, getUserUri } from "../../selectors/bootstrap_selector.js";
15
15
  import { getMetadataTimeZone } from "../../selectors/feature_flag_selector.js";
16
+ import { canDeleteListedInsight, shouldLoadListedInsightPermissions, } from "../../selectors/insight_delete_selector.js";
16
17
  import { getIsReadOnlyMode } from "../../store/embedding/embedding_selectors.js";
17
18
  const authorSelector = createSelector(supportsObjectUris, getUserUri, getUserLoginMD5, (isObjectUriSupported, userUri, userLoginMd5) => {
18
19
  return isObjectUriSupported ? userUri : userLoginMd5;
@@ -25,6 +26,8 @@ export function InsightPickerDialog({ workspace, label, isDisabled, selectedInsi
25
26
  const hasOwnershipSupport = useSelector(isOwnershipSupported);
26
27
  const metadataTimeZone = useSelector(getMetadataTimeZone);
27
28
  const isReadOnly = useSelector(getIsReadOnlyMode);
29
+ const canDeleteInsight = useSelector(canDeleteListedInsight);
30
+ const includePermissions = useSelector(shouldLoadListedInsightPermissions);
28
31
  const dispatch = useDispatch();
29
32
  const onDeleteInsight = useCallback((insightRef, insightTitle) => {
30
33
  dispatch(deleteReport(insightRef, false, { title: insightTitle }));
@@ -77,11 +80,12 @@ export function InsightPickerDialog({ workspace, label, isDisabled, selectedInsi
77
80
  title: intl.formatMessage({ id: "openReport.menu.delete" }),
78
81
  isDestructive: true,
79
82
  hasSeparator: true,
83
+ isAvailable: canDeleteInsight,
80
84
  onClick: (item) => {
81
85
  setIsDialogOpen(false);
82
86
  onDeleteInsight(toRef(item), item.title);
83
87
  },
84
88
  },
85
89
  ];
86
- return (_jsxs("div", { className: "s-report_select report-select editor-header-item", children: [_jsx(Button, { className: "gd-button-secondary type-metric customizable", value: label, disabled: isDisabled, onClick: () => setIsDialogOpen(true) }), isDialogOpen ? (_jsx(Dialog, { className: "open-visualizations-dialog", containerClassName: "open-visualizations-dialog-container", isModal: false, shouldCloseOnClick: () => true, onClose: () => setIsDialogOpen(false), children: _jsx("div", { className: "open-visualizations s-open-visualizations", children: _jsx(InsightPicker, { workspace: workspace, author: hasOwnershipSupport ? author : undefined, includeTags: includeTags, excludeTags: excludeTags, enabledVisualizationClassesUrls: enabledVisualizationUrls, selectedInsightId: openInsightId, metadataTimeZone: metadataTimeZone, enableSemanticSearch: isSemanticSearchEnabled, width: 740, ...pickerState, onSelect: handleSelect, onDescriptionPanelOpen: onDescriptionTooltipOpened, menuActions: menuActions }) }) })) : null] }));
90
+ return (_jsxs("div", { className: "s-report_select report-select editor-header-item", children: [_jsx(Button, { className: "gd-button-secondary type-metric customizable", value: label, disabled: isDisabled, onClick: () => setIsDialogOpen(true) }), isDialogOpen ? (_jsx(Dialog, { className: "open-visualizations-dialog", containerClassName: "open-visualizations-dialog-container", isModal: false, shouldCloseOnClick: () => true, onClose: () => setIsDialogOpen(false), children: _jsx("div", { className: "open-visualizations s-open-visualizations", children: _jsx(InsightPicker, { workspace: workspace, author: hasOwnershipSupport ? author : undefined, includeTags: includeTags, excludeTags: excludeTags, enabledVisualizationClassesUrls: enabledVisualizationUrls, selectedInsightId: openInsightId, metadataTimeZone: metadataTimeZone, enableSemanticSearch: isSemanticSearchEnabled, includePermissions: includePermissions, width: 740, ...pickerState, onSelect: handleSelect, onDescriptionPanelOpen: onDescriptionTooltipOpened, menuActions: menuActions }) }) })) : null] }));
87
91
  }
@@ -1 +1 @@
1
- {"version":3,"file":"VisualizationsDropdown.d.ts","sourceRoot":"","sources":["../../../src/components/header/VisualizationsDropdown.tsx"],"names":[],"mappings":"AA0CA,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AAmD7F;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,EACnC,SAAS,EAAE,WAAW,EACtB,KAAK,EAAE,UAAU,EACjB,UAAU,EACV,iBAAiB,EAAE,aAAa,EAChC,WAAW,EAAE,IAAI,EACjB,WAAW,EACX,wBAAwB,EAAE,+BAA+B,EACzD,uBAAuB,EAAE,2BAA2B,EACpD,aAAa,GAChB,EAAE,4BAA4B,2CAgR9B"}
1
+ {"version":3,"file":"VisualizationsDropdown.d.ts","sourceRoot":"","sources":["../../../src/components/header/VisualizationsDropdown.tsx"],"names":[],"mappings":"AA0CA,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AAwD7F;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,EACnC,SAAS,EAAE,WAAW,EACtB,KAAK,EAAE,UAAU,EACjB,UAAU,EACV,iBAAiB,EAAE,aAAa,EAChC,WAAW,EAAE,IAAI,EACjB,WAAW,EACX,wBAAwB,EAAE,+BAA+B,EACzD,uBAAuB,EAAE,2BAA2B,EACpD,aAAa,GAChB,EAAE,4BAA4B,2CAkR9B"}
@@ -15,7 +15,7 @@ import { descriptionTooltipOpened } from "../../sagas/description_tooltip/descri
15
15
  import { isOwnershipSupported, supportsObjectUris } from "../../selectors/backend_capabilities_selector.js";
16
16
  import { getUserLoginMD5, getUserUri } from "../../selectors/bootstrap_selector.js";
17
17
  import { getMetadataTimeZone } from "../../selectors/feature_flag_selector.js";
18
- import { getIsReadOnlyMode } from "../../store/embedding/embedding_selectors.js";
18
+ import { canDeleteListedInsight, shouldLoadListedInsightPermissions, } from "../../selectors/insight_delete_selector.js";
19
19
  const INSIGHT_DROPDOWN_MY_TAB_ID = defineMessage({ id: "gs.visualizationsList.tabs.my" }).id;
20
20
  const INSIGHT_DROPDOWN_ALL_TAB_ID = defineMessage({ id: "gs.visualizationsList.tabs.all" }).id;
21
21
  const dropdownTabsTranslationIds = [{ id: INSIGHT_DROPDOWN_MY_TAB_ID }, { id: INSIGHT_DROPDOWN_ALL_TAB_ID }];
@@ -49,7 +49,8 @@ export function VisualizationsDropdown({ workspace: workspaceId, label: buttonTe
49
49
  const author = useSelector(authorSelector);
50
50
  const hasOwnershipSupport = useSelector(isOwnershipSupported);
51
51
  const metadataTimeZone = useSelector(getMetadataTimeZone);
52
- const isReadOnly = useSelector(getIsReadOnlyMode);
52
+ const canDeleteInsight = useSelector(canDeleteListedInsight);
53
+ const includePermissions = useSelector(shouldLoadListedInsightPermissions);
53
54
  const onDeleteInsight = useCallback((insightRef, title) => {
54
55
  dispatch(deleteReport(insightRef, false, { title }));
55
56
  }, [dispatch]);
@@ -64,6 +65,7 @@ export function VisualizationsDropdown({ workspace: workspaceId, label: buttonTe
64
65
  tabsIds,
65
66
  tags,
66
67
  excludeTags,
68
+ includePermissions,
67
69
  });
68
70
  const matcher = useMemo(() => customMatcher(["title", "summary", "identifier"]), []);
69
71
  const { search: hybridSearch, onSearchQueryChange: setHybridSearchQuery } = useHybridSearch({
@@ -88,7 +90,7 @@ export function VisualizationsDropdown({ workspace: workspaceId, label: buttonTe
88
90
  ? [divider]
89
91
  : [
90
92
  ...(searchRelatedItems.length ? [divider] : []),
91
- ...searchRelatedItems.map((insight) => ({ insight })),
93
+ ...searchRelatedItems.map((insight) => ({ insight, isRelated: true })),
92
94
  ]),
93
95
  ], [items, searchRelatedItems, isRelatedLoading]);
94
96
  const shouldLoadNextPage = useCallback((lastItemIndex, itemsCount) => lastItemIndex >= itemsCount - 5, []);
@@ -135,16 +137,16 @@ export function VisualizationsDropdown({ workspace: workspaceId, label: buttonTe
135
137
  "unknown";
136
138
  const isSelected = identifier === openInsightId;
137
139
  const insightUriRef = uriRef(uri);
138
- // TODO: tiger does not have roles yet. It does, however have concept
139
- // of parent-child workspaces and inheritance of objects. Inherited objects are locked
140
- // and read-only. Thus the extra tiger backend check here. Once the tiger has
141
- // ACLs and true read-only indicators, we can clean this up.
142
- return (_jsx(InsightListItem, { title: title, description: description?.trim(), showDescriptionPanel: true, type: type, width: width, updated: updated ?? created, isLocked: isLocked, isSelected: isSelected, onDelete: !isReadOnly &&
143
- !isLocked &&
144
- (() => {
140
+ const canDelete = canDeleteInsight({
141
+ ...insight.insight,
142
+ isRelated: insight.isRelated,
143
+ });
144
+ return (_jsx(InsightListItem, { title: title, description: description?.trim(), showDescriptionPanel: true, type: type, width: width, updated: updated ?? created, isLocked: isLocked, isSelected: isSelected, onDelete: canDelete
145
+ ? () => {
145
146
  closeDropdown();
146
147
  onDeleteInsight(insightUriRef, title);
147
- }), onClick: () => {
148
+ }
149
+ : undefined, onClick: () => {
148
150
  closeDropdown();
149
151
  onOpenInsight(insightUriRef);
150
152
  }, onDescriptionPanelOpen: () => {
@@ -1 +1 @@
1
- {"version":3,"file":"WorkspaceEmpty.d.ts","sourceRoot":"","sources":["../../../src/components/report/WorkspaceEmpty.tsx"],"names":[],"mappings":"AAsCA,wBAAgB,cAAc,4CAmB7B"}
1
+ {"version":3,"file":"WorkspaceEmpty.d.ts","sourceRoot":"","sources":["../../../src/components/report/WorkspaceEmpty.tsx"],"names":[],"mappings":"AAUA,wBAAgB,cAAc,4CAmB7B"}
@@ -2,18 +2,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  // (C) 2007-2026 GoodData Corporation
3
3
  import { FormattedMessage, defineMessage } from "react-intl";
4
4
  import { useSelector } from "react-redux";
5
- import { getLinkToLoadDataPage } from "../../selectors/data_page_selector.js";
6
- import { isFreemiumEdition } from "../../selectors/feature_flag_selector.js";
7
5
  import { canManageProject } from "../../selectors/permissions_selector.js";
8
6
  import { ReportMessage } from "./ReportMessage.js";
9
- function FreemiumMessage({ linkToLoadDataPage, isFreemiumEdition }) {
10
- return isFreemiumEdition ? (_jsx("span", { className: "s-workspace-empty-data-load-link", children: _jsx(FormattedMessage, { id: "dashboard.message.workspace_empty.description_link", values: {
11
- dataLoadLink: (chunks) => (_jsx("a", { href: linkToLoadDataPage, rel: "noopener noreferrer", target: "_blank", children: chunks })),
12
- } }) })) : (_jsx("span", { className: "s-workspace-empty-data-load", children: _jsx(FormattedMessage, { id: "dashboard.message.workspace_empty.description_question" }) }));
13
- }
14
7
  export function WorkspaceEmpty() {
15
- const linkToLoadDataPage = useSelector((state) => getLinkToLoadDataPage(state));
16
- const isFreemium = useSelector((state) => isFreemiumEdition(state));
17
8
  const canManage = useSelector((state) => canManageProject(state));
18
- return (_jsx(ReportMessage, { headerMessageId: defineMessage({ id: "dashboard.message.workspace_empty.header" }).id, className: "adi-canvas-message-workspace-empty-result s-error-workspace-empty-result s-report-message-type-workspace_empty", children: canManage ? (_jsx(FreemiumMessage, { isFreemiumEdition: isFreemium, linkToLoadDataPage: linkToLoadDataPage })) : (_jsx("span", { className: "s-workspace-empty", children: _jsx(FormattedMessage, { id: "dashboard.message.workspace_empty.description" }) })) }));
9
+ return (_jsx(ReportMessage, { headerMessageId: defineMessage({ id: "dashboard.message.workspace_empty.header" }).id, className: "adi-canvas-message-workspace-empty-result s-error-workspace-empty-result s-report-message-type-workspace_empty", children: canManage ? (_jsx("span", { className: "s-workspace-empty-data-load", children: _jsx(FormattedMessage, { id: "dashboard.message.workspace_empty.description_question" }) })) : (_jsx("span", { className: "s-workspace-empty", children: _jsx(FormattedMessage, { id: "dashboard.message.workspace_empty.description" }) })) }));
19
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ComputedAttributeBubbleContent.d.ts","sourceRoot":"","sources":["../../../src/components/shared/ComputedAttributeBubbleContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,wCAAwC,EAC7C,KAAK,sCAAsC,EAC9C,MAAM,0BAA0B,CAAC;AAKlC,MAAM,MAAM,oCAAoC,GAAG,wCAAwC,GACvF,sCAAsC,CAAC;AAE3C;;;GAGG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,oCAAoC,2CAazF"}
1
+ {"version":3,"file":"ComputedAttributeBubbleContent.d.ts","sourceRoot":"","sources":["../../../src/components/shared/ComputedAttributeBubbleContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,wCAAwC,EAC7C,KAAK,sCAAsC,EAC9C,MAAM,0BAA0B,CAAC;AAKlC,MAAM,MAAM,oCAAoC,GAAG,wCAAwC,GACvF,sCAAsC,CAAC;AAE3C;;;GAGG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,oCAAoC,2CASzF"}
@@ -6,6 +6,6 @@ import { MeasureBubbleContent } from "./MeasureBubbleContent.js";
6
6
  * both: the values first (like an attribute), the definition after (like a metric).
7
7
  */
8
8
  export function ComputedAttributeBubbleContent(props) {
9
- const { metricMaql, projectId, isRedirectAllowed } = props;
10
- return (_jsxs("span", { children: [_jsx(TooltipValuesSection, { ...props }), _jsx(MeasureBubbleContent, { metricMaql: metricMaql, projectId: projectId, isRedirectAllowed: isRedirectAllowed })] }));
9
+ const { metricMaql } = props;
10
+ return (_jsxs("span", { children: [_jsx(TooltipValuesSection, { ...props }), _jsx(MeasureBubbleContent, { metricMaql: metricMaql })] }));
11
11
  }
@@ -1,10 +1,3 @@
1
- import { type IExpressionToken, type IOrganizedCatalogTooltipDetailsMeasure } from "../../typings/catalog.js";
2
- export interface IMaqlSegmentProps extends IExpressionToken, IMaqlSegmentOwnProps {
3
- }
4
- interface IMaqlSegmentOwnProps {
5
- projectId: string;
6
- isRedirectAllowed: boolean;
7
- }
8
- export declare function MeasureBubbleContent({ metricMaql, projectId, isRedirectAllowed, }: IOrganizedCatalogTooltipDetailsMeasure): import("react/jsx-runtime").JSX.Element;
9
- export {};
1
+ import { type IOrganizedCatalogTooltipDetailsMeasure } from "../../typings/catalog.js";
2
+ export declare function MeasureBubbleContent({ metricMaql }: IOrganizedCatalogTooltipDetailsMeasure): import("react/jsx-runtime").JSX.Element;
10
3
  //# sourceMappingURL=MeasureBubbleContent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MeasureBubbleContent.d.ts","sourceRoot":"","sources":["../../../src/components/shared/MeasureBubbleContent.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,sCAAsC,EAAE,MAAM,0BAA0B,CAAC;AA+B9G,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB,EAAE,oBAAoB;CAAG;AAEpF,UAAU,oBAAoB;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,OAAO,CAAC;CAC9B;AAgED,wBAAgB,oBAAoB,CAAC,EACjC,UAAU,EACV,SAAS,EACT,iBAAiB,GACpB,EAAE,sCAAsC,2CAexC"}
1
+ {"version":3,"file":"MeasureBubbleContent.d.ts","sourceRoot":"","sources":["../../../src/components/shared/MeasureBubbleContent.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAyB,KAAK,sCAAsC,EAAE,MAAM,0BAA0B,CAAC;AAgE9G,wBAAgB,oBAAoB,CAAC,EAAE,UAAU,EAAE,EAAE,sCAAsC,2CAW1F"}
@@ -4,20 +4,17 @@ import { useCallback } from "react";
4
4
  import { FormattedMessage } from "react-intl";
5
5
  import { useDispatch } from "react-redux";
6
6
  import { metricEditorOpen } from "../../store/metric_editor/metric_editor_actions.js";
7
- import { getMetricsEditorUrl } from "../../utils/api.js";
8
- import { getWorkspaceRef } from "../../utils/uri.js";
9
- function TooltipMetricMaql({ metricMaql, projectId, isRedirectAllowed, }) {
7
+ function TooltipMetricMaql({ metricMaql }) {
10
8
  if (metricMaql) {
11
9
  return (_jsx(_Fragment, { children: metricMaql.map((metric, idx) => {
12
- return metric.category === "text" ? (metric.title) : (_jsx(MaqlSegment, { ...metric, projectId: projectId, isRedirectAllowed: isRedirectAllowed }, idx));
10
+ return metric.category === "text" ? metric.title : _jsx(MaqlSegment, { ...metric }, idx);
13
11
  }) }));
14
12
  }
15
13
  return _jsx(FormattedMessage, { id: "loading" });
16
14
  }
17
15
  const isMeasureSegment = (category) => ["measure", "metric"].includes(category);
18
- function MaqlSegment({ title, id, category, uri, projectId, isRedirectAllowed }) {
16
+ function MaqlSegment({ title, id, category }) {
19
17
  const dispatch = useDispatch();
20
- const workspacesRef = getWorkspaceRef(true);
21
18
  const openMetricEditorDialog = useCallback((metricRef) => {
22
19
  dispatch(metricEditorOpen(metricRef));
23
20
  }, [dispatch]);
@@ -27,9 +24,6 @@ function MaqlSegment({ title, id, category, uri, projectId, isRedirectAllowed })
27
24
  identifier: id,
28
25
  });
29
26
  }, [id, category, openMetricEditorDialog]);
30
- if (uri && isRedirectAllowed) {
31
- return (_jsx("a", { className: "s-adi-maql-segment-redirect", href: getMetricsEditorUrl(projectId, uri, workspacesRef), target: "_blank", rel: "noopener noreferrer", children: _jsx(MaqlSegmentTitle, { title: title, category: category, classNames: "adi-maql-segment-link" }) }));
32
- }
33
27
  if (isMeasureSegment(category) && id) {
34
28
  return (_jsx("a", { className: "s-adi-maql-segment-link-clickable", rel: "noopener noreferrer", onClick: openMetricEditorDialogHandler, children: _jsx(MaqlSegmentTitle, { title: title, category: category, classNames: "adi-maql-segment-link adi-maql-segment-clickable s-adi-maql-segment-clickable" }) }));
35
29
  }
@@ -38,6 +32,6 @@ function MaqlSegment({ title, id, category, uri, projectId, isRedirectAllowed })
38
32
  function MaqlSegmentTitle({ category, title, classNames }) {
39
33
  return _jsx("span", { className: `${category} adi-maql-segment s-adi-maql-segment ${classNames}`, children: title });
40
34
  }
41
- export function MeasureBubbleContent({ metricMaql, projectId, isRedirectAllowed, }) {
42
- return (_jsxs("span", { children: [_jsx("h4", { className: "s-adi-catalog-tooltip-detail-heading", children: _jsx(FormattedMessage, { id: "dashboard.catalog_item.defined_as" }) }), _jsx("p", { className: "adi-metric-maql s-adi-catalog-tooltip-measure-expression", children: _jsx(TooltipMetricMaql, { metricMaql: metricMaql, projectId: projectId, isRedirectAllowed: isRedirectAllowed }) })] }));
35
+ export function MeasureBubbleContent({ metricMaql }) {
36
+ return (_jsxs("span", { children: [_jsx("h4", { className: "s-adi-catalog-tooltip-detail-heading", children: _jsx(FormattedMessage, { id: "dashboard.catalog_item.defined_as" }) }), _jsx("p", { className: "adi-metric-maql s-adi-catalog-tooltip-measure-expression", children: _jsx(TooltipMetricMaql, { metricMaql: metricMaql }) })] }));
43
37
  }
@@ -123,10 +123,6 @@ export declare enum ActionTypeKeys {
123
123
  REPORT_EXECUTION_HAS_NEGATIVE_VALUES = "REPORT_EXECUTION_HAS_NEGATIVE_VALUES",
124
124
  REPORT_EXECUTION_NO_DATA = "REPORT_EXECUTION_NO_DATA",
125
125
  REPORT_EXECUTION_EMPTY_AFM = "REPORT_EXECUTION_EMPTY_AFM",
126
- REPORT_EXPORT_REQUESTED = "REPORT_EXPORT_REQUESTED",
127
- REPORT_EXPORT_STARTED = "REPORT_EXPORT_STARTED",
128
- REPORT_EXPORT_FINISHED = "REPORT_EXPORT_FINISHED",
129
- REPORT_EXPORT_ERROR = "REPORT_EXPORT_ERROR",
130
126
  RAW_EXPORT_REQUESTED = "RAW_EXPORT_REQUESTED",
131
127
  EXPORT_RESULT = "EXPORT_RESULT",
132
128
  EXPORT_RESULT_ERROR = "EXPORT_RESULT_ERROR",
@@ -1 +1 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/constants/actions.ts"],"names":[],"mappings":"AAEA,oBAAY,cAAc;IAEtB,sBAAsB,2BAA2B;IACjD,gBAAgB,qBAAqB;IACrC,yBAAyB,8BAA8B;IACvD,sBAAsB,2BAA2B;IACjD,2BAA2B,gCAAgC;IAC3D,8BAA8B,mCAAmC;IAEjE,oBAAoB,yBAAyB;IAC7C,sCAAsC,2CAA2C;IACjF,iBAAiB,sBAAsB;IAEvC,qBAAqB,0BAA0B;IAG/C,eAAe,oBAAoB;IAEnC,cAAc,mBAAmB;IACjC,eAAe,oBAAoB;IAInC,yBAAyB,8BAA8B;IAEvD,YAAY,iBAAiB;IAI7B,kBAAkB,uBAAuB;IAEzC,yBAAyB,8BAA8B;IAEvD,UAAU,e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3D,sBAAsB,2BAA2B;IAGjD,+BAA+B,oCAAoC;IAGnE,uBAAuB,4BAA4B;IAEnD,yBAAyB,8BAA8B;IACvD,8BAA8B,mCAAmC;IAGjE,2BAA2B,gCAAgC;IAC3D,wBAAwB,6BAA6B;IACrD,yBAAyB,8BAA8B;IAEvD,wBAAwB,6BAA6B;IACrD,iBAAiB,sBAAsB;IAGvC,oCAAoC,yCAAyC;IAC7E,yCAAyC,8CAA8C;IACvF,oDAAoD,yDAAyD;IAG7G,yBAAyB,8BAA8B;IACvD,oBAAoB,yBAAyB;IAG7C,qBAAqB,0BAA0B;IAE/C,0CAA0C,+CAA+C;IAEzF,mCAAmC,wCAAwC;IAC3E,iCAAiC,sCAAsC;IAGvE,qBAAqB,0BAA0B;CAClD"}
@@ -139,10 +139,6 @@ export var ActionTypeKeys;
139
139
  ActionTypeKeys["REPORT_EXECUTION_HAS_NEGATIVE_VALUES"] = "REPORT_EXECUTION_HAS_NEGATIVE_VALUES";
140
140
  ActionTypeKeys["REPORT_EXECUTION_NO_DATA"] = "REPORT_EXECUTION_NO_DATA";
141
141
  ActionTypeKeys["REPORT_EXECUTION_EMPTY_AFM"] = "REPORT_EXECUTION_EMPTY_AFM";
142
- ActionTypeKeys["REPORT_EXPORT_REQUESTED"] = "REPORT_EXPORT_REQUESTED";
143
- ActionTypeKeys["REPORT_EXPORT_STARTED"] = "REPORT_EXPORT_STARTED";
144
- ActionTypeKeys["REPORT_EXPORT_FINISHED"] = "REPORT_EXPORT_FINISHED";
145
- ActionTypeKeys["REPORT_EXPORT_ERROR"] = "REPORT_EXPORT_ERROR";
146
142
  ActionTypeKeys["RAW_EXPORT_REQUESTED"] = "RAW_EXPORT_REQUESTED";
147
143
  ActionTypeKeys["EXPORT_RESULT"] = "EXPORT_RESULT";
148
144
  ActionTypeKeys["EXPORT_RESULT_ERROR"] = "EXPORT_RESULT_ERROR";
@@ -71,7 +71,7 @@ export function createStore(reducer = rootReducer) {
71
71
  stateSanitizer: sanitizeTimeTravel,
72
72
  },
73
73
  });
74
- // Sagas are never auto-started — every caller (standalone bootstrap, the pluggable wrapper)
74
+ // Sagas are never auto-started — every caller (the pluggable module, the embedded component)
75
75
  // invokes startSagas() explicitly when ready.
76
76
  const startSagas = () => sagaMiddleware.run(sagas);
77
77
  const subscribeControls = () => subscribeToControlsState(store);
@@ -25,8 +25,8 @@ export interface IAdBootstrapHostValues {
25
25
  colorPalette?: IColorPalette;
26
26
  theme?: ITheme;
27
27
  }
28
- /** AD's bootstrap data from host values; no applicationTitle, the host owns the tab title. */
28
+ /** AD's bootstrap data from host values. */
29
29
  export declare function hostValuesToBootstrapData({ workspaceId, locale, user, settings, organization, isOrganizationAdmin, entitlements, whiteLabeling, colorPalette, theme, }: IAdBootstrapHostValues): IBootstrapData;
30
- /** AD's bootstrap data from the platform context; no applicationTitle, the host owns the tab title. */
30
+ /** AD's bootstrap data from the platform context. */
31
31
  export declare function platformContextToBootstrapData(ctx: IPlatformContext): IBootstrapData;
32
32
  //# sourceMappingURL=platformContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"platformContext.d.ts","sourceRoot":"","sources":["../../src/embedding/platformContext.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,aAAa,EAClB,KAAK,sBAAsB,EAC3B,KAAK,OAAO,EACZ,KAAK,MAAM,EACX,KAAK,KAAK,EACV,KAAK,cAAc,EACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACH,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EAExB,MAAM,2CAA2C,CAAC;AAEnD,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,eAAe,CAAC;AAK/C;;;GAGG;AACH,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,gBAAgB,GAAG,SAAS,GAAG,SAAS,CAY3F;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACn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AS,GAAG,SAAS,CAY3F;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,KAAK,CAAC;IACZ,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,YAAY,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9C,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,YAAY,CAAC,EAAE,sBAAsB,EAAE,CAAC;IACxC,aAAa,CAAC,EAAE,cAAc,CAAC;IAC/B,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,4CAA4C;AAC5C,wBAAgB,yBAAyB,CAAC,EACtC,WAAW,EACX,MAAM,EACN,IAAI,EACJ,QAAQ,EACR,YAAY,EACZ,mBAAmB,EACnB,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,KAAK,GACR,EAAE,sBAAsB,GAAG,cAAc,CAgDzC;AAED,qDAAqD;AACrD,wBAAgB,8BAA8B,CAAC,GAAG,EAAE,gBAAgB,GAAG,cAAc,CAapF"}
@@ -19,7 +19,7 @@ export function platformContextAuthToApiToken(auth) {
19
19
  }
20
20
  return undefined;
21
21
  }
22
- /** AD's bootstrap data from host values; no applicationTitle, the host owns the tab title. */
22
+ /** AD's bootstrap data from host values. */
23
23
  export function hostValuesToBootstrapData({ workspaceId, locale, user, settings, organization, isOrganizationAdmin, entitlements, whiteLabeling, colorPalette, theme, }) {
24
24
  const projectId = workspaceId ?? "";
25
25
  const login = user.login;
@@ -42,15 +42,9 @@ export function hostValuesToBootstrapData({ workspaceId, locale, user, settings,
42
42
  uiSettings: {
43
43
  organizationName: organization?.title ?? "",
44
44
  organizationId: organization?.id,
45
- displayProjects: true,
46
- displayAccountPage: true,
47
45
  logoUrl: whiteLabeling?.logoUrl ?? "",
48
- faviconUrl: whiteLabeling?.faviconUrl ?? "",
49
- appleTouchIconUrl: whiteLabeling?.appleTouchIconUrl ?? "",
50
46
  isBranded: !!whiteLabeling?.enabled,
51
47
  documentationUrl: "https://www.gooddata.com/developers/cloud-native/doc/cloud/",
52
- supportEmail: "tiger-beta@gooddata.com",
53
- supportForumUrl: "https://support.gooddata.com/home",
54
48
  },
55
49
  project: projectId
56
50
  ? {
@@ -75,7 +69,7 @@ export function hostValuesToBootstrapData({ workspaceId, locale, user, settings,
75
69
  agGridToken: isWorkspaceScopedSettings(settings) ? settings.agGridToken : undefined,
76
70
  };
77
71
  }
78
- /** AD's bootstrap data from the platform context; no applicationTitle, the host owns the tab title. */
72
+ /** AD's bootstrap data from the platform context. */
79
73
  export function platformContextToBootstrapData(ctx) {
80
74
  return hostValuesToBootstrapData({
81
75
  workspaceId: ctx.currentWorkspaceId,
package/esm/internal.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { Root } from "./Root.js";
2
- export { store, startSagas, subscribeControls, sagaMiddleware } from "./reduxStore.js";
2
+ 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";
@@ -8,7 +8,6 @@ export { setEmbedded } from "./actions/embedded_actions.js";
8
8
  export { resetForPluggableMount } from "./actions/reset_for_pluggable_mount_actions.js";
9
9
  export { setFeatureFlagsItems } from "./actions/featureFlags_actions.js";
10
10
  export { setRouteProjectId } from "./store/router/router_actions.js";
11
- export { useAppMode } from "./appMode/appMode.js";
12
11
  export { handleHostNavigationRequest } from "./appMode/handleHostNavigationRequest.js";
13
12
  export { clearPendingHostNavigation } from "./appMode/pendingHostNavigation.js";
14
13
  export { type IBootstrapData, type ISetLocaleAction, bootstrapData, setLocale, setTheme, setColorPalette, } from "./actions/app_context_actions.js";
@@ -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,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACvF,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,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,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,yBAAy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E,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
@@ -3,7 +3,7 @@
3
3
  // The entry of the GoodData apps (the AD pluggable module). It is not a public API: the public
4
4
  // component is in the root entry.
5
5
  export { Root } from "./Root.js";
6
- export { store, startSagas, subscribeControls, sagaMiddleware } from "./reduxStore.js";
6
+ 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";
@@ -12,7 +12,6 @@ export { setEmbedded } from "./actions/embedded_actions.js";
12
12
  export { resetForPluggableMount } from "./actions/reset_for_pluggable_mount_actions.js";
13
13
  export { setFeatureFlagsItems } from "./actions/featureFlags_actions.js";
14
14
  export { setRouteProjectId } from "./store/router/router_actions.js";
15
- export { useAppMode } from "./appMode/appMode.js";
16
15
  export { handleHostNavigationRequest } from "./appMode/handleHostNavigationRequest.js";
17
16
  export { clearPendingHostNavigation } from "./appMode/pendingHostNavigation.js";
18
17
  export { bootstrapData, setLocale, setTheme, setColorPalette, } from "./actions/app_context_actions.js";
@@ -1,4 +1,4 @@
1
1
  export declare const store: import("@reduxjs/toolkit").EnhancedStore<import("./store/types.js").IAppState, import("redux").UnknownAction, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
2
2
  dispatch: {};
3
- }>, import("redux").StoreEnhancer]>>, sagaMiddleware: import("redux-saga").SagaMiddleware<object>, startSagas: () => import("redux-saga").Task<any>, subscribeControls: () => (() => void);
3
+ }>, import("redux").StoreEnhancer]>>, startSagas: () => import("redux-saga").Task<any>, subscribeControls: () => (() => void);
4
4
  //# sourceMappingURL=reduxStore.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reduxStore.d.ts","sourceRoot":"","sources":["../src/reduxStore.ts"],"names":[],"mappings":"AASA,eAAO,MAAQ,KAAK;;sCAAE,cAAc,+CAAE,UAAU,wCAAE,iBAAiB,oBAAkB,CAAC"}
1
+ {"version":3,"file":"reduxStore.d.ts","sourceRoot":"","sources":["../src/reduxStore.ts"],"names":[],"mappings":"AASA,eAAO,MAAQ,KAAK;;sCAAE,UAAU,wCAAE,iBAAiB,oBAAkB,CAAC"}
package/esm/reduxStore.js CHANGED
@@ -5,4 +5,4 @@ import { createStore } from "./create_store.js";
5
5
  // upgraded. The store is created in separate file from app.tsx where it was created before to not have
6
6
  // circular dependencies between the files.
7
7
  // Sagas are not auto-started; caller invokes startSagas() when ready.
8
- export const { store, sagaMiddleware, startSagas, subscribeControls } = createStore();
8
+ export const { store, startSagas, subscribeControls } = createStore();
@@ -20,7 +20,7 @@ export declare function loadSettings(backend: IAnalyticalBackend, workspaceId: s
20
20
  /**
21
21
  * AD's bootstrap data loaded from the backend, for a host that passes none. The user and the settings
22
22
  * are required. The other values are optional and fall back to their defaults. The workspace title
23
- * is the workspace identifier: only the standalone header showed it.
23
+ * is the workspace identifier because AD does not show the workspace title.
24
24
  */
25
25
  export declare function backendBootstrapData(backend: IAnalyticalBackend, workspaceId: string | undefined, locale: ILocale | undefined, { loadTheme, ...known }?: IBackendBootstrapDataOptions): Promise<IBootstrapData>;
26
26
  export {};
@@ -24,7 +24,7 @@ export function loadSettings(backend, workspaceId) {
24
24
  /**
25
25
  * AD's bootstrap data loaded from the backend, for a host that passes none. The user and the settings
26
26
  * are required. The other values are optional and fall back to their defaults. The workspace title
27
- * is the workspace identifier: only the standalone header showed it.
27
+ * is the workspace identifier because AD does not show the workspace title.
28
28
  */
29
29
  export async function backendBootstrapData(backend, workspaceId, locale, { loadTheme = true, ...known } = {}) {
30
30
  const workspace = workspaceId ? backend.workspace(workspaceId) : undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"verifyUserAccess.d.ts","sourceRoot":"","sources":["../../../src/sagas/bootstrap/verifyUserAccess.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAsB3E,eAAO,MAAM,4BAA4B,EAAE,cAA4D,CAAC;AACxG,eAAO,MAAM,oBAAoB,EAAE,cAAoD,CAAC;AACxF,eAAO,MAAM,6BAA6B,EAAE,cAA6D,CAAC;AAC1G,eAAO,MAAM,0BAA0B,EAAE,cAA0D,CAAC;AACpG,eAAO,MAAM,0BAA0B,EAAE,cAA0D,CAAC;AACpG,eAAO,MAAM,uBAAuB,EAAE,cAAuD,CAAC;AAC9F,eAAO,MAAM,uBAAuB,EAAE,cAAuD,CAAC;AAE9F,wBAAiB,gBAAgB,yHA2ChC"}
1
+ {"version":3,"file":"verifyUserAccess.d.ts","sourceRoot":"","sources":["../../../src/sagas/bootstrap/verifyUserAccess.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAkB3E,eAAO,MAAM,4BAA4B,EAAE,cAA4D,CAAC;AACxG,eAAO,MAAM,oBAAoB,EAAE,cAAoD,CAAC;AACxF,eAAO,MAAM,6BAA6B,EAAE,cAA6D,CAAC;AAC1G,eAAO,MAAM,0BAA0B,EAAE,cAA0D,CAAC;AACpG,eAAO,MAAM,0BAA0B,EAAE,cAA0D,CAAC;AACpG,eAAO,MAAM,uBAAuB,EAAE,cAAuD,CAAC;AAC9F,eAAO,MAAM,uBAAuB,EAAE,cAAuD,CAAC;AAE9F,wBAAiB,gBAAgB,yHAsChC"}
@@ -2,7 +2,7 @@
2
2
  import { call, select } from "redux-saga/effects";
3
3
  import { canEditVisualization } from "@gooddata/sdk-model";
4
4
  import { ACCESS_DESIGNER_DENIED_ERROR as ACCESS_DESIGNER_DENIED_ERROR_CODE, ACCESS_WORKBENCH_DENIED_ERROR as ACCESS_WORKBENCH_DENIED_ERROR_CODE, CREATE_REPORT_DENIED_ERROR as CREATE_REPORT_DENIED_ERROR_CODE, NOT_AUTHENTICATED_ERROR as NOT_AUTHENTICATED_ERROR_CODE, NOT_AUTHORIZED_ERROR as NOT_AUTHORIZED_ERROR_CODE, NO_PROJECT_AVAILABLE_ERROR as NO_PROJECT_AVAILABLE_ERROR_CODE, PROJECT_NOT_FOUND_ERROR as PROJECT_NOT_FOUND_ERROR_CODE, } from "../../constants/errors.js";
5
- import { getCurrentProjectInfo, hasWorkspaceAccess, stashedProjectUri, } from "../../selectors/bootstrap_selector.js";
5
+ import { getCurrentProjectInfo, stashedProjectUri } from "../../selectors/bootstrap_selector.js";
6
6
  import { enableVisualizationPermissions } from "../../selectors/feature_flag_selector.js";
7
7
  import { getIsEmbedded } from "../../selectors/meta_selector.js";
8
8
  import { workspacePermissions as workspacePermissionsSelector } from "../../selectors/permissions_selector.js";
@@ -18,13 +18,9 @@ export const NOT_AUTHENTICATED_ERROR = { type: NOT_AUTHENTICATED_ERROR_CODE };
18
18
  export function* verifyUserAccess() {
19
19
  const routeParams = yield select(getRouteParams);
20
20
  const currentProjectInfo = yield select(getCurrentProjectInfo);
21
- const hasWSAccess = yield select(hasWorkspaceAccess);
22
21
  const workspacePermissions = yield select(workspacePermissionsSelector);
23
22
  const isEmbedded = yield select(getIsEmbedded);
24
23
  const userStashedProjectUri = yield select(stashedProjectUri);
25
- if (!hasWSAccess) {
26
- throw NOT_AUTHORIZED_ERROR;
27
- }
28
24
  if (!workspacePermissions.canAccessWorkbench && !isEmbedded) {
29
25
  throw ACCESS_WORKBENCH_DENIED_ERROR;
30
26
  }
@@ -1,5 +1,5 @@
1
1
  import { type IBootstrapErrorAction } from "../actions/app_context_actions.js";
2
2
  import { type IAppState } from "../store/types.js";
3
- export declare function bootstrapError(action: IBootstrapErrorAction): Generator<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").CallEffect<(params: import("../utils/location.js").IUriResolverParams) => void> | import("redux-saga/effects").CallEffect<boolean> | import("redux-saga/effects").SelectEffect, void, IAppState & (boolean & ((params: import("../utils/location.js").IUriResolverParams) => void))>;
3
+ export declare function bootstrapError(action: IBootstrapErrorAction): Generator<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").CallEffect<(params: import("../utils/location.js").IUriResolverParams) => void> | import("redux-saga/effects").SelectEffect, void, IAppState & ((params: import("../utils/location.js").IUriResolverParams) => void)>;
4
4
  export declare function watchErrorBootstrap(): Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown>;
5
5
  //# sourceMappingURL=bootstrap_error_sagas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bootstrap_error_sagas.d.ts","sourceRoot":"","sources":["../../src/sagas/bootstrap_error_sagas.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAG/E,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAGnD,wBAAiB,cAAc,CAAC,MAAM,EAAE,qBAAqB,+WAc5D;AAED,wBAAiB,mBAAmB,6EAEnC"}
1
+ {"version":3,"file":"bootstrap_error_sagas.d.ts","sourceRoot":"","sources":["../../src/sagas/bootstrap_error_sagas.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAG/E,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD,wBAAiB,cAAc,CAAC,MAAM,EAAE,qBAAqB,gTAO5D;AAED,wBAAiB,mBAAmB,6EAEnC"}
@@ -2,11 +2,9 @@
2
2
  import { call, select, takeEvery } from "redux-saga/effects";
3
3
  import { ActionTypeKeys } from "../constants/actions.js";
4
4
  import { getErrorHandler } from "../services/bootstrap_error_service.js";
5
- import { isLoggedInViaSso } from "../utils/sso.js";
6
5
  export function* bootstrapError(action) {
7
6
  const state = yield select();
8
- const loggedViaSso = yield call(isLoggedInViaSso);
9
- const errorHandler = yield call(getErrorHandler, state, action, loggedViaSso);
7
+ const errorHandler = yield call(getErrorHandler, state, action);
10
8
  if (errorHandler) {
11
9
  yield call(errorHandler, action.payload);
12
10
  }