@gooddata/sdk-ui-pluggable-host 11.45.0-alpha.1 → 11.45.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.
@@ -1 +1 @@
1
- {"version":3,"file":"backend.d.ts","sourceRoot":"","sources":["../../src/platformContext/backend.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AASlG,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAIlF,MAAM,WAAW,qBAAqB;IAClC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,gBAAgB,CAAC;CAC3B;AAED,MAAM,WAAW,eAAe;IAC5B,UAAU,EAAE,MAAM,kBAAkB,CAAC;IACrC,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;IAC3C,0BAA0B,EAAE,CAAC,OAAO,EAAE,uBAAuB,KAAK,IAAI,CAAC;IACvE,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,MAAM,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,0CAA0C,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACtF;AAiBD,wBAAgB,oBAAoB,CAAC,OAAO,GAAE,qBAA0B,GAAG,eAAe,CAiGzF;AAYD;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAExD;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAEjE;AAED;;GAEG;AACH,wBAAgB,UAAU,IAAI,kBAAkB,CAE/C;AAED,wBAAgB,kBAAkB,IAAI,gBAAgB,CAErD;AAED,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,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ErD;AAED,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,uBAAuB,GAAG,IAAI,CAEjF;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAE/C;AAED,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,0CAA0C,CAAC,EAAE,MAAM,GAAG,IAAI,CAE7F"}
@@ -5,12 +5,31 @@ import { createNotAuthenticatedHandler } from "./tigerNotAuthenticatedHandler.js
5
5
  const decorateBackend = (backend) => {
6
6
  return withCaching(backend, RecommendedCachingConfiguration);
7
7
  };
8
+ const EMBEDDED_PATH_PREFIX = "/embedded/";
9
+ const EXTERNAL_PROVIDER_ID_PARAM = "externalproviderid";
10
+ function readExternalProviderIdFromUrl() {
11
+ if (typeof window === "undefined" || !window.location.pathname.startsWith(EMBEDDED_PATH_PREFIX)) {
12
+ return undefined;
13
+ }
14
+ const fromQuery = (query) => {
15
+ for (const [key, value] of new URLSearchParams(query)) {
16
+ if (key.toLowerCase() === EXTERNAL_PROVIDER_ID_PARAM && value) {
17
+ return value;
18
+ }
19
+ }
20
+ return undefined;
21
+ };
22
+ const hash = window.location.hash;
23
+ const hashQuery = hash.includes("?") ? hash.slice(hash.indexOf("?") + 1) : "";
24
+ return fromQuery(window.location.search.replace(/^\?/, "")) ?? fromQuery(hashQuery);
25
+ }
8
26
  function getDefaultAuthCredentials() {
9
27
  const apiToken = typeof TIGER_API_TOKEN === "string" && TIGER_API_TOKEN.length ? TIGER_API_TOKEN : undefined;
10
28
  if (apiToken) {
11
29
  return { type: "apiToken", token: apiToken };
12
30
  }
13
- return { type: "contextDeferred" };
31
+ const externalProviderId = readExternalProviderIdFromUrl();
32
+ return externalProviderId ? { type: "contextDeferred", externalProviderId } : { type: "contextDeferred" };
14
33
  }
15
34
  export function createBackendFactory(options = {}) {
16
35
  let setApiTokenHandler = undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"HostChrome.d.ts","sourceRoot":"","sources":["../../src/ui/HostChr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Q,CAAC,EAAE,SAAS,CAAC;CACxB;AAED,wBAAgB,UAAU,CAAC,EACvB,GAAG,EACH,oBAAoB,EACpB,QAAQ,EACR,UAAU,EACV,SAAS,EAAE,UAAU,EACrB,aAAa,EACb,YAAmB,EACnB,YAAoB,EACpB,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,QAAQ,EACX,EAAE,gBAAgB,2CA6NlB"}
@@ -144,9 +144,6 @@ export function HostChrome({ ctx, resolvedApplications, pathname, onNavigate, on
144
144
  const hideChrome = ctx.embeddingMode === "iframe" || ctx.isExportMode === true;
145
145
  return (_jsx(HostIntlProvider, { locale: locale, additionalMessages: appMessages, children: _jsx(BackendProvider, { backend: getBackend(), children: _jsx(ToastsCenterContextProvider, { children: _jsxs("div", { className: b(), children: [
146
146
  _jsx(DocumentHeader, { pageTitle: documentPageTitle, brandTitle: documentBrandTitle, faviconUrl: faviconUrl, appleTouchIconUrl: ctx.whiteLabeling?.appleTouchIconUrl }), hideChrome ? null : (_jsx("div", { className: e("header"), onMouseOver: handleHeaderMouseOver, children: _jsx(AppHeader, { logoUrl: ctx.whiteLabeling?.logoUrl || defaultLogoUrl, logoHref: "/organization" // switch the host scope to organization, the first org app will be chosen
147
- , logoTitle: logoTitle, headerColor: headerColor, headerTextColor: headerTextColor, activeColor: activeColor, userName: userName, organizationName: ctx.organization?.title, isAccessibilityCompliant: true, workspacePicker: workspacePicker, menuItemsGroups: menuItemsGroups, helpMenuItems: helpMenuItems, accountMenuItems: accountMenuItems, onMenuItemClick: handleMenuItemClick, showUpsellButton: pricing.isTrial, onUpsellButtonClick: pricing.onUpsellButtonClick, expiredDate: pricing.isTrial ? pricing.expiredDate : undefined, search: search.element, showChatItem: showChatItem, onChatItemClick: onChatToggle, notificationsPanel: ctx.userSettings.enableInPlatformNotifications
148
- ? ({ isMobile, closeNotificationsOverlay }) => (_jsx(AppHeaderNotifications, { locale: locale, isMobile: isMobile, closeNotificationsOverlay: closeNotificationsOverlay, useAsOfDateParam: ctx.userSettings.enableExecutionTimestamp ?? false, enableExportToDocumentStorage: ctx.userSettings.enableExportToDocumentStorage ??
149
- false }))
150
- : undefined }) })), _jsx("main", { className: e("content"), children: children }), pricing.element, _jsx(HostNotificationDispatcher, { notification: notification })
147
+ , logoTitle: logoTitle, headerColor: headerColor, headerTextColor: headerTextColor, activeColor: activeColor, userName: userName, organizationName: ctx.organization?.title, isAccessibilityCompliant: true, workspacePicker: workspacePicker, menuItemsGroups: menuItemsGroups, helpMenuItems: helpMenuItems, accountMenuItems: accountMenuItems, onMenuItemClick: handleMenuItemClick, showUpsellButton: pricing.isTrial, onUpsellButtonClick: pricing.onUpsellButtonClick, expiredDate: pricing.isTrial ? pricing.expiredDate : undefined, search: search.element, showChatItem: showChatItem, onChatItemClick: onChatToggle, notificationsPanel: ({ isMobile, closeNotificationsOverlay }) => (_jsx(AppHeaderNotifications, { locale: locale, isMobile: isMobile, closeNotificationsOverlay: closeNotificationsOverlay, useAsOfDateParam: true, enableExportToDocumentStorage: ctx.userSettings.enableExportToDocumentStorage ?? false })) }) })), _jsx("main", { className: e("content"), children: children }), pricing.element, _jsx(HostNotificationDispatcher, { notification: notification })
151
148
  ] }) }) }) }));
