@gooddata/sdk-ui 11.65.0-alpha.13 → 11.65.0-alpha.14

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/README.md CHANGED
@@ -15,6 +15,6 @@ See the other `@gooddata/sdk-ui-*` packages (for example, [`@gooddata/sdk-ui-cha
15
15
 
16
16
  ## License
17
17
 
18
- (C) 2017-2022 GoodData Corporation
18
+ (C) 2017-2026 GoodData Corporation
19
19
 
20
20
  This project is under MIT License. See [LICENSE](https://github.com/gooddata/gooddata-ui-sdk/blob/master/libs/sdk-ui/LICENSE).
@@ -6,7 +6,6 @@ export type IDashboardUrlBuilder = (params: {
6
6
  dashboardId?: string;
7
7
  tabId?: string;
8
8
  isEmbedded?: boolean;
9
- useHostRoute?: boolean;
10
9
  queryParams?: IDashboardUrlQueryParams;
11
10
  }) => string | undefined;
12
11
  /**
@@ -18,7 +17,6 @@ export type IWidgetUrlBuilder = (params: {
18
17
  widgetId?: string;
19
18
  tabId?: string;
20
19
  isEmbedded?: boolean;
21
- useHostRoute?: boolean;
22
20
  queryParams?: IWidgetUrlQueryParams;
23
21
  }) => string | undefined;
24
22
  /**
@@ -29,7 +27,6 @@ export type IAutomationUrlBuilder = (params: {
29
27
  dashboardId?: string;
30
28
  automationId?: string;
31
29
  isEmbedded?: boolean;
32
- useHostRoute?: boolean;
33
30
  queryParams?: IAutomationUrlQueryParams;
34
31
  }) => string | undefined;
35
32
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"dashboardUrl.d.ts","sourceRoot":"","sources":["../../../src/base/url/dashboardUrl.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,MAAM,EAAE;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAA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AM,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,wBAAwB,EAAE,UAAU,CAAC,CAAC;AAE/E;;;;;;;;;GASG;AACH,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAAC,wBAAwB,EAAE,cAAc,CAAC,CAAC;AAiBvF;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,oBAiB/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,iBA8B5B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,qBAyBhC,CAAC"}
@@ -14,27 +14,20 @@ const appendQueryParams = (url, queryParams) => {
14
14
  /**
15
15
  * @internal
16
16
  */
17
- export const buildDashboardUrl = ({ workspaceId, dashboardId, tabId, isEmbedded, useHostRoute, queryParams, }) => {
17
+ export const buildDashboardUrl = ({ workspaceId, dashboardId, tabId, isEmbedded, queryParams, }) => {
18
18
  if (!workspaceId || !dashboardId) {
19
19
  return undefined;
20
20
  }
21
21
  const route = tabId ? `/dashboard/${dashboardId}/tab/${tabId}` : `/dashboard/${dashboardId}`;
22
- // With the dashboards shell application enabled the host owns the /workspace/{id}/dashboards/
23
- // pathname and the dashboard route lives in the hash without the workspace segment. The legacy
24
- // standalone app instead carries the workspace inside the hash under /dashboards/#.
25
- if (useHostRoute) {
26
- const basePath = isEmbedded
27
- ? `/embedded/workspace/${workspaceId}/dashboards/#`
28
- : `/workspace/${workspaceId}/dashboards/#`;
29
- return appendQueryParams(`${basePath}${route}`, queryParams);
30
- }
31
- const basePath = isEmbedded ? "/dashboards/embedded/#" : "/dashboards/#";
32
- return appendQueryParams(`${basePath}/workspace/${workspaceId}${route}`, queryParams);
22
+ const basePath = isEmbedded
23
+ ? `/embedded/workspace/${workspaceId}/dashboards/#`
24
+ : `/workspace/${workspaceId}/dashboards/#`;
25
+ return appendQueryParams(`${basePath}${route}`, queryParams);
33
26
  };
34
27
  /**
35
28
  * @internal
36
29
  */
