@gooddata/sdk-ui 10.44.0-alpha.2 → 10.44.0-alpha.4
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/localization/IntlWrapper.d.ts +3 -3
- package/esm/base/localization/IntlWrapper.d.ts.map +1 -1
- package/esm/base/localization/IntlWrapper.js +3 -2
- package/esm/base/localization/IntlWrapper.js.map +1 -1
- package/esm/base/localization/TranslationsCustomizationProvider/Context.d.ts +4 -4
- package/esm/base/localization/TranslationsCustomizationProvider/Context.d.ts.map +1 -1
- package/esm/base/localization/TranslationsCustomizationProvider/Context.js +7 -7
- package/esm/base/localization/TranslationsCustomizationProvider/Context.js.map +1 -1
- package/esm/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.d.ts +2 -2
- package/esm/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.d.ts.map +1 -1
- package/esm/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.js +3 -2
- package/esm/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.js.map +1 -1
- package/esm/base/localization/intlUtils.d.ts +4 -4
- package/esm/base/localization/intlUtils.d.ts.map +1 -1
- package/esm/base/localization/intlUtils.js +5 -8
- package/esm/base/localization/intlUtils.js.map +1 -1
- package/esm/base/react/BackendContext.d.ts +4 -4
- package/esm/base/react/BackendContext.d.ts.map +1 -1
- package/esm/base/react/BackendContext.js +7 -6
- package/esm/base/react/BackendContext.js.map +1 -1
- package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts +4 -4
- package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts.map +1 -1
- package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js +9 -10
- package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js.map +1 -1
- package/esm/base/react/ClientWorkspaceContext/interfaces.d.ts +2 -1
- package/esm/base/react/ClientWorkspaceContext/interfaces.d.ts.map +1 -1
- package/esm/base/react/ClientWorkspaceContext/interfaces.js +1 -1
- package/esm/base/react/CorrelationContext.d.ts +5 -5
- package/esm/base/react/CorrelationContext.d.ts.map +1 -1
- package/esm/base/react/CorrelationContext.js +7 -6
- package/esm/base/react/CorrelationContext.js.map +1 -1
- package/esm/base/react/ErrorComponent.d.ts +1 -2
- package/esm/base/react/ErrorComponent.d.ts.map +1 -1
- package/esm/base/react/ErrorComponent.js +14 -19
- package/esm/base/react/ErrorComponent.js.map +1 -1
- package/esm/base/react/LoadingComponent.d.ts +1 -2
- package/esm/base/react/LoadingComponent.d.ts.map +1 -1
- package/esm/base/react/LoadingComponent.js +3 -12
- package/esm/base/react/LoadingComponent.js.map +1 -1
- package/esm/base/react/OrganizationContext.d.ts +4 -4
- package/esm/base/react/OrganizationContext.d.ts.map +1 -1
- package/esm/base/react/OrganizationContext.js +4 -3
- package/esm/base/react/OrganizationContext.js.map +1 -1
- package/esm/base/react/WorkspaceContext.d.ts +4 -4
- package/esm/base/react/WorkspaceContext.d.ts.map +1 -1
- package/esm/base/react/WorkspaceContext.js +7 -6
- package/esm/base/react/WorkspaceContext.js.map +1 -1
- package/esm/base/react/contextStore.d.ts +3 -3
- package/esm/base/react/contextStore.d.ts.map +1 -1
- package/esm/base/react/contextStore.js +11 -10
- package/esm/base/react/contextStore.js.map +1 -1
- package/esm/base/react/debounce.js +4 -4
- package/esm/base/react/debounce.js.map +1 -1
- package/esm/base/react/forwardRefWithGenerics.d.ts +2 -2
- package/esm/base/react/forwardRefWithGenerics.d.ts.map +1 -1
- package/esm/base/react/forwardRefWithGenerics.js +2 -2
- package/esm/base/react/forwardRefWithGenerics.js.map +1 -1
- package/esm/base/react/legacy/withEntireDataView.d.ts +2 -2
- package/esm/base/react/legacy/withEntireDataView.d.ts.map +1 -1
- package/esm/base/react/legacy/withEntireDataView.js +6 -6
- package/esm/base/react/legacy/withEntireDataView.js.map +1 -1
- package/esm/base/react/placeholders/context.d.ts +2 -2
- package/esm/base/react/placeholders/context.d.ts.map +1 -1
- package/esm/base/react/placeholders/context.js +4 -3
- package/esm/base/react/placeholders/context.js.map +1 -1
- package/esm/base/react/useAutoupdateRef.d.ts +1 -2
- package/esm/base/react/useAutoupdateRef.d.ts.map +1 -1
- package/esm/base/react/useAutoupdateRef.js +3 -3
- package/esm/base/react/useAutoupdateRef.js.map +1 -1
- package/esm/base/react/useCombineRefs.d.ts +2 -2
- package/esm/base/react/useCombineRefs.d.ts.map +1 -1
- package/esm/base/react/useCombineRefs.js +2 -2
- package/esm/base/react/useCombineRefs.js.map +1 -1
- package/esm/base/react/useInitialProp.js +2 -2
- package/esm/base/react/useInitialProp.js.map +1 -1
- package/esm/base/react/useLocalStorage.d.ts.map +1 -1
- package/esm/base/react/useLocalStorage.js +4 -4
- package/esm/base/react/useLocalStorage.js.map +1 -1
- package/esm/base/react/useObjectDiff.js +3 -3
- package/esm/base/react/useObjectDiff.js.map +1 -1
- package/esm/base/react/usePagedResource.d.ts +2 -1
- package/esm/base/react/usePagedResource.d.ts.map +1 -1
- package/esm/base/react/usePagedResource.js.map +1 -1
- package/esm/base/react/usePromiseCache.d.ts +2 -1
- package/esm/base/react/usePromiseCache.d.ts.map +1 -1
- package/esm/base/react/usePromiseCache.js.map +1 -1
- package/esm/base/react/usePropState.d.ts +1 -2
- package/esm/base/react/usePropState.d.ts.map +1 -1
- package/esm/base/react/usePropState.js +3 -3
- package/esm/base/react/usePropState.js.map +1 -1
- package/esm/base/react/validation/ValidationContextStore.d.ts.map +1 -1
- package/esm/base/react/validation/ValidationContextStore.js +7 -7
- package/esm/base/react/validation/ValidationContextStore.js.map +1 -1
- package/esm/base/react/withContexts.d.ts +2 -1
- package/esm/base/react/withContexts.d.ts.map +1 -1
- package/esm/base/react/withContexts.js.map +1 -1
- package/esm/base/react/wrapDisplayName.d.ts +2 -1
- package/esm/base/react/wrapDisplayName.d.ts.map +1 -1
- package/esm/base/react/wrapDisplayName.js +1 -1
- package/esm/base/react/wrapDisplayName.js.map +1 -1
- package/esm/base/vis/VisualizationProps.d.ts +3 -3
- package/esm/base/vis/VisualizationProps.d.ts.map +1 -1
- package/esm/execution/Execute.d.ts +3 -3
- package/esm/execution/Execute.d.ts.map +1 -1
- package/esm/execution/Execute.js +4 -5
- package/esm/execution/Execute.js.map +1 -1
- package/esm/execution/ExecuteInsight.d.ts +3 -3
- package/esm/execution/ExecuteInsight.d.ts.map +1 -1
- package/esm/execution/ExecuteInsight.js +3 -4
- package/esm/execution/ExecuteInsight.js.map +1 -1
- package/esm/execution/RawExecute.d.ts +3 -3
- package/esm/execution/RawExecute.d.ts.map +1 -1
- package/esm/execution/RawExecute.js +3 -4
- package/esm/execution/RawExecute.js.map +1 -1
- package/esm/execution/useExecutionDataView.d.ts +2 -1
- package/esm/execution/useExecutionDataView.d.ts.map +1 -1
- package/esm/execution/useExecutionDataView.js.map +1 -1
- package/esm/execution/useInsight.d.ts +2 -1
- package/esm/execution/useInsight.d.ts.map +1 -1
- package/esm/execution/useInsight.js +1 -0
- package/esm/execution/useInsight.js.map +1 -1
- package/esm/execution/useInsightDataView.d.ts +2 -1
- package/esm/execution/useInsightDataView.d.ts.map +1 -1
- package/esm/execution/useInsightDataView.js +1 -0
- package/esm/execution/useInsightDataView.js.map +1 -1
- package/esm/execution/withExecution.d.ts +2 -1
- package/esm/execution/withExecution.d.ts.map +1 -1
- package/esm/execution/withExecution.js.map +1 -1
- package/esm/execution/withExecutionLoading.d.ts +2 -2
- package/esm/execution/withExecutionLoading.d.ts.map +1 -1
- package/esm/execution/withExecutionLoading.js +7 -6
- package/esm/execution/withExecutionLoading.js.map +1 -1
- package/esm/kpi/FormattedNumber.d.ts +1 -2
- package/esm/kpi/FormattedNumber.d.ts.map +1 -1
- package/esm/kpi/FormattedNumber.js +2 -2
- package/esm/kpi/FormattedNumber.js.map +1 -1
- package/esm/kpi/Kpi.d.ts +4 -4
- package/esm/kpi/Kpi.d.ts.map +1 -1
- package/esm/kpi/Kpi.js +14 -16
- package/esm/kpi/Kpi.js.map +1 -1
- package/esm/kpi/KpiError.d.ts +1 -2
- package/esm/kpi/KpiError.d.ts.map +1 -1
- package/esm/kpi/KpiError.js +3 -4
- package/esm/kpi/KpiError.js.map +1 -1
- package/esm/sdk-ui.d.ts +62 -54
- package/package.json +14 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KpiError.d.ts","sourceRoot":"","sources":["../../src/kpi/KpiError.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KpiError.d.ts","sourceRoot":"","sources":["../../src/kpi/KpiError.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;GAEG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,WAAW,2CAmB1C"}
|
package/esm/kpi/KpiError.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
import React from "react";
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
2
|
/**
|
|
4
3
|
* @internal
|
|
5
4
|
*/
|
|
6
5
|
export function KpiError(props) {
|
|
7
6
|
const message = props.message;
|
|
8
|
-
return (
|
|
7
|
+
return (_jsx("span", { className: "gdc-kpi-error", style: {
|
|
9
8
|
whiteSpace: "normal",
|
|
10
9
|
lineHeight: "normal",
|
|
11
10
|
fontSize: "14px",
|
|
@@ -13,6 +12,6 @@ export function KpiError(props) {
|
|
|
13
12
|
verticalAlign: "middle",
|
|
14
13
|
color: "#94a1ad",
|
|
15
14
|
fontFamily: "gdcustomfont, avenir, Helvetica Neue, arial, sans-serif",
|
|
16
|
-
}
|
|
15
|
+
}, children: message }));
|
|
17
16
|
}
|
|
18
17
|
//# sourceMappingURL=KpiError.js.map
|
package/esm/kpi/KpiError.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KpiError.js","sourceRoot":"","sources":["../../src/kpi/KpiError.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KpiError.js","sourceRoot":"","sources":["../../src/kpi/KpiError.tsx"],"names":[],"mappings":";AAIA;;GAEG;AACH,MAAM,UAAU,QAAQ,CAAC,KAAkB;IACvC,MAAM,OAAO,GAAW,KAAK,CAAC,OAAO,CAAC;IAEtC,OAAO,CACH,eACI,SAAS,EAAC,eAAe,EACzB,KAAK,EAAE;YACH,UAAU,EAAE,QAAQ;YACpB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,MAAM;YAChB,UAAU,EAAE,GAAG;YACf,aAAa,EAAE,QAAQ;YACvB,KAAK,EAAE,SAAS;YAChB,UAAU,EAAE,yDAAyD;SACxE,YAEA,OAAO,GACL,CACV,CAAC;AACN,CAAC"}
|
package/esm/sdk-ui.d.ts
CHANGED
|
@@ -13,9 +13,11 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { AuthenticationFlow } from '@gooddata/sdk-backend-spi';
|
|
16
|
+
import { ComponentClass } from 'react';
|
|
16
17
|
import { ComponentType } from 'react';
|
|
17
18
|
import { DataValue } from '@gooddata/sdk-model';
|
|
18
19
|
import { DependencyList } from 'react';
|
|
20
|
+
import { Dispatch } from 'react';
|
|
19
21
|
import { FC } from 'react';
|
|
20
22
|
import { ForecastDataValue } from '@gooddata/sdk-model';
|
|
21
23
|
import { IAbsoluteDateFilter } from '@gooddata/sdk-model';
|
|
@@ -69,12 +71,18 @@ import { ISortItem } from '@gooddata/sdk-model';
|
|
|
69
71
|
import { ITotal } from '@gooddata/sdk-model';
|
|
70
72
|
import { ITotalDescriptor } from '@gooddata/sdk-model';
|
|
71
73
|
import { IWorkspaceSettings } from '@gooddata/sdk-backend-spi';
|
|
74
|
+
import { JSX } from 'react/jsx-runtime';
|
|
72
75
|
import { MessageDescriptor } from 'react-intl';
|
|
76
|
+
import { MutableRefObject } from 'react';
|
|
73
77
|
import { NamedExoticComponent } from 'react';
|
|
74
78
|
import { ObjRef } from '@gooddata/sdk-model';
|
|
75
|
-
import {
|
|
79
|
+
import { PropsWithoutRef } from 'react';
|
|
76
80
|
import { ReactElement } from 'react';
|
|
77
81
|
import { ReactNode } from 'react';
|
|
82
|
+
import { Ref } from 'react';
|
|
83
|
+
import { RefAttributes } from 'react';
|
|
84
|
+
import { RefObject } from 'react';
|
|
85
|
+
import { SetStateAction } from 'react';
|
|
78
86
|
import { TotalType } from '@gooddata/sdk-model';
|
|
79
87
|
import { ValueOrUpdateCallback } from '@gooddata/sdk-backend-base';
|
|
80
88
|
import { WithIntlProps } from 'react-intl';
|
|
@@ -213,7 +221,7 @@ export declare type AttributesOrPlaceholders = ValuesOrPlaceholders<IAttribute>;
|
|
|
213
221
|
*
|
|
214
222
|
* @public
|
|
215
223
|
*/
|
|
216
|
-
export declare function BackendProvider({ children, backend }: IBackendProviderProps):
|
|
224
|
+
export declare function BackendProvider({ children, backend }: IBackendProviderProps): JSX.Element;
|
|
217
225
|
|
|
218
226
|
/**
|
|
219
227
|
* Combined provider for both backend and correlation metadata.
|
|
@@ -222,7 +230,7 @@ export declare function BackendProvider({ children, backend }: IBackendProviderP
|
|
|
222
230
|
*
|
|
223
231
|
* @public
|
|
224
232
|
*/
|
|
225
|
-
export declare function BackendProviderWithCorrelation({ backend: externalBackend, correlationData, children, }: IBackendProviderWithCorrelationProps):
|
|
233
|
+
export declare function BackendProviderWithCorrelation({ backend: externalBackend, correlationData, children, }: IBackendProviderWithCorrelationProps): JSX.Element;
|
|
226
234
|
|
|
227
235
|
/**
|
|
228
236
|
* This error means that server could not understand the request due to invalid syntax.
|
|
@@ -331,7 +339,7 @@ export declare type ChartType = "bar" | "column" | "pie" | "line" | "area" | "do
|
|
|
331
339
|
*
|
|
332
340
|
* @alpha
|
|
333
341
|
*/
|
|
334
|
-
export declare function ClientWorkspaceProvider(props: IClientWorkspaceProviderProps):
|
|
342
|
+
export declare function ClientWorkspaceProvider(props: IClientWorkspaceProviderProps): JSX.Element;
|
|
335
343
|
|
|
336
344
|
/**
|
|
337
345
|
* This error means that execution of forecast ended with error.
|
|
@@ -414,7 +422,7 @@ export declare function convertError(error: unknown): GoodDataSdkError;
|
|
|
414
422
|
*
|
|
415
423
|
* @public
|
|
416
424
|
*/
|
|
417
|
-
export declare function CorrelationProvider({ children, correlationData }: ICorrelationProviderProps):
|
|
425
|
+
export declare function CorrelationProvider({ children, correlationData }: ICorrelationProviderProps): JSX.Element;
|
|
418
426
|
|
|
419
427
|
/**
|
|
420
428
|
* Creates a context store.
|
|
@@ -1007,7 +1015,7 @@ export declare const ErrorCodes: {
|
|
|
1007
1015
|
*
|
|
1008
1016
|
* @public
|
|
1009
1017
|
*/
|
|
1010
|
-
export declare function ErrorComponent({ icon, className, width, height, style, message, description, clientHeight, }: IErrorProps):
|
|
1018
|
+
export declare function ErrorComponent({ icon, className, width, height, style, message, description, clientHeight, }: IErrorProps): JSX.Element;
|
|
1011
1019
|
|
|
1012
1020
|
/**
|
|
1013
1021
|
* The executor provides a more curated experience to obtain and work with data from backends.
|
|
@@ -1024,14 +1032,14 @@ export declare function ErrorComponent({ icon, className, width, height, style,
|
|
|
1024
1032
|
* See {@link IDataAccessMethods} for additional documentation
|
|
1025
1033
|
* @public
|
|
1026
1034
|
*/
|
|
1027
|
-
export declare function Execute(props: IExecuteProps):
|
|
1035
|
+
export declare function Execute(props: IExecuteProps): JSX.Element;
|
|
1028
1036
|
|
|
1029
1037
|
/**
|
|
1030
1038
|
* Gets data for a specific stored insight.
|
|
1031
1039
|
*
|
|
1032
1040
|
* @public
|
|
1033
1041
|
*/
|
|
1034
|
-
export declare const ExecuteInsight:
|
|
1042
|
+
export declare const ExecuteInsight: ComponentType<IExecuteInsightProps>;
|
|
1035
1043
|
|
|
1036
1044
|
/**
|
|
1037
1045
|
* Drillable item reference or predicate that enables insight / kpi drilling if it matches some attribute or measure of the insight / kpi.
|
|
@@ -1149,7 +1157,7 @@ export declare class ForecastNotReceivedSdkError extends GoodDataSdkError {
|
|
|
1149
1157
|
*
|
|
1150
1158
|
* @internal
|
|
1151
1159
|
*/
|
|
1152
|
-
export declare function forwardRefWithGenerics<T, P>(render: (props:
|
|
1160
|
+
export declare function forwardRefWithGenerics<T, P>(render: (props: PropsWithoutRef<P>, ref: Ref<T>) => ReactNode): (props: PropsWithoutRef<P> & RefAttributes<T>) => ReactNode;
|
|
1153
1161
|
|
|
1154
1162
|
/**
|
|
1155
1163
|
* This error means that location bucket is missing
|
|
@@ -1406,7 +1414,7 @@ export declare interface IBackendProviderProps {
|
|
|
1406
1414
|
/**
|
|
1407
1415
|
* React children
|
|
1408
1416
|
*/
|
|
1409
|
-
children?:
|
|
1417
|
+
children?: ReactNode;
|
|
1410
1418
|
}
|
|
1411
1419
|
|
|
1412
1420
|
/**
|
|
@@ -1426,7 +1434,7 @@ export declare interface IBackendProviderWithCorrelationProps {
|
|
|
1426
1434
|
/**
|
|
1427
1435
|
* React children
|
|
1428
1436
|
*/
|
|
1429
|
-
children?:
|
|
1437
|
+
children?: ReactNode;
|
|
1430
1438
|
}
|
|
1431
1439
|
|
|
1432
1440
|
/**
|
|
@@ -1464,7 +1472,7 @@ export declare interface IClientWorkspaceIdentifiers {
|
|
|
1464
1472
|
/**
|
|
1465
1473
|
* React children
|
|
1466
1474
|
*/
|
|
1467
|
-
children?:
|
|
1475
|
+
children?: ReactNode;
|
|
1468
1476
|
}
|
|
1469
1477
|
|
|
1470
1478
|
/**
|
|
@@ -1483,7 +1491,7 @@ export declare interface IClientWorkspaceProviderCoreProps {
|
|
|
1483
1491
|
/**
|
|
1484
1492
|
* Wrapped React components that will have access to the LCMWorkspace context.
|
|
1485
1493
|
*/
|
|
1486
|
-
children:
|
|
1494
|
+
children: ReactNode;
|
|
1487
1495
|
}
|
|
1488
1496
|
|
|
1489
1497
|
/**
|
|
@@ -1580,9 +1588,9 @@ export declare type IContextStore<T> = IContextStoreProvider<T> & {
|
|
|
1580
1588
|
/**
|
|
1581
1589
|
* @internal
|
|
1582
1590
|
*/
|
|
1583
|
-
export declare type IContextStoreProvider<T> =
|
|
1591
|
+
export declare type IContextStoreProvider<T> = FC<{
|
|
1584
1592
|
value: T;
|
|
1585
|
-
children:
|
|
1593
|
+
children: ReactNode;
|
|
1586
1594
|
}>;
|
|
1587
1595
|
|
|
1588
1596
|
/**
|
|
@@ -1602,7 +1610,7 @@ export declare interface ICorrelationProviderProps {
|
|
|
1602
1610
|
/**
|
|
1603
1611
|
* React children
|
|
1604
1612
|
*/
|
|
1605
|
-
children?:
|
|
1613
|
+
children?: ReactNode;
|
|
1606
1614
|
}
|
|
1607
1615
|
|
|
1608
1616
|
/**
|
|
@@ -2164,7 +2172,7 @@ export declare interface IExecuteInsightProps extends IWithLoadingEvents<IExecut
|
|
|
2164
2172
|
*
|
|
2165
2173
|
* @param executionResult - execution result, indicating state and/or results
|
|
2166
2174
|
*/
|
|
2167
|
-
children: (executionResult: WithLoadingResult) =>
|
|
2175
|
+
children: (executionResult: WithLoadingResult) => ReactElement | null;
|
|
2168
2176
|
/**
|
|
2169
2177
|
* Provide component for rendering of the loading state.
|
|
2170
2178
|
*
|
|
@@ -2292,7 +2300,7 @@ export declare interface IExecuteProps extends IWithLoadingEvents<IExecuteProps>
|
|
|
2292
2300
|
*
|
|
2293
2301
|
* @param executionResult - execution result, indicating state and/or results
|
|
2294
2302
|
*/
|
|
2295
|
-
children: (executionResult: WithLoadingResult) =>
|
|
2303
|
+
children: (executionResult: WithLoadingResult) => ReactElement | null;
|
|
2296
2304
|
/**
|
|
2297
2305
|
* Provide component for rendering of the loading state.
|
|
2298
2306
|
*
|
|
@@ -2508,7 +2516,7 @@ export declare interface IHighchartsParentTick {
|
|
|
2508
2516
|
*/
|
|
2509
2517
|
export declare interface IIntlWrapperProps {
|
|
2510
2518
|
locale?: string;
|
|
2511
|
-
children?:
|
|
2519
|
+
children?: ReactNode;
|
|
2512
2520
|
}
|
|
2513
2521
|
|
|
2514
2522
|
/**
|
|
@@ -2580,11 +2588,11 @@ export declare interface IKpiProps extends IWithLoadingEvents<IRawExecuteProps>
|
|
|
2580
2588
|
/**
|
|
2581
2589
|
* Specify react component to render while the data is loading.
|
|
2582
2590
|
*/
|
|
2583
|
-
LoadingComponent?:
|
|
2591
|
+
LoadingComponent?: ComponentType<ILoadingProps>;
|
|
2584
2592
|
/**
|
|
2585
2593
|
* Specify react component to render if execution fails.
|
|
2586
2594
|
*/
|
|
2587
|
-
ErrorComponent?:
|
|
2595
|
+
ErrorComponent?: ComponentType<IErrorProps>;
|
|
2588
2596
|
}
|
|
2589
2597
|
|
|
2590
2598
|
/**
|
|
@@ -2682,7 +2690,7 @@ declare function Intl_2({ children, customLocale, customMessages, forTest, }: {
|
|
|
2682
2690
|
customLocale?: ILocale;
|
|
2683
2691
|
customMessages?: ITranslations;
|
|
2684
2692
|
forTest?: boolean;
|
|
2685
|
-
}):
|
|
2693
|
+
}): JSX.Element;
|
|
2686
2694
|
export { Intl_2 as Intl }
|
|
2687
2695
|
|
|
2688
2696
|
/**
|
|
@@ -2695,7 +2703,7 @@ export declare const IntlTranslationsProvider: FC<WithIntlProps<ITranslationsPro
|
|
|
2695
2703
|
/**
|
|
2696
2704
|
* @internal
|
|
2697
2705
|
*/
|
|
2698
|
-
export declare function IntlWrapper({ locale, children }: IIntlWrapperProps):
|
|
2706
|
+
export declare function IntlWrapper({ locale, children }: IIntlWrapperProps): JSX.Element;
|
|
2699
2707
|
|
|
2700
2708
|
/**
|
|
2701
2709
|
* @internal
|
|
@@ -2718,7 +2726,7 @@ export declare interface IOrganizationProviderProps {
|
|
|
2718
2726
|
/**
|
|
2719
2727
|
* Children to render.
|
|
2720
2728
|
*/
|
|
2721
|
-
children?:
|
|
2729
|
+
children?: ReactNode;
|
|
2722
2730
|
}
|
|
2723
2731
|
|
|
2724
2732
|
/**
|
|
@@ -2785,7 +2793,7 @@ export declare interface IPlaceholderOptions<T> {
|
|
|
2785
2793
|
* @public
|
|
2786
2794
|
*/
|
|
2787
2795
|
export declare interface IPlaceholdersProviderProps {
|
|
2788
|
-
children:
|
|
2796
|
+
children: ReactNode;
|
|
2789
2797
|
initialValues?: [IPlaceholder<any>, any][];
|
|
2790
2798
|
}
|
|
2791
2799
|
|
|
@@ -2865,7 +2873,7 @@ export declare interface IRawExecuteProps extends IWithLoadingEvents<IRawExecute
|
|
|
2865
2873
|
*
|
|
2866
2874
|
* @param executionResult - execution result, indicating state and/or results
|
|
2867
2875
|
*/
|
|
2868
|
-
children: (executionResult: WithLoadingResult) =>
|
|
2876
|
+
children: (executionResult: WithLoadingResult) => ReactElement | null;
|
|
2869
2877
|
/**
|
|
2870
2878
|
* Provide component for rendering of the loading state.
|
|
2871
2879
|
*
|
|
@@ -4473,7 +4481,7 @@ export declare interface ITranslationsCustomizationContextProviderProps {
|
|
|
4473
4481
|
/**
|
|
4474
4482
|
* React children
|
|
4475
4483
|
*/
|
|
4476
|
-
children?:
|
|
4484
|
+
children?: ReactNode;
|
|
4477
4485
|
}
|
|
4478
4486
|
|
|
4479
4487
|
/**
|
|
@@ -4783,11 +4791,11 @@ export declare interface IVisualizationProps {
|
|
|
4783
4791
|
* React component to display in the event when there is an error with either obtaining the data from
|
|
4784
4792
|
* backend or with the data itself.
|
|
4785
4793
|
*/
|
|
4786
|
-
ErrorComponent?:
|
|
4794
|
+
ErrorComponent?: ComponentType<IErrorProps>;
|
|
4787
4795
|
/**
|
|
4788
4796
|
* React component to display while loading data from the backend.
|
|
4789
4797
|
*/
|
|
4790
|
-
LoadingComponent?:
|
|
4798
|
+
LoadingComponent?: ComponentType<ILoadingProps>;
|
|
4791
4799
|
}
|
|
4792
4800
|
|
|
4793
4801
|
/**
|
|
@@ -4972,7 +4980,7 @@ export declare interface IWorkspaceProviderProps {
|
|
|
4972
4980
|
/**
|
|
4973
4981
|
* React children
|
|
4974
4982
|
*/
|
|
4975
|
-
children?:
|
|
4983
|
+
children?: ReactNode;
|
|
4976
4984
|
}
|
|
4977
4985
|
|
|
4978
4986
|
/**
|
|
@@ -4987,7 +4995,7 @@ export declare interface IWorkspaceProviderProps {
|
|
|
4987
4995
|
*
|
|
4988
4996
|
* @public
|
|
4989
4997
|
*/
|
|
4990
|
-
export declare const Kpi:
|
|
4998
|
+
export declare const Kpi: ComponentType<IKpiProps>;
|
|
4991
4999
|
|
|
4992
5000
|
/**
|
|
4993
5001
|
* Component that renders a default loading indicator.
|
|
@@ -4997,7 +5005,7 @@ export declare const Kpi: React_2.ComponentType<IKpiProps>;
|
|
|
4997
5005
|
*
|
|
4998
5006
|
* @public
|
|
4999
5007
|
*/
|
|
5000
|
-
export declare function LoadingComponent({ className, color, speed, inline, height, width, imageHeight, imageWidth, }: ILoadingProps):
|
|
5008
|
+
export declare function LoadingComponent({ className, color, speed, inline, height, width, imageHeight, imageWidth, }: ILoadingProps): JSX.Element;
|
|
5001
5009
|
|
|
5002
5010
|
/**
|
|
5003
5011
|
* Array of locales for type-guard. It must be the same as {@link ILocale}
|
|
@@ -5189,7 +5197,7 @@ export declare type OnLoadingChanged = (loadingState: ILoadingState) => void;
|
|
|
5189
5197
|
*
|
|
5190
5198
|
* @public
|
|
5191
5199
|
*/
|
|
5192
|
-
export declare function OrganizationProvider({ organization, children }: IOrganizationProviderProps):
|
|
5200
|
+
export declare function OrganizationProvider({ organization, children }: IOrganizationProviderProps): JSX.Element;
|
|
5193
5201
|
|
|
5194
5202
|
/**
|
|
5195
5203
|
* @internal
|
|
@@ -5339,7 +5347,7 @@ export declare type PushDataCallback = (data: IPushData) => void;
|
|
|
5339
5347
|
*
|
|
5340
5348
|
* @public
|
|
5341
5349
|
*/
|
|
5342
|
-
export declare const RawExecute:
|
|
5350
|
+
export declare const RawExecute: ComponentType<IRawExecuteProps>;
|
|
5343
5351
|
|
|
5344
5352
|
/**
|
|
5345
5353
|
* The function to remove all translation keys that contain special suffixes "._measure" or "._metric"
|
|
@@ -5360,7 +5368,7 @@ export declare const removeAllWordingTranslationsWithSpecialSuffix: (translation
|
|
|
5360
5368
|
*
|
|
5361
5369
|
* @alpha
|
|
5362
5370
|
*/
|
|
5363
|
-
export declare function ResolvedClientWorkspaceProvider(props: IClientWorkspaceIdentifiers):
|
|
5371
|
+
export declare function ResolvedClientWorkspaceProvider(props: IClientWorkspaceIdentifiers): JSX.Element;
|
|
5364
5372
|
|
|
5365
5373
|
/**
|
|
5366
5374
|
* Resolves LCM workspace identifiers. This function will use the data product and client information
|
|
@@ -5484,7 +5492,7 @@ export declare type TotalsOrPlaceholders = ValuesOrPlaceholders<ITotal>;
|
|
|
5484
5492
|
/**
|
|
5485
5493
|
* @beta
|
|
5486
5494
|
*/
|
|
5487
|
-
export declare function TranslationsCustomizationContextProvider({ children, translationsCustomizationIsLoading, translations, }: ITranslationsCustomizationContextProviderProps):
|
|
5495
|
+
export declare function TranslationsCustomizationContextProvider({ children, translationsCustomizationIsLoading, translations, }: ITranslationsCustomizationContextProviderProps): JSX.Element;
|
|
5488
5496
|
|
|
5489
5497
|
/**
|
|
5490
5498
|
* This provider is here because of the need for customization of translations.
|
|
@@ -5498,7 +5506,7 @@ export declare function TranslationsCustomizationContextProvider({ children, tra
|
|
|
5498
5506
|
*
|
|
5499
5507
|
* @beta
|
|
5500
5508
|
*/
|
|
5501
|
-
export declare function TranslationsCustomizationProvider({ render, customize, translations: translationsParam, backend: backendParam, workspace: workspaceParam, }: ITranslationsCustomizationProviderProps):
|
|
5509
|
+
export declare function TranslationsCustomizationProvider({ render, customize, translations: translationsParam, backend: backendParam, workspace: workspaceParam, }: ITranslationsCustomizationProviderProps): JSX.Element;
|
|
5502
5510
|
|
|
5503
5511
|
/**
|
|
5504
5512
|
* @internal
|
|
@@ -5550,7 +5558,7 @@ export declare function uriMatch(uri: string): IHeaderPredicate;
|
|
|
5550
5558
|
*
|
|
5551
5559
|
* @internal
|
|
5552
5560
|
*/
|
|
5553
|
-
export declare const useAutoupdateRef: <T>(value: T) =>
|
|
5561
|
+
export declare const useAutoupdateRef: <T>(value: T) => RefObject<T>;
|
|
5554
5562
|
|
|
5555
5563
|
/**
|
|
5556
5564
|
* Hook to get analytical backend instance provided to {@link BackendProvider}.
|
|
@@ -5755,7 +5763,7 @@ export declare const useClientWorkspaceStatus: () => UseCancelablePromiseStatus;
|
|
|
5755
5763
|
/**
|
|
5756
5764
|
* @internal
|
|
5757
5765
|
*/
|
|
5758
|
-
export declare const useCombineRefs: <T>(...refs: Array<
|
|
5766
|
+
export declare const useCombineRefs: <T>(...refs: Array<MutableRefObject<T> | ((instance: T) => void) | undefined | null | false>) => (instance: T) => void;
|
|
5759
5767
|
|
|
5760
5768
|
/**
|
|
5761
5769
|
* React hook to obtain composed placeholder value.
|
|
@@ -5845,7 +5853,7 @@ T,
|
|
|
5845
5853
|
*
|
|
5846
5854
|
* @public
|
|
5847
5855
|
*/
|
|
5848
|
-
export declare function useExecutionDataView(config: IUseExecutionDataViewConfig & UseExecutionDataViewCallbacks, deps?:
|
|
5856
|
+
export declare function useExecutionDataView(config: IUseExecutionDataViewConfig & UseExecutionDataViewCallbacks, deps?: DependencyList): UseCancelablePromiseState<DataViewFacade, GoodDataSdkError>;
|
|
5849
5857
|
|
|
5850
5858
|
/**
|
|
5851
5859
|
* Callbacks for {@link useExecutionDataView} hook.
|
|
@@ -5859,7 +5867,7 @@ export declare type UseExecutionDataViewCallbacks = UseCancelablePromiseCallback
|
|
|
5859
5867
|
*
|
|
5860
5868
|
* @public
|
|
5861
5869
|
*/
|
|
5862
|
-
export declare function useInsightDataView(config: IUseInsightDataViewConfig & UseInsightDataViewCallbacks, deps?:
|
|
5870
|
+
export declare function useInsightDataView(config: IUseInsightDataViewConfig & UseInsightDataViewCallbacks, deps?: DependencyList): UseCancelablePromiseState<DataViewFacade, GoodDataSdkError>;
|
|
5863
5871
|
|
|
5864
5872
|
/**
|
|
5865
5873
|
* Callbacks for {@link useInsightDataView} hook.
|
|
@@ -5900,7 +5908,7 @@ export declare const useOrganization: () => string | undefined;
|
|
|
5900
5908
|
* Hook for getting data from paged resource
|
|
5901
5909
|
* @public
|
|
5902
5910
|
*/
|
|
5903
|
-
export declare function usePagedResource<TParams, TItem>(resourceFactory: (params: TParams) => Promise<IPagedResource<TItem>>, fetchParams: TParams[], fetchDeps:
|
|
5911
|
+
export declare function usePagedResource<TParams, TItem>(resourceFactory: (params: TParams) => Promise<IPagedResource<TItem>>, fetchParams: TParams[], fetchDeps: DependencyList, resetDeps: DependencyList, getCacheKey?: (params: TParams) => string, initialState?: IUsePagedResourceState<TItem>, preventResetPromises?: boolean): IUsePagedResourceResult<TItem>;
|
|
5904
5912
|
|
|
5905
5913
|
/**
|
|
5906
5914
|
* React hook to obtain/set placeholder value.
|
|
@@ -5940,7 +5948,7 @@ export declare const usePrevious: <T>(value: T) => T;
|
|
|
5940
5948
|
*
|
|
5941
5949
|
* @internal
|
|
5942
5950
|
*/
|
|
5943
|
-
export declare const usePropState: <T>(prop: T) => readonly [T,
|
|
5951
|
+
export declare const usePropState: <T>(prop: T) => readonly [T, Dispatch<SetStateAction<T>>];
|
|
5944
5952
|
|
|
5945
5953
|
/**
|
|
5946
5954
|
* React hook that resolves multiple value(s) that can possibly contain also placeholder(s) to actual value(s).
|
|
@@ -6110,7 +6118,7 @@ export declare const VisualizationTypes: {
|
|
|
6110
6118
|
*/
|
|
6111
6119
|
export declare function withBackend<T extends {
|
|
6112
6120
|
backend?: IAnalyticalBackend;
|
|
6113
|
-
}>(Component:
|
|
6121
|
+
}>(Component: ComponentType<T>): ComponentType<T>;
|
|
6114
6122
|
|
|
6115
6123
|
/**
|
|
6116
6124
|
* Injects backend and workspace provided by BackendProvider & WorkspaceProvider to a component
|
|
@@ -6119,7 +6127,7 @@ export declare function withBackend<T extends {
|
|
|
6119
6127
|
export declare function withContexts<T extends {
|
|
6120
6128
|
backend?: IAnalyticalBackend;
|
|
6121
6129
|
workspace?: string;
|
|
6122
|
-
}>(Chart:
|
|
6130
|
+
}>(Chart: ComponentType<T>): ComponentType<T>;
|
|
6123
6131
|
|
|
6124
6132
|
/**
|
|
6125
6133
|
* A HOC to wrap data visualization components with loading / error handling.
|
|
@@ -6131,7 +6139,7 @@ export declare function withContexts<T extends {
|
|
|
6131
6139
|
* @param InnerComponent - component to wrap
|
|
6132
6140
|
* @internal
|
|
6133
6141
|
*/
|
|
6134
|
-
export declare function withEntireDataView<T extends IDataVisualizationProps>(InnerComponent:
|
|
6142
|
+
export declare function withEntireDataView<T extends IDataVisualizationProps>(InnerComponent: ComponentType<T & ILoadingInjectedProps>): ComponentType<T>;
|
|
6135
6143
|
|
|
6136
6144
|
/**
|
|
6137
6145
|
* A React HOC that for driving an execution to get data view that can be visualized.
|
|
@@ -6140,7 +6148,7 @@ export declare function withEntireDataView<T extends IDataVisualizationProps>(In
|
|
|
6140
6148
|
*
|
|
6141
6149
|
* @internal
|
|
6142
6150
|
*/
|
|
6143
|
-
export declare function withExecution<T>(params: IWithExecution<T>): (WrappedComponent:
|
|
6151
|
+
export declare function withExecution<T>(params: IWithExecution<T>): (WrappedComponent: ComponentType<T & WithLoadingResult>) => ComponentType<T>;
|
|
6144
6152
|
|
|
6145
6153
|
/**
|
|
6146
6154
|
* A React HOC responsible for orchestrating resolution of a data promise (e.g. data to load).
|
|
@@ -6150,17 +6158,17 @@ export declare function withExecution<T>(params: IWithExecution<T>): (WrappedCom
|
|
|
6150
6158
|
*
|
|
6151
6159
|
* @internal
|
|
6152
6160
|
*/
|
|
6153
|
-
export declare function withExecutionLoading<TProps>(params: IWithExecutionLoading<TProps>): (WrappedComponent:
|
|
6161
|
+
export declare function withExecutionLoading<TProps>(params: IWithExecutionLoading<TProps>): (WrappedComponent: ComponentType<TProps & WithLoadingResult>) => ComponentType<TProps>;
|
|
6154
6162
|
|
|
6155
6163
|
/**
|
|
6156
6164
|
* @internal
|
|
6157
6165
|
*/
|
|
6158
|
-
export declare function withIntl<P>(WrappedComponent:
|
|
6166
|
+
export declare function withIntl<P>(WrappedComponent: FC<P> | ComponentClass<P>, customLocale?: ILocale, customMessages?: ITranslations): ComponentType<P>;
|
|
6159
6167
|
|
|
6160
6168
|
/**
|
|
6161
6169
|
* @internal
|
|
6162
6170
|
*/
|
|
6163
|
-
export declare function withIntlForTest<P>(WrappedComponent:
|
|
6171
|
+
export declare function withIntlForTest<P>(WrappedComponent: FC<P> | ComponentClass<P>, customLocale?: ILocale, customMessages?: ITranslations): ComponentType<P>;
|
|
6164
6172
|
|
|
6165
6173
|
/**
|
|
6166
6174
|
* @public
|
|
@@ -6189,7 +6197,7 @@ export declare type WithLoadingResult = {
|
|
|
6189
6197
|
/**
|
|
6190
6198
|
* @beta
|
|
6191
6199
|
*/
|
|
6192
|
-
export declare function withTranslationsCustomization<T>(Component:
|
|
6200
|
+
export declare function withTranslationsCustomization<T>(Component: ComponentType<T>): ComponentType<Omit<T, "translationsCustomizationIsLoading" | "translations">>;
|
|
6193
6201
|
|
|
6194
6202
|
/**
|
|
6195
6203
|
* Wraps component into a WorkspaceContext consumer - injecting an instance of workspace from context into the
|
|
@@ -6199,20 +6207,20 @@ export declare function withTranslationsCustomization<T>(Component: React_2.Comp
|
|
|
6199
6207
|
*/
|
|
6200
6208
|
export declare function withWorkspace<T extends {
|
|
6201
6209
|
workspace?: string;
|
|
6202
|
-
}>(Component:
|
|
6210
|
+
}>(Component: ComponentType<T>): ComponentType<T>;
|
|
6203
6211
|
|
|
6204
6212
|
/**
|
|
6205
6213
|
* WorkspaceProvider can be used to inject analytical workspace instance to all ui-sdk components in your app.
|
|
6206
6214
|
*
|
|
6207
6215
|
* @public
|
|
6208
6216
|
*/
|
|
6209
|
-
export declare function WorkspaceProvider({ children, workspace }: IWorkspaceProviderProps):
|
|
6217
|
+
export declare function WorkspaceProvider({ children, workspace }: IWorkspaceProviderProps): JSX.Element;
|
|
6210
6218
|
|
|
6211
6219
|
/**
|
|
6212
6220
|
* Wrap displayName of React component
|
|
6213
6221
|
* @internal
|
|
6214
6222
|
*/
|
|
6215
|
-
export declare const wrapDisplayName: (hocName: string, BaseComponent?:
|
|
6223
|
+
export declare const wrapDisplayName: (hocName: string, BaseComponent?: ComponentType<any>) => (<T>(Component: ComponentType<T>) => ComponentType<T>);
|
|
6216
6224
|
|
|
6217
6225
|
/**
|
|
6218
6226
|
* @public
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui",
|
|
3
|
-
"version": "10.44.0-alpha.
|
|
3
|
+
"version": "10.44.0-alpha.4",
|
|
4
4
|
"description": "GoodData.UI SDK - Core",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"ts-invariant": "^0.7.5",
|
|
45
45
|
"tslib": "2.8.1",
|
|
46
46
|
"uuid": "^11.1.0",
|
|
47
|
-
"@gooddata/sdk-backend-spi": "10.44.0-alpha.
|
|
48
|
-
"@gooddata/
|
|
49
|
-
"@gooddata/
|
|
47
|
+
"@gooddata/sdk-backend-spi": "10.44.0-alpha.4",
|
|
48
|
+
"@gooddata/sdk-model": "10.44.0-alpha.4",
|
|
49
|
+
"@gooddata/util": "10.44.0-alpha.4"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@gooddata/eslint-config": "^4.1.1",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"@types/lodash": "^4.14.202",
|
|
60
60
|
"@types/node": "^22.13.0",
|
|
61
61
|
"@types/raf": "^3.4.0",
|
|
62
|
-
"@types/react": "
|
|
63
|
-
"@types/react-dom": "
|
|
62
|
+
"@types/react": "19.1.11",
|
|
63
|
+
"@types/react-dom": "19.1.7",
|
|
64
64
|
"@typescript-eslint/eslint-plugin": "^8.38.0",
|
|
65
65
|
"@typescript-eslint/parser": "^8.38.0",
|
|
66
66
|
"concurrently": "^6.0.2",
|
|
@@ -83,8 +83,8 @@
|
|
|
83
83
|
"happy-dom": "18.0.1",
|
|
84
84
|
"prettier": "^3.6.2",
|
|
85
85
|
"raf": "^3.4.1",
|
|
86
|
-
"react": "
|
|
87
|
-
"react-dom": "
|
|
86
|
+
"react": "19.1.1",
|
|
87
|
+
"react-dom": "19.1.1",
|
|
88
88
|
"stylelint": "^13.8.0",
|
|
89
89
|
"stylelint-checkstyle-formatter": "^0.1.2",
|
|
90
90
|
"stylelint-config-prettier": "^9.0.5",
|
|
@@ -92,14 +92,14 @@
|
|
|
92
92
|
"typescript": "5.8.3",
|
|
93
93
|
"vitest": "3.2.4",
|
|
94
94
|
"vitest-dom": "0.1.1",
|
|
95
|
-
"@gooddata/
|
|
96
|
-
"@gooddata/
|
|
97
|
-
"@gooddata/sdk-backend-base": "10.44.0-alpha.
|
|
98
|
-
"@gooddata/sdk-backend-mockingbird": "10.44.0-alpha.
|
|
95
|
+
"@gooddata/i18n-toolkit": "10.44.0-alpha.4",
|
|
96
|
+
"@gooddata/reference-workspace": "10.44.0-alpha.4",
|
|
97
|
+
"@gooddata/sdk-backend-base": "10.44.0-alpha.4",
|
|
98
|
+
"@gooddata/sdk-backend-mockingbird": "10.44.0-alpha.4"
|
|
99
99
|
},
|
|
100
100
|
"peerDependencies": {
|
|
101
|
-
"react": "^
|
|
102
|
-
"react-dom": "^
|
|
101
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
102
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
103
103
|
},
|
|
104
104
|
"scripts": {
|
|
105
105
|
"_phase:build": "npm run build",
|