152
149
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-ui-pluggable-host",
3
- "version": "11.45.0-alpha.1",
3
+ "version": "11.45.0",
4
4
  "description": "GoodData SDK runtime for hosting pluggable applications — registry, loader, routing, platform context, default UI chrome",
5
5
  "license": "MIT",
6
6
  "author": "GoodData Corporation",
@@ -29,20 +29,20 @@
29
29
  "dependencies": {
30
30
  "@module-federation/runtime": "2.3.1",
31
31
  "lodash-es": "^4.17.23",
32
- "@gooddata/sdk-backend-base": "11.45.0-alpha.1",
33
- "@gooddata/sdk-backend-spi": "11.45.0-alpha.1",
34
- "@gooddata/sdk-embedding": "11.45.0-alpha.1",
35
- "@gooddata/sdk-model": "11.45.0-alpha.1",
36
- "@gooddata/sdk-backend-tiger": "11.45.0-alpha.1",
37
- "@gooddata/sdk-pluggable-application-model": "11.45.0-alpha.1",
38
- "@gooddata/sdk-ui-application-header": "11.45.0-alpha.1",
39
- "@gooddata/sdk-ui": "11.45.0-alpha.1",
40
- "@gooddata/sdk-ui-ext": "11.45.0-alpha.1",
41
- "@gooddata/sdk-ui-gen-ai": "11.45.0-alpha.1",
42
- "@gooddata/sdk-ui-kit": "11.45.0-alpha.1",
43
- "@gooddata/sdk-ui-semantic-search": "11.45.0-alpha.1",
44
- "@gooddata/sdk-ui-theme-provider": "11.45.0-alpha.1",
45
- "@gooddata/util": "11.45.0-alpha.1"
32
+ "@gooddata/sdk-backend-base": "11.45.0",
33
+ "@gooddata/sdk-backend-spi": "11.45.0",
34
+ "@gooddata/sdk-embedding": "11.45.0",
35
+ "@gooddata/sdk-model": "11.45.0",
36
+ "@gooddata/sdk-backend-tiger": "11.45.0",
37
+ "@gooddata/sdk-pluggable-application-model": "11.45.0",
38
+ "@gooddata/sdk-ui": "11.45.0",
39
+ "@gooddata/sdk-ui-ext": "11.45.0",
40
+ "@gooddata/sdk-ui-application-header": "11.45.0",
41
+ "@gooddata/sdk-ui-gen-ai": "11.45.0",
42
+ "@gooddata/sdk-ui-kit": "11.45.0",
43
+ "@gooddata/sdk-ui-theme-provider": "11.45.0",
44
+ "@gooddata/sdk-ui-semantic-search": "11.45.0",
45
+ "@gooddata/util": "11.45.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@microsoft/api-documenter": "^7.17.0",
@@ -85,8 +85,8 @@
85
85
  "vite": "8.0.16",
86
86
  "vitest": "4.1.8",
87
87
  "vitest-dom": "0.1.1",
88
- "@gooddata/eslint-config": "11.45.0-alpha.1",
89
- "@gooddata/oxlint-config": "11.45.0-alpha.1"
88
+ "@gooddata/oxlint-config": "11.45.0",
89
+ "@gooddata/eslint-config": "11.45.0"
90
90
  },
91
91
  "peerDependencies": {
92
92
  "react": ">=18.3.1",