37
- export const buildWidgetUrl = ({ workspaceId, dashboardId, widgetId, tabId, isEmbedded, useHostRoute, queryParams, }) => {
30
+ export const buildWidgetUrl = ({ workspaceId, dashboardId, widgetId, tabId, isEmbedded, queryParams, }) => {
38
31
  if (!widgetId) {
39
32
  return undefined;
40
33
  }
@@ -42,7 +35,6 @@ export const buildWidgetUrl = ({ workspaceId, dashboardId, widgetId, tabId, isEm
42
35
  workspaceId,
43
36
  dashboardId,
44
37
  isEmbedded,
45
- useHostRoute,
46
38
  queryParams: {
47
39
  ...queryParams,
48
40
  widgetId,
@@ -59,7 +51,7 @@ export const buildWidgetUrl = ({ workspaceId, dashboardId, widgetId, tabId, isEm
59
51
  /**
60
52
  * @internal
61
53
  */
62
- export const buildAutomationUrl = ({ workspaceId, dashboardId, automationId, isEmbedded, useHostRoute, queryParams, }) => {
54
+ export const buildAutomationUrl = ({ workspaceId, dashboardId, automationId, isEmbedded, queryParams, }) => {
63
55
  if (!automationId) {
64
56
  return undefined;
65
57
  }
@@ -70,7 +62,6 @@ export const buildAutomationUrl = ({ workspaceId, dashboardId, automationId, isE
70
62
  workspaceId,
71
63
  dashboardId,
72
64
  isEmbedded,
73
- useHostRoute,
74
65
  queryParams: {
75
66
  automationId,
76
67
  openAutomationOnLoad,
package/esm/sdk-ui.d.ts CHANGED
@@ -1637,7 +1637,6 @@ export declare type IAutomationUrlBuilder = (params: {
1637
1637
  dashboardId?: string;
1638
1638
  automationId?: string;
1639
1639
  isEmbedded?: boolean;
1640
- useHostRoute?: boolean;
1641
1640
  queryParams?: IAutomationUrlQueryParams;
1642
1641
  }) => string | undefined;
1643
1642
 
@@ -1920,7 +1919,6 @@ export declare type IDashboardUrlBuilder = (params: {
1920
1919
  dashboardId?: string;
1921
1920
  tabId?: string;
1922
1921
  isEmbedded?: boolean;
1923
- useHostRoute?: boolean;
1924
1922
  queryParams?: IDashboardUrlQueryParams;
1925
1923
  }) => string | undefined;
1926
1924
 
@@ -5233,7 +5231,6 @@ export declare type IWidgetUrlBuilder = (params: {
5233
5231
  widgetId?: string;
5234
5232
  tabId?: string;
5235
5233
  isEmbedded?: boolean;
5236
- useHostRoute?: boolean;
5237
5234
  queryParams?: IWidgetUrlQueryParams;
5238
5235
  }) => string | undefined;
5239
5236
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-ui",
3
- "version": "11.65.0-alpha.13",
3
+ "version": "11.65.0-alpha.14",
4
4
  "description": "GoodData.UI SDK - Core",
5
5
  "license": "MIT",
6
6
  "author": "GoodData Corporation",
@@ -42,9 +42,9 @@
42
42
  "ts-invariant": "0.10.3",
43
43
  "tslib": "2.8.1",
44
44
  "uuid": "11.1.1",
45
- "@gooddata/sdk-backend-spi": "11.65.0-alpha.13",
46
- "@gooddata/sdk-model": "11.65.0-alpha.13",
47
- "@gooddata/util": "11.65.0-alpha.13"
45
+ "@gooddata/util": "11.65.0-alpha.14",
46
+ "@gooddata/sdk-backend-spi": "11.65.0-alpha.14",
47
+ "@gooddata/sdk-model": "11.65.0-alpha.14"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@microsoft/api-documenter": "7.30.16",
@@ -83,13 +83,13 @@
83
83
  "tsd": "0.32.0",
84
84
  "typescript": "7.0.2",
85
85
  "vitest": "5.0.4",
86
- "@gooddata/eslint-config": "11.65.0-alpha.13",
87
- "@gooddata/i18n-toolkit": "11.65.0-alpha.13",
88
- "@gooddata/oxlint-config": "11.65.0-alpha.13",
89
- "@gooddata/reference-workspace": "11.65.0-alpha.13",
90
- "@gooddata/sdk-backend-base": "11.65.0-alpha.13",
91
- "@gooddata/stylelint-config": "11.65.0-alpha.13",
92
- "@gooddata/sdk-backend-mockingbird": "11.65.0-alpha.13"
86
+ "@gooddata/eslint-config": "11.65.0-alpha.14",
87
+ "@gooddata/i18n-toolkit": "11.65.0-alpha.14",
88
+ "@gooddata/oxlint-config": "11.65.0-alpha.14",
89
+ "@gooddata/reference-workspace": "11.65.0-alpha.14",
90
+ "@gooddata/sdk-backend-base": "11.65.0-alpha.14",
91
+ "@gooddata/stylelint-config": "11.65.0-alpha.14",
92
+ "@gooddata/sdk-backend-mockingbird": "11.65.0-alpha.14"
93
93
  },
94
94
  "peerDependencies": {
95
95
  "react": "^18.0.0 || ^19.0.0",