@gooddata/sdk-ui 10.22.0-alpha.8 → 10.22.0-beta.1
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/base/index.d.ts +3 -1
- package/esm/base/index.d.ts.map +1 -1
- package/esm/base/index.js +3 -2
- package/esm/base/index.js.map +1 -1
- package/esm/base/localization/bundles/de-DE.json +9 -1
- package/esm/base/localization/bundles/en-AU.json +9 -1
- package/esm/base/localization/bundles/en-GB.json +9 -1
- package/esm/base/localization/bundles/en-US.json +31 -1
- package/esm/base/localization/bundles/es-419.json +9 -1
- package/esm/base/localization/bundles/es-ES.json +9 -1
- package/esm/base/localization/bundles/fi-FI.json +9 -1
- package/esm/base/localization/bundles/fr-CA.json +9 -1
- package/esm/base/localization/bundles/fr-FR.json +9 -1
- package/esm/base/localization/bundles/it-IT.json +9 -1
- package/esm/base/localization/bundles/ja-JP.json +9 -1
- package/esm/base/localization/bundles/nl-NL.json +9 -1
- package/esm/base/localization/bundles/pt-BR.json +9 -1
- package/esm/base/localization/bundles/pt-PT.json +9 -1
- package/esm/base/localization/bundles/zh-HK.json +9 -1
- package/esm/base/localization/bundles/zh-Hans.json +9 -1
- package/esm/base/localization/bundles/zh-Hant.json +9 -1
- package/esm/base/react/CancelablePromise.d.ts +1 -1
- package/esm/base/react/CancelablePromise.d.ts.map +1 -1
- package/esm/base/react/CancelablePromise.js +32 -18
- package/esm/base/react/CancelablePromise.js.map +1 -1
- package/esm/base/react/CorrelationContext.d.ts +70 -0
- package/esm/base/react/CorrelationContext.d.ts.map +1 -0
- package/esm/base/react/CorrelationContext.js +101 -0
- package/esm/base/react/CorrelationContext.js.map +1 -0
- package/esm/base/react/PromiseCache.js +2 -2
- package/esm/base/react/PromiseCache.js.map +1 -1
- package/esm/base/react/useCancelablePromise.d.ts +8 -1
- package/esm/base/react/useCancelablePromise.d.ts.map +1 -1
- package/esm/base/react/useCancelablePromise.js +3 -3
- package/esm/base/react/useCancelablePromise.js.map +1 -1
- package/esm/base/vis/export.d.ts +1 -8
- package/esm/base/vis/export.d.ts.map +1 -1
- package/esm/base/vis/export.js +0 -9
- package/esm/base/vis/export.js.map +1 -1
- package/esm/execution/DataViewLoader.d.ts +6 -0
- package/esm/execution/DataViewLoader.d.ts.map +1 -1
- package/esm/execution/DataViewLoader.js +13 -2
- package/esm/execution/DataViewLoader.js.map +1 -1
- package/esm/execution/Execute.d.ts +9 -0
- package/esm/execution/Execute.d.ts.map +1 -1
- package/esm/execution/Execute.js +2 -1
- package/esm/execution/Execute.js.map +1 -1
- package/esm/execution/ExecuteInsight.d.ts +9 -0
- package/esm/execution/ExecuteInsight.d.ts.map +1 -1
- package/esm/execution/ExecuteInsight.js +3 -2
- package/esm/execution/ExecuteInsight.js.map +1 -1
- package/esm/execution/RawExecute.d.ts +9 -0
- package/esm/execution/RawExecute.d.ts.map +1 -1
- package/esm/execution/RawExecute.js +2 -1
- package/esm/execution/RawExecute.js.map +1 -1
- package/esm/execution/useExecutionDataView.d.ts +9 -0
- package/esm/execution/useExecutionDataView.d.ts.map +1 -1
- package/esm/execution/useExecutionDataView.js +20 -12
- package/esm/execution/useExecutionDataView.js.map +1 -1
- package/esm/execution/useInsightDataView.d.ts +9 -0
- package/esm/execution/useInsightDataView.d.ts.map +1 -1
- package/esm/execution/useInsightDataView.js +2 -1
- package/esm/execution/useInsightDataView.js.map +1 -1
- package/esm/execution/withExecution.d.ts +9 -0
- package/esm/execution/withExecution.d.ts.map +1 -1
- package/esm/execution/withExecution.js +11 -4
- package/esm/execution/withExecution.js.map +1 -1
- package/esm/execution/withExecutionLoading.d.ts +11 -1
- package/esm/execution/withExecutionLoading.d.ts.map +1 -1
- package/esm/execution/withExecutionLoading.js +7 -4
- package/esm/execution/withExecutionLoading.js.map +1 -1
- package/esm/index.d.ts +2 -0
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +2 -1
- package/esm/index.js.map +1 -1
- package/esm/sdk-ui.d.ts +154 -11
- package/package.json +8 -8
@@ -72,6 +72,15 @@ export interface IUseInsightDataViewConfig {
|
|
72
72
|
* workspace here, then the executor MUST be rendered within an existing WorkspaceContext.
|
73
73
|
*/
|
74
74
|
workspace?: string;
|
75
|
+
/**
|
76
|
+
* Optionally enable real execution cancellation.
|
77
|
+
*
|
78
|
+
* This means that if the execution request is not yet finished and the execution changes,
|
79
|
+
* the request will be cancelled and the new execution will be started.
|
80
|
+
*
|
81
|
+
* Default: false
|
82
|
+
*/
|
83
|
+
enableExecutionCancelling?: boolean;
|
75
84
|
}
|
76
85
|
/**
|
77
86
|
* Callbacks for {@link useInsightDataView} hook.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useInsightDataView.d.ts","sourceRoot":"","sources":["../../src/execution/useInsightDataView.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC3G,OAAO,EAKH,yBAAyB,EACzB,cAAc,EACd,gBAAgB,EAChB,6BAA6B,EAChC,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAG3D;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACtC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE,oBAAoB,KAAK,SAAS,EAAE,CAAC,CAAC;IAEnE;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE,oBAAoB,KAAK,UAAU,EAAE,CAAC,CAAC;IAE1E;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,GAAG,EAAE,oBAAoB,KAAK,MAAM,CAAC,CAA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;;;;;;;;;;OAeG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAE7B;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;;;OAOG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACvC;AAED;;;;GAIG;AACH,MAAM,MAAM,2BAA2B,GAAG,6BAA6B,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAAC;AAE1G;;;;GAIG;AACH,wBAAgB,kBAAkB,CAC9B,MAAM,EAAE,yBAAyB,GAAG,2BAA2B,EAC/D,IAAI,CAAC,EAAE,KAAK,CAAC,cAAc,GAC5B,yBAAyB,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAsE7D"}
|
@@ -7,7 +7,7 @@ import { useInsight } from "./useInsight.js";
|
|
7
7
|
* @public
|
8
8
|
*/
|
9
9
|
export function useInsightDataView(config, deps) {
|
10
|
-
const { insight: insightRef, sorts, dateFormat, dimensions, filters, window, executeByReference, onCancel, onError, onLoading, onPending, onSuccess, } = config;
|
10
|
+
const { insight: insightRef, sorts, dateFormat, dimensions, filters, window, executeByReference, enableExecutionCancelling = false, onCancel, onError, onLoading, onPending, onSuccess, } = config;
|
11
11
|
const backend = useBackendStrict(config.backend, "useInsightDataView");
|
12
12
|
const workspace = useWorkspaceStrict(config.workspace, "useInsightDataView");
|
13
13
|
const effectiveDeps = deps ?? [];
|
@@ -34,6 +34,7 @@ export function useInsightDataView(config, deps) {
|
|
34
34
|
window,
|
35
35
|
backend,
|
36
36
|
workspace,
|
37
|
+
enableExecutionCancelling,
|
37
38
|
onCancel,
|
38
39
|
onError,
|
39
40
|
onLoading,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useInsightDataView.js","sourceRoot":"","sources":["../../src/execution/useInsightDataView.ts"],"names":[],"mappings":"AAGA,OAAO,EACH,gBAAgB,EAChB,kBAAkB,EAClB,kCA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EtE,OAAO;QACH,MAAM,EAAE,wBAAwB,CAAC,MAAM;QACvC,KAAK,EAAE,iCAAiC,CAAC,kBAAkB,CAAC;QAC5D,MAAM,EAAE,kCAAkC,CAAC,kBAAkB,CAAC;KACF,CAAC;AACrE,CAAC"}
|
@@ -31,6 +31,15 @@ export interface IWithExecution<T> {
|
|
31
31
|
* Specify event callbacks which the HOC will trigger in different situations.
|
32
32
|
*/
|
33
33
|
events?: IWithLoadingEvents<T> | ((props: T) => IWithLoadingEvents<T>);
|
34
|
+
/**
|
35
|
+
* Optionally enable real execution cancellation.
|
36
|
+
*
|
37
|
+
* This means that if the execution request is not yet finished and the execution changes,
|
38
|
+
* the request will be cancelled and the new execution will be started.
|
39
|
+
*
|
40
|
+
* Default: false
|
41
|
+
*/
|
42
|
+
enableExecutionCancelling?: boolean | ((props: T) => boolean);
|
34
43
|
/**
|
35
44
|
* Customize, whether execution & data loading should start as soon as component is mounted.
|
36
45
|
*
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"withExecution.d.ts","sourceRoot":"","sources":["../../src/execution/withExecution.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAiB,MAAM,2BAA2B,CAAC;AAC9E,OAAO,EAEH,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACjB,MAAM,2BAA2B,CAAC;AAGnC;;;;;;;;GAQG;AACH,MAAM,WAAW,cAAc,CAAC,CAAC;IAC7B;;OAEG;IACH,SAAS,EACH,kBAAkB,GAClB,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,kBAAkB,CAAC,GAClC,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAElD;;;;OAIG;IACH,WAAW,EAAE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,MAAM,CAAC,CAAC;IAE7C;;;;OAIG;IACH,MAAM,CAAC,EAAE,cAAc,GAAG,CAAC,CAAC,KAAK,EAA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G,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,cAAc,GAAG,SAAS,CAAC,CAAC;IAErE;;OAEG;IACH,MAAM,CAAC,EAAE,kBAAkB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC;IAEvE;;;;;;;OAOG;IACH,yBAAyB,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC;IAE9D;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC;IAEhD;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,KAAK,OAAO,CAAC;CAC3D;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAC3B,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,GAC1B,CAAC,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,GAAG,iBAAiB,CAAC,KAAK,KAAK,CAAC,cAAc,CAAC,CAAC,EAAE,GAAG,CAAC,CA4ChG"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
// (C) 2019-
|
1
|
+
// (C) 2019-2025 GoodData Corporation
|
2
2
|
import { isNoDataError } from "@gooddata/sdk-backend-spi";
|
3
3
|
import { withExecutionLoading, } from "./withExecutionLoading.js";
|
4
4
|
import { DataViewFacade } from "../base/index.js";
|
@@ -10,11 +10,18 @@ import { DataViewFacade } from "../base/index.js";
|
|
10
10
|
* @internal
|
11
11
|
*/
|
12
12
|
export function withExecution(params) {
|
13
|
-
const { execution, events, loadOnMount, shouldRefetch, window, exportTitle } = params;
|
13
|
+
const { execution, events, loadOnMount, shouldRefetch, window, exportTitle, enableExecutionCancelling } = params;
|
14
14
|
return (WrappedComponent) => {
|
15
15
|
const withLoadingParams = {
|
16
|
-
|
17
|
-
|
16
|
+
enableExecutionCancelling,
|
17
|
+
promiseFactory: async (props, window, signal) => {
|
18
|
+
let _execution = typeof execution === "function" ? await execution(props) : execution;
|
19
|
+
const enableRealCancellation = typeof enableExecutionCancelling === "function"
|
20
|
+
? enableExecutionCancelling(props)
|
21
|
+
: enableExecutionCancelling;
|
22
|
+
if (enableRealCancellation && signal) {
|
23
|
+
_execution = _execution.withSignal(signal);
|
24
|
+
}
|
18
25
|
const executionResult = await _execution.execute();
|
19
26
|
try {
|
20
27
|
const dataView = !window
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"withExecution.js","sourceRoot":"","sources":["../../src/execution/withExecution.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAsB,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC9E,OAAO,EACH,oBAAoB,GAIvB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;
|
1
|
+
{"version":3,"file":"withExecution.js","sourceRoot":"","sources":["../../src/execution/withExecution.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAsB,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC9E,OAAO,EACH,oBAAoB,GAIvB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAoElD;;;;;;GAMG;AACH,MAAM,UAAU,aAAa,CACzB,MAAyB;IAEzB,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,EAAE,WAAW,EAAE,yBAAyB,EAAE,GACnG,MAAM,CAAC;IAEX,OAAO,CAAC,gBAA4D,EAAE,EAAE;QACpE,MAAM,iBAAiB,GAAG;YACtB,yBAAyB;YACzB,cAAc,EAAE,KAAK,EAAE,KAAQ,EAAE,MAAuB,EAAE,MAAoB,EAAE,EAAE;gBAC9E,IAAI,UAAU,GAAG,OAAO,SAAS,KAAK,UAAU,CAAC,CAAC,CAAC,MAAM,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;gBAEtF,MAAM,sBAAsB,GACxB,OAAO,yBAAyB,KAAK,UAAU;oBAC3C,CAAC,CAAC,yBAAyB,CAAC,KAAK,CAAC;oBAClC,CAAC,CAAC,yBAAyB,CAAC;gBAEpC,IAAI,sBAAsB,IAAI,MAAM,EAAE,CAAC;oBACnC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;gBAC/C,CAAC;gBAED,MAAM,eAAe,GAAG,MAAM,UAAU,CAAC,OAAO,EAAE,CAAC;gBACnD,IAAI,CAAC;oBACD,MAAM,QAAQ,GAAG,CAAC,MAAM;wBACpB,CAAC,CAAC,MAAM,eAAe,CAAC,OAAO,EAAE;wBACjC,CAAC,CAAC,MAAM,eAAe,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;oBAEnE,OAAO,cAAc,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;gBACxC,CAAC;gBAAC,OAAO,GAAG,EAAE,CAAC;oBACX,iGAAiG;oBACjG,IAAI,aAAa,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC;wBACrC,OAAO,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,QAAS,CAAC,CAAC;oBAC7C,CAAC;oBAED,MAAM,GAAG,CAAC;gBACd,CAAC;YACL,CAAC;YACD,WAAW;YACX,WAAW;YACX,MAAM;YACN,aAAa;YACb,MAAM;SACT,CAAC;QAEF,OAAO,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,gBAAgB,CAAC,CAAC;IACrE,CAAC,CAAC;AACN,CAAC"}
|
@@ -104,8 +104,9 @@ export interface IWithExecutionLoading<TProps> {
|
|
104
104
|
*
|
105
105
|
* @param props - wrapped component props
|
106
106
|
* @param window - data view window to retrieve, not specified in case all data should be retrieved
|
107
|
+
* @param signal - abort signal, will be used to cancel the execution
|
107
108
|
*/
|
108
|
-
promiseFactory: (props: TProps, window?: DataViewWindow) => Promise<DataViewFacade>;
|
109
|
+
promiseFactory: (props: TProps, window?: DataViewWindow, signal?: AbortSignal) => Promise<DataViewFacade>;
|
109
110
|
/**
|
110
111
|
* Specify data view window to retrieve from backend.
|
111
112
|
*
|
@@ -132,6 +133,15 @@ export interface IWithExecutionLoading<TProps> {
|
|
132
133
|
* @param nextProps - next props
|
133
134
|
*/
|
134
135
|
shouldRefetch?: (prevProps: TProps, nextProps: TProps) => boolean;
|
136
|
+
/**
|
137
|
+
* Optionally enable real execution cancellation.
|
138
|
+
*
|
139
|
+
* This means that if the execution request is not yet finished and the execution changes,
|
140
|
+
* the request will be cancelled and the new execution will be started.
|
141
|
+
*
|
142
|
+
* Default: false
|
143
|
+
*/
|
144
|
+
enableExecutionCancelling?: boolean | ((props: TProps) => boolean);
|
135
145
|
}
|
136
146
|
/**
|
137
147
|
* A React HOC responsible for orchestrating resolution of a data promise (e.g. data to load).
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"withExecutionLoading.d.ts","sourceRoot":"","sources":["../../src/execution/withExecutionLoading.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAKH,cAAc,EACd,gBAAgB,EAEhB,eAAe,EAGlB,MAAM,kBAAkB,CAAC;AAE1B;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG;IACzB;;OAEG;IACH,MAAM,EAAE,MAAM,EAAE,CAAC;IAEjB;;OAEG;IACH,IAAI,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC5B;;;OAGG;IACH,MAAM,EAAE,cAAc,GAAG,SAAS,CAAC;IAEnC;;OAEG;IACH,KAAK,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAEpC;;;OAGG;IACH,SAAS,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ACH,MAAM,CAAC,EAAE,kBAAkB,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,kBAAkB,CAAC,MAAM,CAAC,CAAC,CAAC;IAEtF;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC;IAErD;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC;IAElE;;;;;;;OAOG;IACH,yBAAyB,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC;CACtE;AAQD;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EACvC,MAAM,EAAE,qBAAqB,CAAC,MAAM,CAAC,GACtC,CAAC,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,MAAM,GAAG,iBAAiB,CAAC,KAAK,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CA+MrG"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
// (C) 2019-
|
1
|
+
// (C) 2019-2025 GoodData Corporation
|
2
2
|
import React from "react";
|
3
3
|
import noop from "lodash/noop.js";
|
4
4
|
import hoistNonReactStatics from "hoist-non-react-statics";
|
@@ -12,7 +12,7 @@ import { CancelledSdkError, convertError, createExportErrorFunction, createExpor
|
|
12
12
|
* @internal
|
13
13
|
*/
|
14
14
|
export function withExecutionLoading(params) {
|
15
|
-
const { promiseFactory, loadOnMount = true, events = {}, shouldRefetch = () => false, window, exportTitle, } = params;
|
15
|
+
const { promiseFactory, loadOnMount = true, events = {}, shouldRefetch = () => false, window, exportTitle, enableExecutionCancelling = false, } = params;
|
16
16
|
return (WrappedComponent) => {
|
17
17
|
class WithLoading extends React.Component {
|
18
18
|
isWithExecutionLoadingUnmounted = false;
|
@@ -89,8 +89,11 @@ export function withExecutionLoading(params) {
|
|
89
89
|
}
|
90
90
|
this.startLoading();
|
91
91
|
const readWindow = typeof window === "function" ? window(this.props) : window;
|
92
|
-
const
|
93
|
-
|
92
|
+
const enableRealCancellation = typeof enableExecutionCancelling === "function"
|
93
|
+
? enableExecutionCancelling(this.props)
|
94
|
+
: enableExecutionCancelling;
|
95
|
+
const promise = (signal) => promiseFactory(this.props, readWindow, signal);
|
96
|
+
this.cancelablePromise = makeCancelable((signal) => promise(enableRealCancellation ? signal : undefined), enableRealCancellation);
|
94
97
|
try {
|
95
98
|
const result = await this.cancelablePromise.promise;
|
96
99
|
if (!this.isWithExecutionLoadingUnmounted) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"withExecutionLoading.js","sourceRoot":"","sources":["../../src/execution/withExecutionLoading.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAClC,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EACH,iBAAiB,EACjB,YAAY,EACZ,yBAAyB,EACzB,oBAAoB,EAKpB,aAAa,EACb,cAAc,GACjB,MAAM,kBAAkB,CAAC;
|
1
|
+
{"version":3,"file":"withExecutionLoading.js","sourceRoot":"","sources":["../../src/execution/withExecutionLoading.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAClC,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EACH,iBAAiB,EACjB,YAAY,EACZ,yBAAyB,EACzB,oBAAoB,EAKpB,aAAa,EACb,cAAc,GACjB,MAAM,kBAAkB,CAAC;AAyK1B;;;;;;;GAOG;AACH,MAAM,UAAU,oBAAoB,CAChC,MAAqC;IAErC,MAAM,EACF,cAAc,EACd,WAAW,GAAG,IAAI,EAClB,MAAM,GAAG,EAAE,E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,CAAC;YACL,CAAC;YAEM,oBAAoB;gBACvB,IAAI,CAAC,+BAA+B,GAAG,IAAI,CAAC;gBAC5C,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;oBACzB,IAAI,CAAC,iBAAiB,CAAC,MAAM,EAAE,CAAC;oBAChC,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,eAAe,EAAE,EAAE,CAAC;wBAC5C,IAAI,CAAC,QAAQ,CAAC,IAAI,iBAAiB,EAAE,CAAC,CAAC;oBAC3C,CAAC;gBACL,CAAC;YACL,CAAC;YAEM,MAAM;gBACT,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;gBAEhD,IAAI,IAAI,CAAC,aAAa,EAAE,EAAE,CAAC;oBACvB;;;;;;;;;uBASG;oBACH,MAAM,eAAe,GAAG;wBACpB,MAAM,EAAE,SAAS;wBACjB,SAAS,EAAE,IAAI;wBACf,KAAK,EAAE,SAAS;wBAChB,MAAM,EAAE,IAAI,CAAC,KAAK;qBACrB,CAAC;oBAEF,OAAO,oBAAC,gBAAgB,OAAK,IAAI,CAAC,KAAK,KAAM,eAAe,GAAI,CAAC;gBACrE,CAAC;gBAED,MAAM,eAAe,GAAG;oBACpB,MAAM;oBACN,SAAS;oBACT,KAAK;oBACL,MAAM,EAAE,IAAI,CAAC,KAAK;iBACrB,CAAC;gBAEF,OAAO,oBAAC,gBAAgB,OAAK,IAAI,CAAC,KAAK,KAAM,eAAe,GAAI,CAAC;YACrE,CAAC;SACJ;QAED,oBAAoB,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC;QAEpD,OAAO,WAAW,CAAC;IACvB,CAAC,CAAC;AACN,CAAC"}
|
package/esm/index.d.ts
CHANGED
@@ -20,4 +20,6 @@ export * from "./locales.js";
|
|
20
20
|
* @public
|
21
21
|
*/
|
22
22
|
export type { ISeparators } from "@gooddata/sdk-model";
|
23
|
+
export { CorrelationProvider, useCorrelationData, useBackendWithCorrelation, BackendProviderWithCorrelation, } from "./base/react/CorrelationContext.js";
|
24
|
+
export type { ICorrelationProviderProps, IBackendProviderWithCorrelationProps, } from "./base/react/CorrelationContext.js";
|
23
25
|
//# sourceMappingURL=index.d.ts.map
|
package/esm/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;GAYG;AAIH,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAE7B;;;GAGG;AACH,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;GAYG;AAIH,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAE7B;;;GAGG;AACH,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EACH,mBAAmB,EACnB,kBAAkB,EAClB,yBAAyB,EACzB,8BAA8B,GACjC,MAAM,oCAAoC,CAAC;AAC5C,YAAY,EACR,yBAAyB,EACzB,oCAAoC,GACvC,MAAM,oCAAoC,CAAC"}
|
package/esm/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
// (C) 2007-
|
1
|
+
// (C) 2007-2025 GoodData Corporation
|
2
2
|
/**
|
3
3
|
* This package provides base functionality useful for building React visualizations on top of GoodData.
|
4
4
|
*
|
@@ -17,4 +17,5 @@ export * from "./base/index.js";
|
|
17
17
|
export * from "./execution/index.js";
|
18
18
|
export * from "./kpi/index.js";
|
19
19
|
export * from "./locales.js";
|
20
|
+
export { CorrelationProvider, useCorrelationData, useBackendWithCorrelation, BackendProviderWithCorrelation, } from "./base/react/CorrelationContext.js";
|
20
21
|
//# sourceMappingURL=index.js.map
|
package/esm/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC;;;;;;;;;;;;GAYG;AAEH,cAAc;AAEd,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC;;;;;;;;;;;;GAYG;AAEH,cAAc;AAEd,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAQ7B,OAAO,EACH,mBAAmB,EACnB,kBAAkB,EAClB,yBAAyB,EACzB,8BAA8B,GACjC,MAAM,oCAAoC,CAAC"}
|
package/esm/sdk-ui.d.ts
CHANGED
@@ -56,6 +56,7 @@ import { IPositiveAttributeFilter } from '@gooddata/sdk-model';
|
|
56
56
|
import { IPreparedExecution } from '@gooddata/sdk-backend-spi';
|
57
57
|
import { IRankingFilter } from '@gooddata/sdk-model';
|
58
58
|
import { IRelativeDateFilter } from '@gooddata/sdk-model';
|
59
|
+
import { IRequestCorrelationMetadata } from '@gooddata/sdk-backend-spi';
|
59
60
|
import { IResultAttributeHeader } from '@gooddata/sdk-model';
|
60
61
|
import { IResultAttributeHeaderItem } from '@gooddata/sdk-model';
|
61
62
|
import { IResultHeader } from '@gooddata/sdk-model';
|
@@ -209,6 +210,15 @@ export declare type AttributesOrPlaceholders = ValuesOrPlaceholders<IAttribute>;
|
|
209
210
|
*/
|
210
211
|
export declare const BackendProvider: React_2.FC<IBackendProviderProps>;
|
211
212
|
|
213
|
+
/**
|
214
|
+
* Combined provider for both backend and correlation metadata.
|
215
|
+
* This is a convenience component that wraps BackendProvider and CorrelationProvider
|
216
|
+
* to provide both a backend instance and correlation metadata to components.
|
217
|
+
*
|
218
|
+
* @public
|
219
|
+
*/
|
220
|
+
export declare const BackendProviderWithCorrelation: React_2.FC<IBackendProviderWithCorrelationProps>;
|
221
|
+
|
212
222
|
/**
|
213
223
|
* This error means that server could not understand the request due to invalid syntax.
|
214
224
|
*
|
@@ -369,6 +379,14 @@ export declare function convertDrillableItemsToPredicates(drillableItems: Explic
|
|
369
379
|
*/
|
370
380
|
export declare function convertError(error: unknown): GoodDataSdkError;
|
371
381
|
|
382
|
+
/**
|
383
|
+
* CorrelationProvider provides request correlation metadata to components.
|
384
|
+
* When nested, correlation metadata from ancestor providers is merged with the current provider.
|
385
|
+
*
|
386
|
+
* @public
|
387
|
+
*/
|
388
|
+
export declare const CorrelationProvider: React_2.FC<ICorrelationProviderProps>;
|
389
|
+
|
372
390
|
/**
|
373
391
|
* Creates function that should be passed to onExportReady in the event that the backend execution
|
374
392
|
* fails and export is not possible.
|
@@ -388,14 +406,6 @@ export declare function createExportErrorFunction(error: GoodDataSdkError): IExp
|
|
388
406
|
*/
|
389
407
|
export declare function createExportFunction(result: IExecutionResult, exportTitle?: string): IExportFunction;
|
390
408
|
|
391
|
-
/**
|
392
|
-
* Creates function to export Raw data in the provided result.
|
393
|
-
*
|
394
|
-
* @param result - data view that will be exported
|
395
|
-
* @internal
|
396
|
-
*/
|
397
|
-
export declare function createExportRawFunction(result: IExecutionResult, filename: string): Promise<IExportResult>;
|
398
|
-
|
399
409
|
/**
|
400
410
|
* @internal
|
401
411
|
*/
|
@@ -769,6 +779,12 @@ export declare class DataViewLoader {
|
|
769
779
|
* @alpha
|
770
780
|
*/
|
771
781
|
withTotals: (...totals: ITotal[]) => DataViewLoader;
|
782
|
+
/**
|
783
|
+
* Runs execution with the provided AbortSignal.
|
784
|
+
*
|
785
|
+
* @alpha
|
786
|
+
*/
|
787
|
+
withSignal: (signal: AbortSignal) => DataViewLoader;
|
772
788
|
/**
|
773
789
|
* Loads subset of the result data and wraps them in {@link DataViewFacade}.
|
774
790
|
*
|
@@ -1271,6 +1287,26 @@ export declare interface IBackendProviderProps {
|
|
1271
1287
|
children?: React_2.ReactNode;
|
1272
1288
|
}
|
1273
1289
|
|
1290
|
+
/**
|
1291
|
+
* Combined provider for both backend and correlation metadata.
|
1292
|
+
*
|
1293
|
+
* @public
|
1294
|
+
*/
|
1295
|
+
export declare interface IBackendProviderWithCorrelationProps {
|
1296
|
+
/**
|
1297
|
+
* Backend instance to use or enhance with correlation
|
1298
|
+
*/
|
1299
|
+
backend?: IAnalyticalBackend;
|
1300
|
+
/**
|
1301
|
+
* Key-value pairs of correlation metadata to be used for telemetry
|
1302
|
+
*/
|
1303
|
+
correlationData: IRequestCorrelationMetadata;
|
1304
|
+
/**
|
1305
|
+
* React children
|
1306
|
+
*/
|
1307
|
+
children?: React_2.ReactNode;
|
1308
|
+
}
|
1309
|
+
|
1274
1310
|
/**
|
1275
1311
|
* @internal
|
1276
1312
|
*/
|
@@ -1410,6 +1446,21 @@ export declare interface IComposedPlaceholder<TReturn, TValue extends any[], TCo
|
|
1410
1446
|
use: IUseComposedPlaceholderHook<IComposedPlaceholder<TReturn, TValue, TContext>>;
|
1411
1447
|
}
|
1412
1448
|
|
1449
|
+
/**
|
1450
|
+
* Props of the {@link CorrelationProvider} component.
|
1451
|
+
* @public
|
1452
|
+
*/
|
1453
|
+
export declare interface ICorrelationProviderProps {
|
1454
|
+
/**
|
1455
|
+
* Key-value pairs of correlation metadata to be used for telemetry
|
1456
|
+
*/
|
1457
|
+
correlationData: Record<string, string>;
|
1458
|
+
/**
|
1459
|
+
* React children
|
1460
|
+
*/
|
1461
|
+
children?: React_2.ReactNode;
|
1462
|
+
}
|
1463
|
+
|
1413
1464
|
/**
|
1414
1465
|
* Defines methods to access data in the data view.
|
1415
1466
|
*
|
@@ -1942,6 +1993,15 @@ export declare interface IExecuteInsightProps extends IWithLoadingEvents<IExecut
|
|
1942
1993
|
* this mode.
|
1943
1994
|
*/
|
1944
1995
|
executeByReference?: boolean;
|
1996
|
+
/**
|
1997
|
+
* Optionally enable real execution cancellation.
|
1998
|
+
*
|
1999
|
+
* This means that if the execution request is not yet finished and the execution changes,
|
2000
|
+
* the request will be cancelled and the new execution will be started.
|
2001
|
+
*
|
2002
|
+
* Default: false
|
2003
|
+
*/
|
2004
|
+
enableExecutionCancelling?: boolean;
|
1945
2005
|
/**
|
1946
2006
|
* Child component to which rendering is delegated.
|
1947
2007
|
*
|
@@ -2061,6 +2121,15 @@ export declare interface IExecuteProps extends IWithLoadingEvents<IExecuteProps>
|
|
2061
2121
|
* If not specified, all data will be loaded.
|
2062
2122
|
*/
|
2063
2123
|
window?: DataViewWindow;
|
2124
|
+
/**
|
2125
|
+
* Optionally enable real execution cancellation.
|
2126
|
+
*
|
2127
|
+
* This means that if the execution request is not yet finished and the execution changes,
|
2128
|
+
* the request will be cancelled and the new execution will be started.
|
2129
|
+
*
|
2130
|
+
* Default: false
|
2131
|
+
*/
|
2132
|
+
enableExecutionCancelling?: boolean;
|
2064
2133
|
/**
|
2065
2134
|
* Child component to which rendering is delegated.
|
2066
2135
|
*
|
@@ -2564,6 +2633,15 @@ export declare interface IRawExecuteProps extends IWithLoadingEvents<IRawExecute
|
|
2564
2633
|
* to trigger the execution and loading.
|
2565
2634
|
*/
|
2566
2635
|
loadOnMount?: boolean;
|
2636
|
+
/**
|
2637
|
+
* Optionally enable real execution cancellation.
|
2638
|
+
*
|
2639
|
+
* This means that if the execution request is not yet finished and the execution changes,
|
2640
|
+
* the request will be cancelled and the new execution will be started.
|
2641
|
+
*
|
2642
|
+
* Default: false
|
2643
|
+
*/
|
2644
|
+
enableExecutionCancelling?: boolean;
|
2567
2645
|
/**
|
2568
2646
|
* Child component to which rendering is delegated.
|
2569
2647
|
*
|
@@ -3076,6 +3154,15 @@ export declare interface IUseExecutionDataViewConfig {
|
|
3076
3154
|
* workspace here, then the executor MUST be rendered within an existing WorkspaceContext.
|
3077
3155
|
*/
|
3078
3156
|
workspace?: string;
|
3157
|
+
/**
|
3158
|
+
* Optionally enable real execution cancellation.
|
3159
|
+
*
|
3160
|
+
* This means that if the execution request is not yet finished and the execution changes,
|
3161
|
+
* the request will be cancelled and the new execution will be started.
|
3162
|
+
*
|
3163
|
+
* Default: false
|
3164
|
+
*/
|
3165
|
+
enableExecutionCancelling?: boolean;
|
3079
3166
|
}
|
3080
3167
|
|
3081
3168
|
/**
|
@@ -3147,6 +3234,15 @@ export declare interface IUseInsightDataViewConfig {
|
|
3147
3234
|
* workspace here, then the executor MUST be rendered within an existing WorkspaceContext.
|
3148
3235
|
*/
|
3149
3236
|
workspace?: string;
|
3237
|
+
/**
|
3238
|
+
* Optionally enable real execution cancellation.
|
3239
|
+
*
|
3240
|
+
* This means that if the execution request is not yet finished and the execution changes,
|
3241
|
+
* the request will be cancelled and the new execution will be started.
|
3242
|
+
*
|
3243
|
+
* Default: false
|
3244
|
+
*/
|
3245
|
+
enableExecutionCancelling?: boolean;
|
3150
3246
|
}
|
3151
3247
|
|
3152
3248
|
/**
|
@@ -3278,6 +3374,15 @@ export declare interface IWithExecution<T> {
|
|
3278
3374
|
* Specify event callbacks which the HOC will trigger in different situations.
|
3279
3375
|
*/
|
3280
3376
|
events?: IWithLoadingEvents<T> | ((props: T) => IWithLoadingEvents<T>);
|
3377
|
+
/**
|
3378
|
+
* Optionally enable real execution cancellation.
|
3379
|
+
*
|
3380
|
+
* This means that if the execution request is not yet finished and the execution changes,
|
3381
|
+
* the request will be cancelled and the new execution will be started.
|
3382
|
+
*
|
3383
|
+
* Default: false
|
3384
|
+
*/
|
3385
|
+
enableExecutionCancelling?: boolean | ((props: T) => boolean);
|
3281
3386
|
/**
|
3282
3387
|
* Customize, whether execution & data loading should start as soon as component is mounted.
|
3283
3388
|
*
|
@@ -3323,8 +3428,9 @@ export declare interface IWithExecutionLoading<TProps> {
|
|
3323
3428
|
*
|
3324
3429
|
* @param props - wrapped component props
|
3325
3430
|
* @param window - data view window to retrieve, not specified in case all data should be retrieved
|
3431
|
+
* @param signal - abort signal, will be used to cancel the execution
|
3326
3432
|
*/
|
3327
|
-
promiseFactory: (props: TProps, window?: DataViewWindow) => Promise<DataViewFacade>;
|
3433
|
+
promiseFactory: (props: TProps, window?: DataViewWindow, signal?: AbortSignal) => Promise<DataViewFacade>;
|
3328
3434
|
/**
|
3329
3435
|
* Specify data view window to retrieve from backend.
|
3330
3436
|
*
|
@@ -3351,6 +3457,15 @@ export declare interface IWithExecutionLoading<TProps> {
|
|
3351
3457
|
* @param nextProps - next props
|
3352
3458
|
*/
|
3353
3459
|
shouldRefetch?: (prevProps: TProps, nextProps: TProps) => boolean;
|
3460
|
+
/**
|
3461
|
+
* Optionally enable real execution cancellation.
|
3462
|
+
*
|
3463
|
+
* This means that if the execution request is not yet finished and the execution changes,
|
3464
|
+
* the request will be cancelled and the new execution will be started.
|
3465
|
+
*
|
3466
|
+
* Default: false
|
3467
|
+
*/
|
3468
|
+
enableExecutionCancelling?: boolean | ((props: TProps) => boolean);
|
3354
3469
|
}
|
3355
3470
|
|
3356
3471
|
/**
|
@@ -3463,7 +3578,7 @@ export declare function localIdentifierMatch(localIdOrMeasure: string | IMeasure
|
|
3463
3578
|
*
|
3464
3579
|
* @internal
|
3465
3580
|
*/
|
3466
|
-
export declare function makeCancelable<T>(promise: Promise<T
|
3581
|
+
export declare function makeCancelable<T>(promise: (signal: AbortSignal) => Promise<T>, enableAbortController?: boolean): ICancelablePromise<T>;
|
3467
3582
|
|
3468
3583
|
/**
|
3469
3584
|
* Generate union of measures from union of measure definitions.
|
@@ -4025,6 +4140,20 @@ export declare const useBackend: (backend?: IAnalyticalBackend) => IAnalyticalBa
|
|
4025
4140
|
*/
|
4026
4141
|
export declare const useBackendStrict: (backend?: IAnalyticalBackend, context?: string) => IAnalyticalBackend;
|
4027
4142
|
|
4143
|
+
/**
|
4144
|
+
* Hook to get a backend instance with correlation metadata from context,
|
4145
|
+
* and optionally merge them with additional correlation metadata provided as a parameter.
|
4146
|
+
*
|
4147
|
+
* @remarks
|
4148
|
+
* This hook enhances the backend from useBackend() with correlation metadata
|
4149
|
+
* from the nearest CorrelationProvider.
|
4150
|
+
*
|
4151
|
+
* @param backend - optional backend override
|
4152
|
+
* @param correlationMetadata - optional correlation metadata to merge with the context data
|
4153
|
+
* @public
|
4154
|
+
*/
|
4155
|
+
export declare const useBackendWithCorrelation: (backend?: IAnalyticalBackend, correlationMetadata?: IRequestCorrelationMetadata) => IAnalyticalBackend | undefined;
|
4156
|
+
|
4028
4157
|
/**
|
4029
4158
|
* This hook provides easy way to work with Promises in React components.
|
4030
4159
|
*
|
@@ -4096,7 +4225,14 @@ export declare type UseCancelablePromiseLoadingState = {
|
|
4096
4225
|
* @public
|
4097
4226
|
*/
|
4098
4227
|
export declare type UseCancelablePromiseOptions<TResult, TError> = UseCancelablePromiseCallbacks<TResult, TError> & {
|
4099
|
-
promise: (() => Promise<TResult>) | undefined | null;
|
4228
|
+
promise: ((signal: AbortSignal) => Promise<TResult>) | undefined | null;
|
4229
|
+
/**
|
4230
|
+
* Optionally enable the AbortController that will be aborted when the dependency list changes, if the promise is still running.
|
4231
|
+
*
|
4232
|
+
* Note that the provided promise implementation must support cancellation by handling
|
4233
|
+
* the AbortSignal parameter.
|
4234
|
+
*/
|
4235
|
+
enableAbortController?: boolean;
|
4100
4236
|
};
|
4101
4237
|
|
4102
4238
|
/**
|
@@ -4167,6 +4303,13 @@ export declare const useClientWorkspaceStatus: () => UseCancelablePromiseStatus;
|
|
4167
4303
|
*/
|
4168
4304
|
export declare function useComposedPlaceholder<TContext, TPlaceholder extends IComposedPlaceholder<any, any, TContext>>(placeholder: TPlaceholder, resolutionContext?: TContext): PlaceholderResolvedValue<TPlaceholder>;
|
4169
4305
|
|
4306
|
+
/**
|
4307
|
+
* Hook to get correlation metadata from the nearest correlation provider.
|
4308
|
+
*
|
4309
|
+
* @public
|
4310
|
+
*/
|
4311
|
+
export declare const useCorrelationData: () => Record<string, string>;
|
4312
|
+
|
4170
4313
|
/**
|
4171
4314
|
* This hook provides easy way to export data in your preferred format (csv/xlsx/raw) for the provided {@link @gooddata/sdk-backend-spi#IPreparedExecution}.
|
4172
4315
|
*
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@gooddata/sdk-ui",
|
3
|
-
"version": "10.22.0-
|
3
|
+
"version": "10.22.0-beta.1",
|
4
4
|
"description": "GoodData.UI SDK - Core",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -41,9 +41,9 @@
|
|
41
41
|
"ts-invariant": "^0.7.5",
|
42
42
|
"tslib": "^2.5.0",
|
43
43
|
"uuid": "^8.3.2",
|
44
|
-
"@gooddata/sdk-backend-spi": "10.22.0-
|
45
|
-
"@gooddata/sdk-model": "10.22.0-
|
46
|
-
"@gooddata/util": "10.22.0-
|
44
|
+
"@gooddata/sdk-backend-spi": "10.22.0-beta.1",
|
45
|
+
"@gooddata/sdk-model": "10.22.0-beta.1",
|
46
|
+
"@gooddata/util": "10.22.0-beta.1"
|
47
47
|
},
|
48
48
|
"peerDependencies": {
|
49
49
|
"react": "^16.10.0 || ^17.0.0 || ^18.0.0",
|
@@ -94,10 +94,10 @@
|
|
94
94
|
"typescript": "5.3.3",
|
95
95
|
"vitest": "1.0.4",
|
96
96
|
"vitest-dom": "0.1.1",
|
97
|
-
"@gooddata/i18n-toolkit": "10.22.0-
|
98
|
-
"@gooddata/sdk-backend-base": "10.22.0-
|
99
|
-
"@gooddata/
|
100
|
-
"@gooddata/
|
97
|
+
"@gooddata/i18n-toolkit": "10.22.0-beta.1",
|
98
|
+
"@gooddata/sdk-backend-base": "10.22.0-beta.1",
|
99
|
+
"@gooddata/sdk-backend-mockingbird": "10.22.0-beta.1",
|
100
|
+
"@gooddata/reference-workspace": "10.22.0-beta.1"
|
101
101
|
},
|
102
102
|
"scripts": {
|
103
103
|
"clean": "rm -rf ci dist esm coverage *.log tsconfig.tsbuildinfo",
|