@gooddata/sdk-ui-pluggable-application 11.64.0-alpha.1 → 11.64.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/esm/backend.d.ts +6 -0
- package/esm/backend.d.ts.map +1 -1
- package/esm/backend.js +3 -2
- package/esm/context.d.ts +0 -4
- package/esm/context.d.ts.map +1 -1
- package/esm/sdk-ui-pluggable-application.d.ts +6 -4
- package/package.json +9 -9
package/esm/backend.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type CacheControl } from "@gooddata/sdk-backend-base";
|
|
1
2
|
import { type IAnalyticalBackend } from "@gooddata/sdk-backend-spi";
|
|
2
3
|
import { type IAuthCredentials } from "@gooddata/sdk-pluggable-application-model";
|
|
3
4
|
/**
|
|
@@ -14,6 +15,11 @@ export interface ICreateBackendForModuleOptions {
|
|
|
14
15
|
* Package version reported to the backend for telemetry.
|
|
15
16
|
*/
|
|
16
17
|
packageVersion?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Receives the cache control of the created backend, so the module can reset its caches, for
|
|
20
|
+
* example when an embedded editor changes a metric.
|
|
21
|
+
*/
|
|
22
|
+
onCacheReady?: (cacheControl: CacheControl) => void;
|
|
17
23
|
}
|
|
18
24
|
/**
|
|
19
25
|
* Creates an analytical backend instance from the platform context auth credentials.
|
package/esm/backend.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backend.d.ts","sourceRoot":"","sources":["../src/backend.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"backend.d.ts","sourceRoot":"","sources":["../src/backend.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAgD,MAAM,4BAA4B,CAAC;AAC7G,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAMpE,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAElF;;;;GAIG;AACH,MAAM,WAAW,8BAA8B;IAC3C;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,YAAY,EAAE,YAAY,KAAK,IAAI,CAAC;CACvD;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,sBAAsB,CAClC,IAAI,EAAE,gBAAgB,EACtB,OAAO,EAAE,8BAA8B,GACxC,kBAAkB,CAkBpB"}
|
package/esm/backend.js
CHANGED
|
@@ -30,12 +30,13 @@ export function createBackendForModule(auth, options) {
|
|
|
30
30
|
packageName: options.packageName,
|
|
31
31
|
packageVersion: options.packageVersion ?? "unknown",
|
|
32
32
|
});
|
|
33
|
+
const caching = { ...RecommendedCachingConfiguration, onCacheReady: options.onCacheReady };
|
|
33
34
|
switch (auth.type) {
|
|
34
35
|
case "apiToken":
|
|
35
36
|
case "jwt":
|
|
36
|
-
return withCaching(base.withAuthentication(new TigerTokenAuthProvider(auth.token)),
|
|
37
|
+
return withCaching(base.withAuthentication(new TigerTokenAuthProvider(auth.token)), caching);
|
|
37
38
|
case "contextDeferred":
|
|
38
|
-
return withCaching(base.withAuthentication(new ContextDeferredAuthProvider()),
|
|
39
|
+
return withCaching(base.withAuthentication(new ContextDeferredAuthProvider()), caching);
|
|
39
40
|
default: {
|
|
40
41
|
throw new Error(`[sdk-ui-pluggable-application/backend] Unsupported auth type "${String(auth.type)}".`);
|
|
41
42
|
}
|
package/esm/context.d.ts
CHANGED
|
@@ -10,10 +10,6 @@ import { type IPlatformContext } from "@gooddata/sdk-pluggable-application-model
|
|
|
10
10
|
* using those credentials and produce an `IClientPlatformContext` which
|
|
11
11
|
* includes the backend instance.
|
|
12
12
|
*
|
|
13
|
-
* The backend's `internal_backendSpecificFunctions` field carries any
|
|
14
|
-
* backend-specific escape hatches (e.g., tiger-specific functions)
|
|
15
|
-
* automatically.
|
|
16
|
-
*
|
|
17
13
|
* @alpha
|
|
18
14
|
*/
|
|
19
15
|
export interface IClientPlatformContext extends IPlatformContext {
|
package/esm/context.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,iBAAiB,EAA6B,MAAM,OAAO,CAAC;AAI1E,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAElF
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,iBAAiB,EAA6B,MAAM,OAAO,CAAC;AAI1E,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAElF;;;;;;;;;;GAUG;AACH,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB;IAC5D;;;OAGG;IACH,OAAO,EAAE,kBAAkB,CAAC;CAC/B;AAKD;;;;GAIG;AACH,MAAM,WAAW,6BAA8B,SAAQ,iBAAiB;IACpE;;OAEG;IACH,KAAK,EAAE,sBAAsB,CAAC;CACjC;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,6BAA6B,2CAEzF;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,IAAI,sBAAsB,GAAG,SAAS,CAEvE;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,SAA6B,GAAG,sBAAsB,CAOrG"}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* @packageDocumentation
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
import { CacheControl } from '@gooddata/sdk-backend-base';
|
|
7
8
|
import { IAnalyticalBackend } from '@gooddata/sdk-backend-spi';
|
|
8
9
|
import { IAuthCredentials } from '@gooddata/sdk-pluggable-application-model';
|
|
9
10
|
import { IHostNavigationRequest } from '@gooddata/sdk-pluggable-application-model';
|
|
@@ -149,10 +150,6 @@ export declare interface IAppProvidersProps {
|
|
|
149
150
|
* using those credentials and produce an `IClientPlatformContext` which
|
|
150
151
|
* includes the backend instance.
|
|
151
152
|
*
|
|
152
|
-
* The backend's `internal_backendSpecificFunctions` field carries any
|
|
153
|
-
* backend-specific escape hatches (e.g., tiger-specific functions)
|
|
154
|
-
* automatically.
|
|
155
|
-
*
|
|
156
153
|
* @alpha
|
|
157
154
|
*/
|
|
158
155
|
export declare interface IClientPlatformContext extends IPlatformContext {
|
|
@@ -177,6 +174,11 @@ export declare interface ICreateBackendForModuleOptions {
|
|
|
177
174
|
* Package version reported to the backend for telemetry.
|
|
178
175
|
*/
|
|
179
176
|
packageVersion?: string;
|
|
177
|
+
/**
|
|
178
|
+
* Receives the cache control of the created backend, so the module can reset its caches, for
|
|
179
|
+
* example when an embedded editor changes a metric.
|
|
180
|
+
*/
|
|
181
|
+
onCacheReady?: (cacheControl: CacheControl) => void;
|
|
180
182
|
}
|
|
181
183
|
|
|
182
184
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-pluggable-application",
|
|
3
|
-
"version": "11.64.0-alpha.
|
|
3
|
+
"version": "11.64.0-alpha.3",
|
|
4
4
|
"description": "GoodData SDK React helpers for pluggable applications",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "GoodData Corporation",
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"react-intl": "10.1.25",
|
|
25
25
|
"ts-invariant": "0.10.3",
|
|
26
26
|
"tslib": "2.8.1",
|
|
27
|
-
"@gooddata/sdk-backend-base": "11.64.0-alpha.
|
|
28
|
-
"@gooddata/sdk-backend-spi": "11.64.0-alpha.
|
|
29
|
-
"@gooddata/sdk-
|
|
30
|
-
"@gooddata/sdk-
|
|
31
|
-
"@gooddata/sdk-
|
|
32
|
-
"@gooddata/sdk-ui": "11.64.0-alpha.
|
|
27
|
+
"@gooddata/sdk-backend-base": "11.64.0-alpha.3",
|
|
28
|
+
"@gooddata/sdk-backend-spi": "11.64.0-alpha.3",
|
|
29
|
+
"@gooddata/sdk-backend-tiger": "11.64.0-alpha.3",
|
|
30
|
+
"@gooddata/sdk-model": "11.64.0-alpha.3",
|
|
31
|
+
"@gooddata/sdk-pluggable-application-model": "11.64.0-alpha.3",
|
|
32
|
+
"@gooddata/sdk-ui": "11.64.0-alpha.3"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@microsoft/api-documenter": "7.30.16",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"react-dom": "19.1.1",
|
|
59
59
|
"typescript": "7.0.2",
|
|
60
60
|
"vitest": "5.0.4",
|
|
61
|
-
"@gooddata/eslint-config": "11.64.0-alpha.
|
|
62
|
-
"@gooddata/oxlint-config": "11.64.0-alpha.
|
|
61
|
+
"@gooddata/eslint-config": "11.64.0-alpha.3",
|
|
62
|
+
"@gooddata/oxlint-config": "11.64.0-alpha.3"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"react": "^18.0.0 || ^19.0.0",
|