@gooddata/sdk-ui-loaders 11.68.0-alpha.1 → 11.68.0-alpha.3
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 +3 -3
- package/esm/dashboard/dashboardLoader.d.ts.map +1 -1
- package/esm/dashboard/dashboardLoader.js +2 -2
- package/esm/dashboard/loadingStrategies/adaptiveComponentLoaders.d.ts.map +1 -1
- package/esm/dashboard/loadingStrategies/adaptiveComponentLoaders.js +4 -4
- package/esm/dashboard/loadingStrategies/dynamicComponentLoaders.d.ts.map +1 -1
- package/esm/dashboard/loadingStrategies/dynamicComponentLoaders.js +2 -2
- package/package.json +8 -7
package/NOTICE
CHANGED
|
@@ -11,9 +11,9 @@ This product includes a number of subcomponents with separate copyright notices
|
|
|
11
11
|
|
|
12
12
|
The following 3rd-party software packages may be used by or distributed with gooddata-ui-sdk. Any information relevant to third-party vendors listed below are collected using common, reasonable means.
|
|
13
13
|
|
|
14
|
-
Date generated: 2026-11-
|
|
14
|
+
Date generated: 2026-11-6
|
|
15
15
|
|
|
16
|
-
Revision ID:
|
|
16
|
+
Revision ID: d5b83a8355edc9eec2ad7787276b02a1a676cb3f
|
|
17
17
|
|
|
18
18
|
================================================================================
|
|
19
19
|
================================================================================
|
|
@@ -69383,4 +69383,4 @@ MIT
|
|
|
69383
69383
|
--------------------------------------------------------------------------------
|
|
69384
69384
|
--------------------------------------------------------------------------------
|
|
69385
69385
|
|
|
69386
|
-
Report Generated by FOSSA on 2026-11-
|
|
69386
|
+
Report Generated by FOSSA on 2026-11-6
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboardLoader.d.ts","sourceRoot":"","sources":["../../src/dashboard/dashboardLoader.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dashboardLoader.d.ts","sourceRoot":"","sources":["../../src/dashboard/dashboardLoader.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,kBAAkB,E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AAM,CAAwB;IAC/C,OAAO,CAAC,SAAS,CAA6C;IAC9D,OAAO,CAAC,eAAe,CAAyB;IAChD,OAAO,CAAC,eAAe,CAAsD;IAE7E,OAAO,eAEN;IAED;;;;;;;OAOG;IACH,OAAc,UAAU,IAAI,eAAe,CAE1C;IAED;;;;;;;;;OASG;IACH,OAAc,QAAQ,CAAC,OAAO,EAAE,mBAAmB,GAAG,eAAe,CAEpE;IAEM,SAAS,YAAa,kBAAkB,KAAG,IAAI,CAIpD;IAEK,mBAAmB,oBAAqB,2BAA2B,KAAG,IAAI,CAK/E;IAEK,aAAa,cAAe,MAAM,KAAG,IAAI,CAK9C;IAEK,YAAY,iBAAkB,MAAM,KAAG,IAAI,CAIhD;IAEK,iBAAiB,qBAAsB,MAAM,KAAG,IAAI,CAIzD;IAEK,mBAAmB,eAAgB,eAAe,EAAE,KAAG,IAAI,CAIhE;IAEK,aAAa,UAAW,4BAA4B,KAAG,IAAI,CAIhE;IAEF,OAAO,CAAC,gBAAgB,CActB;IAEF,OAAO,CAAC,SAAS,CA0Df;IAEK,IAAI,aAAoB,qBAAqB,KAAG,OAAO,CAAC,mBAAmB,CAAC,CAmHjF;CACL"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { isEmpty } from "lodash-es";
|
|
3
2
|
import { invariant } from "ts-invariant";
|
|
4
3
|
import { idRef, isDashboard } from "@gooddata/sdk-model";
|
|
5
4
|
import { ResolvedClientWorkspaceProvider, resolveLCMWorkspaceIdentifiers, } from "@gooddata/sdk-ui";
|
|
6
5
|
import { newDashboardEngine, } from "@gooddata/sdk-ui-dashboard";
|
|
6
|
+
import { _isEmpty } from "@gooddata/util";
|
|
7
7
|
import { validatePluginsBeforeLoading } from "./beforeLoadPluginValidation.js";
|
|
8
8
|
import { adaptiveDashboardBeforeLoadFactory, adaptiveDashboardEngineLoaderFactory, adaptiveDashboardPluginLoaderFactory, } from "./loadingStrategies/adaptiveComponentLoaders.js";
|
|
9
9
|
import { isPluginCompatibleWithDashboardEngine } from "./loadingStrategies/determineDashboardEngine.js";
|
|
@@ -97,7 +97,7 @@ export class DashboardLoader {
|
|
|
97
97
|
return [this.baseProps.workspace, undefined];
|
|
98
98
|
}
|
|
99
99
|
const resolvedClientWorkspace = resolveLCMWorkspaceIdentifiers(backend, this.clientWorkspace);
|
|
100
|
-
invariant(!
|
|
100
|
+
invariant(!_isEmpty(resolvedClientWorkspace), "DashboardLoader was not able to resolve LCM client workspace to actual workspace.");
|
|
101
101
|
return [resolvedClientWorkspace.workspace, resolvedClientWorkspace];
|
|
102
102
|
};
|
|
103
103
|
loadParts = async (ctx, dashboardWithPlugins, config = this.config, beforeExternalPluginLoaded) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adaptiveComponentLoaders.d.ts","sourceRoot":"","sources":["../../../src/dashboard/loadingStrategies/adaptiveComponentLoaders.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"adaptiveComponentLoaders.d.ts","sourceRoot":"","sources":["../../../src/dashboard/loadingStrategies/adaptiveComponentLoaders.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAG1F,OAAO,EACH,KAAK,8BAA8B,EACnC,KAAK,YAAY,EACjB,KAAK,2BAA2B,EACnC,MAAM,aAAa,CAAC;AAarB;;;;;;;GAOG;AACH,eAAO,MAAM,oCAAoC,gCACf,2BAA2B,iBAC7C,wBAAwB,GAAG,SAAS,KAAG,OAAO,CAAC,gBAAgB,CAM1E,CAAC;AAEN;;;;;;;;GAQG;AACH,eAAO,MAAM,oCAAoC,gCACf,2BAA2B,WAEhD,gBAAgB,aACV,wBAAwB,GAAG,SAAS,YACrC,8BAA8B,KACzC,OAAO,CAAC,YAAY,EAAE,CAOxB,CAAC;AAEN;;;;;;;;GAQG;AACH,eAAO,MAAM,kCAAkC,iCACZ,2BAA2B,WACpD,gBAAgB,aAAa,wBAAwB,GAAG,SAAS,KAAG,OAAO,CAAC,IAAI,CAMrF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// (C) 2021-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { _isEmpty } from "@gooddata/util";
|
|
3
3
|
import { dynamicDashboardBeforeLoad, dynamicDashboardEngineLoader, dynamicDashboardPluginLoader, } from "./dynamicComponentLoaders.js";
|
|
4
4
|
import { noopDashboardBeforeLoad, noopDashboardPluginLoader, staticDashboardEngineLoader, } from "./staticComponentLoaders.js";
|
|
5
5
|
/**
|
|
@@ -11,7 +11,7 @@ import { noopDashboardBeforeLoad, noopDashboardPluginLoader, staticDashboardEngi
|
|
|
11
11
|
* @internal
|
|
12
12
|
*/
|
|
13
13
|
export const adaptiveDashboardEngineLoaderFactory = (moduleFederationIntegration) => (dashboard) => {
|
|
14
|
-
if (dashboard && !
|
|
14
|
+
if (dashboard && !_isEmpty(dashboard.references.plugins)) {
|
|
15
15
|
return dynamicDashboardEngineLoader(dashboard, moduleFederationIntegration);
|
|
16
16
|
}
|
|
17
17
|
return staticDashboardEngineLoader(dashboard);
|
|
@@ -26,7 +26,7 @@ export const adaptiveDashboardEngineLoaderFactory = (moduleFederationIntegration
|
|
|
26
26
|
* @internal
|
|
27
27
|
*/
|
|
28
28
|
export const adaptiveDashboardPluginLoaderFactory = (moduleFederationIntegration) => (ctx, dashboard, options) => {
|
|
29
|
-
if (dashboard && !
|
|
29
|
+
if (dashboard && !_isEmpty(dashboard.references.plugins)) {
|
|
30
30
|
options?.beforePluginsLoaded({ externalPluginsCount: dashboard.references.plugins.length });
|
|
31
31
|
return dynamicDashboardPluginLoader(ctx, dashboard, moduleFederationIntegration);
|
|
32
32
|
}
|
|
@@ -42,7 +42,7 @@ export const adaptiveDashboardPluginLoaderFactory = (moduleFederationIntegration
|
|
|
42
42
|
* @internal
|
|
43
43
|
*/
|
|
44
44
|
export const adaptiveDashboardBeforeLoadFactory = (_moduleFederationIntegration) => (ctx, dashboard) => {
|
|
45
|
-
if (dashboard && !
|
|
45
|
+
if (dashboard && !_isEmpty(dashboard.references.plugins)) {
|
|
46
46
|
return dynamicDashboardBeforeLoad(ctx, dashboard);
|
|
47
47
|
}
|
|
48
48
|
return noopDashboardBeforeLoad(ctx, dashboard);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamicComponentLoaders.d.ts","sourceRoot":"","sources":["../../../src/dashboard/loadingStrategies/dynamicComponentLoaders.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dynamicComponentLoaders.d.ts","sourceRoot":"","sources":["../../../src/dashboard/loadingStrategies/dynamicComponentLoaders.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAG1E,OAAO,EACH,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EAExB,MAAM,4BAA4B,CAAC;AAGpC,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAUlF;;GAEG;AACH,wBAAsB,4BAA4B,CAC9C,SAAS,EAAE,wBAAwB,EACnC,2BAA2B,EAAE,2BAA2B,GACzD,OAAO,CAAC,gBAAgB,CAAC,CAgB3B;AAED;;GAEG;AACH,wBAAsB,4BAA4B,CAC9C,IAAI,EAAE,gBAAgB,EACtB,SAAS,EAAE,wBAAwB,EACnC,2BAA2B,EAAE,2BAA2B,GACzD,OAAO,CAAC,YAAY,EAAE,CAAC,CAwDzB;AAED;;GAEG;AACH,wBAAsB,0BAA0B,CAC5C,IAAI,EAAE,gBAAgB,EACtB,SAAS,EAAE,wBAAwB,GACpC,OAAO,CAAC,IAAI,CAAC,CAiBf"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// (C) 2021-2026 GoodData Corporation
|
|
2
|
-
import { isEmpty } from "lodash-es";
|
|
3
2
|
import { invariant } from "ts-invariant";
|
|
4
3
|
import { areObjRefsEqual, objRefToString } from "@gooddata/sdk-model";
|
|
5
4
|
import { DynamicScriptLoadSdkError } from "@gooddata/sdk-ui";
|
|
5
|
+
import { _isEmpty } from "@gooddata/util";
|
|
6
6
|
import { determineDashboardEngine } from "./determineDashboardEngine.js";
|
|
7
7
|
/**
|
|
8
8
|
* @internal
|
|
@@ -10,7 +10,7 @@ import { determineDashboardEngine } from "./determineDashboardEngine.js";
|
|
|
10
10
|
export async function dynamicDashboardEngineLoader(dashboard, moduleFederationIntegration) {
|
|
11
11
|
const { plugins } = dashboard.references;
|
|
12
12
|
// if this bombs, this loader was called with no plugins (which means noop version should have been used)
|
|
13
|
-
invariant(!
|
|
13
|
+
invariant(!_isEmpty(plugins));
|
|
14
14
|
const loadedEngines = await Promise.all(plugins.map(async (plugin) => {
|
|
15
15
|
const loadedEngineModule = await loadEngine(plugin.url, moduleFederationIntegration)();
|
|
16
16
|
// Support both named export (newDashboardEngine) and default export for backward compatibility
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-loaders",
|
|
3
|
-
"version": "11.68.0-alpha.
|
|
3
|
+
"version": "11.68.0-alpha.3",
|
|
4
4
|
"description": "GoodData SDK Runtime Component Loaders",
|
|
5
5
|
"license": "LicenseRef-LICENSE",
|
|
6
6
|
"author": "GoodData Corporation",
|
|
@@ -32,10 +32,11 @@
|
|
|
32
32
|
"semver": "7.7.4",
|
|
33
33
|
"ts-invariant": "0.10.3",
|
|
34
34
|
"tslib": "2.8.1",
|
|
35
|
-
"@gooddata/sdk-backend-spi": "11.68.0-alpha.
|
|
36
|
-
"@gooddata/sdk-model": "11.68.0-alpha.
|
|
37
|
-
"@gooddata/sdk-ui": "11.68.0-alpha.
|
|
38
|
-
"@gooddata/sdk-ui
|
|
35
|
+
"@gooddata/sdk-backend-spi": "11.68.0-alpha.3",
|
|
36
|
+
"@gooddata/sdk-model": "11.68.0-alpha.3",
|
|
37
|
+
"@gooddata/sdk-ui-dashboard": "11.68.0-alpha.3",
|
|
38
|
+
"@gooddata/sdk-ui": "11.68.0-alpha.3",
|
|
39
|
+
"@gooddata/util": "11.68.0-alpha.3"
|
|
39
40
|
},
|
|
40
41
|
"devDependencies": {
|
|
41
42
|
"@microsoft/api-documenter": "7.30.20",
|
|
@@ -66,8 +67,8 @@
|
|
|
66
67
|
"react": "19.1.1",
|
|
67
68
|
"react-dom": "19.1.1",
|
|
68
69
|
"typescript": "7.0.2",
|
|
69
|
-
"@gooddata/eslint-config": "11.68.0-alpha.
|
|
70
|
-
"@gooddata/oxlint-config": "11.68.0-alpha.
|
|
70
|
+
"@gooddata/eslint-config": "11.68.0-alpha.3",
|
|
71
|
+
"@gooddata/oxlint-config": "11.68.0-alpha.3"
|
|
71
72
|
},
|
|
72
73
|
"peerDependencies": {
|
|
73
74
|
"react": "^18.0.0 || ^19.0.0",
|