@gooddata/sdk-ui 10.40.0-alpha.5 → 10.40.0-alpha.6
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/TranslationsProvider.d.ts +3 -6
- package/esm/base/localization/TranslationsProvider.d.ts.map +1 -1
- package/esm/base/localization/TranslationsProvider.js +10 -12
- package/esm/base/localization/TranslationsProvider.js.map +1 -1
- package/esm/base/localization/intlUtils.d.ts.map +1 -1
- package/esm/base/localization/intlUtils.js +15 -23
- package/esm/base/localization/intlUtils.js.map +1 -1
- package/esm/base/react/ErrorComponent.d.ts +1 -4
- package/esm/base/react/ErrorComponent.d.ts.map +1 -1
- package/esm/base/react/ErrorComponent.js +41 -49
- package/esm/base/react/ErrorComponent.js.map +1 -1
- package/esm/base/react/LoadingComponent.d.ts +1 -4
- package/esm/base/react/LoadingComponent.d.ts.map +1 -1
- package/esm/base/react/LoadingComponent.js +57 -70
- package/esm/base/react/LoadingComponent.js.map +1 -1
- package/esm/execution/RawExecute.d.ts +1 -1
- package/esm/execution/RawExecute.d.ts.map +1 -1
- package/esm/execution/withExecution.d.ts +1 -1
- package/esm/execution/withExecution.d.ts.map +1 -1
- package/esm/sdk-ui.d.ts +9 -15
- package/package.json +9 -10
@@ -1,4 +1,3 @@
|
|
1
|
-
import React from "react";
|
2
1
|
import { WrappedComponentProps, IntlShape } from "react-intl";
|
3
2
|
/**
|
4
3
|
* @internal
|
@@ -21,13 +20,11 @@ export type ITranslationsProviderProps = ITranslationsProviderOwnProps & Wrapped
|
|
21
20
|
/**
|
22
21
|
* @internal
|
23
22
|
*/
|
24
|
-
export declare
|
25
|
-
render(): any;
|
26
|
-
}
|
23
|
+
export declare const TranslationsProvider: import("react").NamedExoticComponent<ITranslationsProviderProps>;
|
27
24
|
/**
|
28
25
|
* @internal
|
29
26
|
*/
|
30
|
-
export declare const IntlTranslationsProvider:
|
31
|
-
WrappedComponent:
|
27
|
+
export declare const IntlTranslationsProvider: import("react").FC<import("react-intl").WithIntlProps<ITranslationsProviderProps>> & {
|
28
|
+
WrappedComponent: import("react").ComponentType<ITranslationsProviderProps>;
|
32
29
|
};
|
33
30
|
//# sourceMappingURL=TranslationsProvider.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TranslationsProvider.d.ts","sourceRoot":"","sources":["../../../src/base/localization/TranslationsProvider.
|
1
|
+
{"version":3,"file":"TranslationsProvider.d.ts","sourceRoot":"","sources":["../../../src/base/localization/TranslationsProvider.ts"],"names":[],"mappings":"AAEA,OAAO,EAAc,qBAAqB,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAI1E;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC1C,QAAQ,EAAE,GAAG,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IACxC,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,IAAI,EAAE,SAAS,CAAC;CACnB;AAQD;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,6BAA6B,GAAG,qBAAqB,CAAC;AAE/F;;GAEG;AACH,eAAO,MAAM,oBAAoB,kEAO/B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,wBAAwB;;CAAuE,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
// (C) 2007-
|
2
|
-
import
|
1
|
+
// (C) 2007-2025 GoodData Corporation
|
2
|
+
import { memo } from "react";
|
3
3
|
import { injectIntl } from "react-intl";
|
4
4
|
import { messages } from "../../locales.js";
|
5
5
|
import { emptyHeaderTitleFromIntl } from "./intlUtils.js";
|
@@ -9,16 +9,14 @@ const getNumericSymbols = (intl) => {
|
|
9
9
|
/**
|
10
10
|
* @internal
|
11
11
|
*/
|
12
|
-
export
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
}
|
21
|
-
}
|
12
|
+
export const TranslationsProvider = memo(function TranslationsProvider(props) {
|
13
|
+
const translationProps = {
|
14
|
+
numericSymbols: getNumericSymbols(props.intl),
|
15
|
+
emptyHeaderString: emptyHeaderTitleFromIntl(props.intl),
|
16
|
+
intl: props.intl,
|
17
|
+
};
|
18
|
+
return props.children(translationProps);
|
19
|
+
});
|
22
20
|
/**
|
23
21
|
* @internal
|
24
22
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TranslationsProvider.js","sourceRoot":"","sources":["../../../src/base/localization/TranslationsProvider.
|
1
|
+
{"version":3,"file":"TranslationsProvider.js","sourceRoot":"","sources":["../../../src/base/localization/TranslationsProvider.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAoC,MAAM,YAAY,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAkB1D,MAAM,iBAAiB,GAAG,CAAC,IAAe,EAAY,EAAE;IACpD,OAAO,CAAC,QAAQ,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CACzF,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAC3B,CAAC;AACN,CAAC,CAAC;AAOF;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAC,SAAS,oBAAoB,CAAC,KAAiC;IACpG,MAAM,gBAAgB,GAAgC;QAClD,cAAc,EAAE,iBAAiB,CAAC,KAAK,CAAC,IAAI,CAAC;QAC7C,iBAAiB,EAAE,wBAAwB,CAAC,KAAK,CAAC,IAAI,CAAC;QACvD,IAAI,EAAE,KAAK,CAAC,IAAI;KACnB,CAAC;IACF,OAAO,KAAK,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;AAC5C,CAAC,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,UAAU,CAAqC,oBAAoB,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"intlUtils.d.ts","sourceRoot":"","sources":["../../../src/base/localization/intlUtils.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAA4B,SAAS,EAAE,MAAM,YAAY,CAAC;AACjE,OAAO,EAAE,aAAa,EAAe,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAiB,OAAO,EAAY,MAAM,aAAa,CAAC;AAI/D;;GAEG;AACH,wBAAgB,cAAc,CAAC,cAAc,KAAK,EAAE,MAAM,SAAU,GAAG,SAAS,CAe/E;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAC7B,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EACvD,YAAY,CAAC,EAAE,OAAO,EACtB,cAAc,CAAC,EAAE,aAAa,GAC/B,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,
|
1
|
+
{"version":3,"file":"intlUtils.d.ts","sourceRoot":"","sources":["../../../src/base/localization/intlUtils.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAA4B,SAAS,EAAE,MAAM,YAAY,CAAC;AACjE,OAAO,EAAE,aAAa,EAAe,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAiB,OAAO,EAAY,MAAM,aAAa,CAAC;AAI/D;;GAEG;AACH,wBAAgB,cAAc,CAAC,cAAc,KAAK,EAAE,MAAM,SAAU,GAAG,S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}
|
@@ -27,20 +27,16 @@ export function createIntlMock(customMessages = {}, locale = "en-US") {
|
|
27
27
|
* @internal
|
28
28
|
*/
|
29
29
|
export function withIntlForTest(WrappedComponent, customLocale, customMessages) {
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
}
|
41
|
-
} },
|
42
|
-
React.createElement(WrappedComponent, { ...this.props })));
|
43
|
-
}
|
30
|
+
function WithIntl(props) {
|
31
|
+
const locale = customLocale ? customLocale : DefaultLocale;
|
32
|
+
const messages = customMessages ? customMessages : resolveLocaleDefaultMessages(locale, messagesMap);
|
33
|
+
return (React.createElement(IntlProvider, { locale: locale, messages: messages, onError: (error) => {
|
34
|
+
// Suppress MISSING_TRANSLATION errors to improve test performance
|
35
|
+
if (!error.message?.includes("MISSING_TRANSLATION")) {
|
36
|
+
console.warn("IntlProviderForTest error:", error);
|
37
|
+
}
|
38
|
+
} },
|
39
|
+
React.createElement(WrappedComponent, { ...props })));
|
44
40
|
}
|
45
41
|
return wrapDisplayName("withIntl", WrappedComponent)(WithIntl);
|
46
42
|
}
|
@@ -48,15 +44,11 @@ export function withIntlForTest(WrappedComponent, customLocale, customMessages)
|
|
48
44
|
* @internal
|
49
45
|
*/
|
50
46
|
export function withIntl(WrappedComponent, customLocale, customMessages) {
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
: resolveLocaleDefaultMessages(locale, messagesMap);
|
57
|
-
return (React.createElement(IntlProvider, { locale: locale, messages: messages },
|
58
|
-
React.createElement(WrappedComponent, { ...this.props })));
|
59
|
-
}
|
47
|
+
function WithIntl(props) {
|
48
|
+
const locale = customLocale ? customLocale : DefaultLocale;
|
49
|
+
const messages = customMessages ? customMessages : resolveLocaleDefaultMessages(locale, messagesMap);
|
50
|
+
return (React.createElement(IntlProvider, { locale: locale, messages: messages },
|
51
|
+
React.createElement(WrappedComponent, { ...props })));
|
60
52
|
}
|
61
53
|
return wrapDisplayName("withIntl", WrappedComponent)(WithIntl);
|
62
54
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"intlUtils.js","sourceRoot":"","sources":["../../../src/base/localization/intlUtils.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAa,MAAM,YAAY,CAAC;AACjE,OAAO,EAAiB,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAW,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAG9D;;GAEG;AACH,MAAM,UAAU,cAAc,CAAC,cAAc,GAAG,EAAE,EAAE,MAAM,GAAG,OAAO;IAChE,OAAO,UAAU,CAAC;QACd,MAAM;QACN,QAAQ,EAAE;YACN,GAAG,4BAA4B,CAAC,MAAM,EAAE,WAAW,CAAC;YACpD,GAAG,cAAc;SACpB;QACD,2DAA2D;QAC3D,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;YACf,0CAA0C;YAC1C,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,QAAQ,CAAC,qBAAqB,CAAC,EAAE,CAAC;gBAClD,yCAAyC;YAC7C,CAAC;QACL,CAAC;KACJ,CAAC,CAAC;AACP,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,eAAe,CAC3B,gBAAuD,EACvD,YAAsB,EACtB,cAA8B;IAE9B,
|
1
|
+
{"version":3,"file":"intlUtils.js","sourceRoot":"","sources":["../../../src/base/localization/intlUtils.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAa,MAAM,YAAY,CAAC;AACjE,OAAO,EAAiB,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC9D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AAC;IAED,OAAO,oBAAC,YAAY,OAAK,KAAK,IAAG,QAAQ,CAAgB,CAAC;AAC9D,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,MAAe,EAAW,EAAE;IACtD,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC;AACrD,CAAC,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CACxC,MAAc,EACd,WAAgD,EAClD,EAAE;IACA,MAAM,OAAO,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;IACpC,IAAI,CAAC,OAAO,EAAE,CAAC;QACX,OAAO,CAAC,IAAI,CAAC,8BAA8B,MAAM,WAAW,aAAa,EAAE,CAAC,CAAC;QAC7E,OAAO,WAAW,CAAC,aAAa,CAAC,CAAC;IACtC,CAAC;IAED,OAAO,OAAO,CAAC;AACnB,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,UAAU,wBAAwB,CAAC,IAAe;IACpD,OAAO,IAAI,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,0BAA0B,EAAE,CAAC,GAAG,CAAC;AACzE,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,wBAAwB,CAAC,IAAe;IACpD,OAAO,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,+BAA+B,EAAE,CAAC,CAAC;AACvE,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAe;IAChD,OAAO,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,uBAAuB,EAAE,CAAC,CAAC;AAC/D,CAAC"}
|
@@ -28,8 +28,5 @@ export interface IErrorProps {
|
|
28
28
|
*
|
29
29
|
* @public
|
30
30
|
*/
|
31
|
-
export declare
|
32
|
-
static defaultProps: Partial<IErrorProps>;
|
33
|
-
render(): React.JSX.Element;
|
34
|
-
}
|
31
|
+
export declare function ErrorComponent({ icon, className, width, height, style, message, description, clientHeight, }: IErrorProps): React.JSX.Element;
|
35
32
|
//# sourceMappingURL=ErrorComponent.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ErrorComponent.d.ts","sourceRoot":"","sources":["../../../src/base/react/ErrorComponent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AA6B1B;;;GAGG;AACH,MAAM,WAAW,WAAW;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ;;OAEG;IACH,MAAM,CAAC,EAAE,GAAG,CAAC;IACb;;OAEG;IACH,YAAY,CAAC,EAAE,GAAG,CAAC;CACtB;AAED;;;;;;;GAOG;AACH,
|
1
|
+
{"version":3,"file":"ErrorComponent.d.ts","sourceRoot":"","sources":["../../../src/base/react/ErrorComponent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AA6B1B;;;GAGG;AACH,MAAM,WAAW,WAAW;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ;;OAEG;IACH,MAAM,CAAC,EAAE,GAAG,CAAC;IACb;;OAEG;IACH,YAAY,CAAC,EAAE,GAAG,CAAC;CACtB;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,EAC3B,IAAwB,EACxB,SAA2B,EAC3B,KAAiB,EACjB,MAAe,EACf,KAAK,EACL,OAAO,EACP,WAAW,EACX,YAAY,GACf,EAAE,WAAW,qBAmEb"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
// (C) 2007-
|
1
|
+
// (C) 2007-2025 GoodData Corporation
|
2
2
|
import React from "react";
|
3
3
|
/**
|
4
4
|
* With custom size layouting enable it needs to be aware of the widget size to update
|
@@ -33,56 +33,48 @@ const getCustomHeight = (clientHeight) => {
|
|
33
33
|
*
|
34
34
|
* @public
|
35
35
|
*/
|
36
|
-
export
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
justifyContent: "center",
|
48
|
-
whiteSpace: "normal",
|
49
|
-
lineHeight: "normal",
|
50
|
-
fontFamily: "gdcustomfont, avenir, Helvetica Neue, arial, sans-serif",
|
51
|
-
},
|
36
|
+
export function ErrorComponent({ icon = "gd-icon-warning", className = "Error s-error", width = undefined, height = "100%", style, message, description, clientHeight, }) {
|
37
|
+
const customHeight = getCustomHeight(clientHeight);
|
38
|
+
const defaultStyle = {
|
39
|
+
display: "flex",
|
40
|
+
flex: "1 0 auto",
|
41
|
+
flexDirection: "column",
|
42
|
+
alignItems: "center",
|
43
|
+
justifyContent: "center",
|
44
|
+
whiteSpace: "normal",
|
45
|
+
lineHeight: "normal",
|
46
|
+
fontFamily: "gdcustomfont, avenir, Helvetica Neue, arial, sans-serif",
|
52
47
|
};
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
48
|
+
const wrapperStyle = {
|
49
|
+
...defaultStyle,
|
50
|
+
...style,
|
51
|
+
width,
|
52
|
+
height,
|
53
|
+
};
|
54
|
+
return (React.createElement("div", { className: className, style: wrapperStyle },
|
55
|
+
React.createElement("div", { className: "info-label", style: {
|
56
|
+
fontSize: "14px",
|
57
|
+
fontWeight: 400,
|
58
|
+
lineHeight: "normal",
|
59
|
+
color: "var(--gd-palette-complementary-6, #94a1ad)",
|
60
|
+
textAlign: "center",
|
61
|
+
height: customHeight,
|
62
|
+
width: "100%",
|
63
|
+
overflow: "hidden",
|
64
|
+
} },
|
65
|
+
icon ? (React.createElement("div", { className: `info-label-icon ${icon}`, style: clientHeight && clientHeight < LARGEST_CLIENT_HEIGHT
|
66
|
+
? undefined
|
67
|
+
: { fontSize: "40px" } })) : null,
|
68
|
+
React.createElement("div", { style: {
|
64
69
|
fontWeight: 400,
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
+
fontSize: clientHeight && clientHeight < MEDIUM_CLIENT_HEIGHT ? undefined : "20px",
|
71
|
+
textTransform: "uppercase",
|
72
|
+
} }, message),
|
73
|
+
React.createElement("div", { style: {
|
74
|
+
margin: "3px 0",
|
75
|
+
textOverflow: "ellipsis",
|
70
76
|
overflow: "hidden",
|
71
|
-
|
72
|
-
|
73
|
-
? undefined
|
74
|
-
: { fontSize: "40px" } })) : null,
|
75
|
-
React.createElement("div", { style: {
|
76
|
-
fontWeight: 400,
|
77
|
-
fontSize: clientHeight && clientHeight < MEDIUM_CLIENT_HEIGHT ? undefined : "20px",
|
78
|
-
textTransform: "uppercase",
|
79
|
-
} }, message),
|
80
|
-
React.createElement("div", { style: {
|
81
|
-
margin: "3px 0",
|
82
|
-
textOverflow: "ellipsis",
|
83
|
-
overflow: "hidden",
|
84
|
-
whiteSpace: clientHeight && clientHeight < LARGE_CLIENT_HEIGHT ? "nowrap" : undefined,
|
85
|
-
} }, description))));
|
86
|
-
}
|
77
|
+
whiteSpace: clientHeight && clientHeight < LARGE_CLIENT_HEIGHT ? "nowrap" : undefined,
|
78
|
+
} }, description))));
|
87
79
|
}
|
88
80
|
//# sourceMappingURL=ErrorComponent.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ErrorComponent.js","sourceRoot":"","sources":["../../../src/base/react/ErrorComponent.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;;GAGG;AACH,MAAM,mBAAmB,GAAG,GAAG,CAAC;AAChC,MAAM,oBAAoB,GAAG,GAAG,CAAC;AACjC,MAAM,oBAAoB,GAAG,GAAG,CAAC;AACjC,MAAM,mBAAmB,GAAG,GAAG,CAAC;AAChC,MAAM,qBAAqB,GAAG,GAAG,CAAC;AAElC,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAC/B,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAEhC,MAAM,eAAe,GAAG,CAAC,YAAqB,EAAE,EAAE;IAC9C,IAAI,YAAY,EAAE,CAAC;QACf,IAAI,YAAY,IAAI,mBAAmB,EAAE,CAAC;YACtC,OAAO,mBAAmB,CAAC;QAC/B,CAAC;aAAM,IAAI,YAAY,GAAG,oBAAoB,EAAE,CAAC;YAC7C,OAAO,oBAAoB,CAAC;QAChC,CAAC;aAAM,CAAC;YACJ,OAAO,SAAS,CAAC;QACrB,CAAC;IACL,CAAC;IAED,OAAO,SAAS,CAAC;AACrB,CAAC,CAAC;AAwBF;;;;;;;GAOG;AACH,MAAM,
|
1
|
+
{"version":3,"file":"ErrorComponent.js","sourceRoot":"","sources":["../../../src/base/react/ErrorComponent.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;;GAGG;AACH,MAAM,mBAAmB,GAAG,GAAG,CAAC;AAChC,MAAM,oBAAoB,GAAG,GAAG,CAAC;AACjC,MAAM,oBAAoB,GAAG,GAAG,CAAC;AACjC,MAAM,mBAAmB,GAAG,GAAG,CAAC;AAChC,MAAM,qBAAqB,GAAG,GAAG,CAAC;AAElC,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAC/B,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAEhC,MAAM,eAAe,GAAG,CAAC,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AAI,CAAC,CAAC,CAAC,CACJ,6BACI,SAAS,EAAE,mBAAmB,IAAI,EAAE,EACpC,KAAK,EACD,YAAY,IAAI,YAAY,GAAG,qBAAqB;oBAChD,CAAC,CAAC,SAAS;oBACX,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,GAEhC,CACL,CAAC,CAAC,CAAC,IAAI;YAER,6BACI,KAAK,EAAE;oBACH,UAAU,EAAE,GAAG;oBACf,QAAQ,EAAE,YAAY,IAAI,YAAY,GAAG,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM;oBAClF,aAAa,EAAE,WAAW;iBAC7B,IAEA,OAAO,CACN;YACN,6BACI,KAAK,EAAE;oBACH,MAAM,EAAE,OAAO;oBACf,YAAY,EAAE,UAAU;oBACxB,QAAQ,EAAE,QAAQ;oBAClB,UAAU,EAAE,YAAY,IAAI,YAAY,GAAG,mBAAmB,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS;iBACxF,IAEA,WAAW,CACV,CACJ,CACJ,CACT,CAAC;AACN,CAAC"}
|
@@ -21,8 +21,5 @@ export interface ILoadingProps {
|
|
21
21
|
*
|
22
22
|
* @public
|
23
23
|
*/
|
24
|
-
export declare
|
25
|
-
static defaultProps: Partial<ILoadingProps>;
|
26
|
-
render(): React.JSX.Element;
|
27
|
-
}
|
24
|
+
export declare function LoadingComponent({ className, color, speed, inline, height, width, imageHeight, imageWidth, }: ILoadingProps): React.JSX.Element;
|
28
25
|
//# sourceMappingURL=LoadingComponent.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LoadingComponent.d.ts","sourceRoot":"","sources":["../../../src/base/react/LoadingComponent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAE7C;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,UAAU,CAAC,EAAE,GAAG,CAAC;CACpB;AAID;;;;;;;GAOG;AACH,
|
1
|
+
{"version":3,"file":"LoadingComponent.d.ts","sourceRoot":"","sources":["../../../src/base/react/LoadingComponent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAE7C;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,UAAU,CAAC,EAAE,GAAG,CAAC;CACpB;AAID;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,EAC7B,SAAuB,EACvB,KAAoD,EACpD,KAAS,EACT,MAAc,EACd,MAAe,EACf,KAAiB,EACjB,WAAe,EACf,UAAsB,GACzB,EAAE,aAAa,qBAoEf"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
// (C) 2007-
|
1
|
+
// (C) 2007-2025 GoodData Corporation
|
2
2
|
import React from "react";
|
3
3
|
const baseAnimationDuration = 1.4;
|
4
4
|
/**
|
@@ -9,76 +9,63 @@ const baseAnimationDuration = 1.4;
|
|
9
9
|
*
|
10
10
|
* @public
|
11
11
|
*/
|
12
|
-
export
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
imageHeight: 8,
|
21
|
-
imageWidth: undefined,
|
12
|
+
export function LoadingComponent({ className = "s-loading", color = "var(--gd-palette-complementary-6, #94a1ad)", speed = 1, inline = false, height = "100%", width = undefined, imageHeight = 8, imageWidth = undefined, }) {
|
13
|
+
const duration = baseAnimationDuration / speed;
|
14
|
+
const delay = duration / -5;
|
15
|
+
const dotStyles = {
|
16
|
+
transformOrigin: "4px 4px",
|
17
|
+
animation: `GDC-pop ${duration}s infinite`,
|
18
|
+
animationDelay: `${delay * 2}s`,
|
19
|
+
fill: color,
|
22
20
|
};
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
React.createElement("svg", { style: svgStyles, version: "1.1", x: "0px", y: "0px", viewBox: "0 0 36 8" },
|
64
|
-
React.createElement("style", null, `
|
65
|
-
@keyframes GDC-pop {
|
66
|
-
0%,
|
67
|
-
80%,
|
68
|
-
100% {
|
69
|
-
transform: scale(0);
|
70
|
-
}
|
71
|
-
40% {
|
72
|
-
transform: scale(1);
|
73
|
-
}
|
21
|
+
const wrapperStyles = {
|
22
|
+
textAlign: "center",
|
23
|
+
display: inline ? "inline-flex" : "flex",
|
24
|
+
verticalAlign: "middle",
|
25
|
+
flexDirection: "column",
|
26
|
+
alignContent: "center",
|
27
|
+
justifyContent: "center",
|
28
|
+
flex: "1 0 auto",
|
29
|
+
height,
|
30
|
+
width,
|
31
|
+
};
|
32
|
+
const svgStyles = {
|
33
|
+
maxHeight: "100%",
|
34
|
+
maxWidth: "100%",
|
35
|
+
flex: "0 1 auto",
|
36
|
+
width: imageWidth,
|
37
|
+
height: imageHeight,
|
38
|
+
};
|
39
|
+
const dot1Styles = dotStyles;
|
40
|
+
const dot2Styles = {
|
41
|
+
...dotStyles,
|
42
|
+
transformOrigin: "18px 4px",
|
43
|
+
animationDelay: `${delay}s`,
|
44
|
+
};
|
45
|
+
const dot3Styles = {
|
46
|
+
...dotStyles,
|
47
|
+
transformOrigin: "32px 4px",
|
48
|
+
animationDelay: "0",
|
49
|
+
};
|
50
|
+
return (React.createElement("div", { className: className, style: wrapperStyles },
|
51
|
+
React.createElement("svg", { style: svgStyles, version: "1.1", x: "0px", y: "0px", viewBox: "0 0 36 8" },
|
52
|
+
React.createElement("style", null, `
|
53
|
+
@keyframes GDC-pop {
|
54
|
+
0%,
|
55
|
+
80%,
|
56
|
+
100% {
|
57
|
+
transform: scale(0);
|
58
|
+
}
|
59
|
+
40% {
|
60
|
+
transform: scale(1);
|
74
61
|
}
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
React.createElement("
|
79
|
-
|
80
|
-
React.createElement("
|
81
|
-
|
82
|
-
|
62
|
+
}
|
63
|
+
`),
|
64
|
+
React.createElement("g", { style: dot1Styles },
|
65
|
+
React.createElement("circle", { cx: "4", cy: "4", r: "4" })),
|
66
|
+
React.createElement("g", { style: dot2Styles },
|
67
|
+
React.createElement("circle", { cx: "18", cy: "4", r: "4" })),
|
68
|
+
React.createElement("g", { style: dot3Styles },
|
69
|
+
React.createElement("circle", { cx: "32", cy: "4", r: "4" })))));
|
83
70
|
}
|
84
71
|
//# sourceMappingURL=LoadingComponent.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LoadingComponent.js","sourceRoot":"","sources":["../../../src/base/react/LoadingComponent.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAwB,MAAM,OAAO,CAAC;AAiB7C,MAAM,qBAAqB,GAAG,GAAG,CAAC;AAElC;;;;;;;GAOG;AACH,MAA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SAAS;QACZ,eAAe,EAAE,UAAU;QAC3B,cAAc,EAAE,GAAG,KAAK,GAAG;KAC9B,CAAC;IACF,MAAM,UAAU,GAAkB;QAC9B,GAAG,SAAS;QACZ,eAAe,EAAE,UAAU;QAC3B,cAAc,EAAE,GAAG;KACtB,CAAC;IAEF,OAAO,CACH,6BAAK,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,aAAa;QAC3C,6BAAK,KAAK,EAAE,SAAS,EAAE,OAAO,EAAC,KAAK,EAAC,CAAC,EAAC,KAAK,EAAC,CAAC,EAAC,KAAK,EAAC,OAAO,EAAC,UAAU;YACnE,mCAAQ;;;;;;;;;;;iBAWP,CAAS;YACV,2BAAG,KAAK,EAAE,UAAU;gBAChB,gCAAQ,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,EAAC,GAAG,GAAG,CAC9B;YACJ,2BAAG,KAAK,EAAE,UAAU;gBAChB,gCAAQ,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,EAAC,GAAG,GAAG,CAC/B;YACJ,2BAAG,KAAK,EAAE,UAAU;gBAChB,gCAAQ,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,EAAC,GAAG,GAAG,CAC/B,CACF,CACJ,CACT,CAAC;AACN,CAAC"}
|
@@ -91,5 +91,5 @@ export interface IRawExecuteProps extends IWithLoadingEvents<IRawExecuteProps> {
|
|
91
91
|
*
|
92
92
|
* @public
|
93
93
|
*/
|
94
|
-
export declare const RawExecute: React.
|
94
|
+
export declare const RawExecute: React.ComponentType<IRawExecuteProps>;
|
95
95
|
//# sourceMappingURL=RawExecute.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RawExecute.d.ts","sourceRoot":"","sources":["../../src/execution/RawExecute.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,2B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;IAE9B;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC;IAExB;;;;;;;;;OASG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;;;;;OASG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;;;;;OAOG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;IAEpC;;;;;;;OAOG;IACH,QAAQ,EAAE,CAAC,eAAe,EAAE,iBAAiB,KAAK,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;IAE5E;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,wBAAwB,CAAC;IAE5C;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,sBAAsB,CAAC;CAC3C;AA+BD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,UAAU,uCAqCP,CAAC"}
|
@@ -63,5 +63,5 @@ export interface IWithExecution<T> {
|
|
63
63
|
*
|
64
64
|
* @internal
|
65
65
|
*/
|
66
|
-
export declare function withExecution<T>(params: IWithExecution<T>): (WrappedComponent: React.ComponentType<T & WithLoadingResult>) => React.
|
66
|
+
export declare function withExecution<T>(params: IWithExecution<T>): (WrappedComponent: React.ComponentType<T & WithLoadingResult>) => React.ComponentType<T>;
|
67
67
|
//# sourceMappingURL=withExecution.d.ts.map
|
@@ -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,K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AAkB,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,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,aAAa,CAAC,CAAC,CAAC,CA4C1F"}
|
package/esm/sdk-ui.d.ts
CHANGED
@@ -16,6 +16,7 @@ import { AuthenticationFlow } from '@gooddata/sdk-backend-spi';
|
|
16
16
|
import { ComponentType } from 'react';
|
17
17
|
import { DataValue } from '@gooddata/sdk-model';
|
18
18
|
import { DependencyList } from 'react';
|
19
|
+
import { FC } from 'react';
|
19
20
|
import { ForecastDataValue } from '@gooddata/sdk-model';
|
20
21
|
import { IAbsoluteDateFilter } from '@gooddata/sdk-model';
|
21
22
|
import { IAnalyticalBackend } from '@gooddata/sdk-backend-spi';
|
@@ -69,6 +70,7 @@ import { ITotal } from '@gooddata/sdk-model';
|
|
69
70
|
import { ITotalDescriptor } from '@gooddata/sdk-model';
|
70
71
|
import { IWorkspaceSettings } from '@gooddata/sdk-backend-spi';
|
71
72
|
import { MessageDescriptor } from 'react-intl';
|
73
|
+
import { NamedExoticComponent } from 'react';
|
72
74
|
import { ObjRef } from '@gooddata/sdk-model';
|
73
75
|
import { default as React_2 } from 'react';
|
74
76
|
import { ReactElement } from 'react';
|
@@ -990,10 +992,7 @@ export declare const ErrorCodes: {
|
|
990
992
|
*
|
991
993
|
* @public
|
992
994
|
*/
|
993
|
-
export declare
|
994
|
-
static defaultProps: Partial<IErrorProps>;
|
995
|
-
render(): React_2.JSX.Element;
|
996
|
-
}
|
995
|
+
export declare function ErrorComponent({ icon, className, width, height, style, message, description, clientHeight, }: IErrorProps): React_2.JSX.Element;
|
997
996
|
|
998
997
|
/**
|
999
998
|
* The executor provides a more curated experience to obtain and work with data from backends.
|
@@ -2642,8 +2641,8 @@ export { Intl_2 as Intl }
|
|
2642
2641
|
/**
|
2643
2642
|
* @internal
|
2644
2643
|
*/
|
2645
|
-
export declare const IntlTranslationsProvider:
|
2646
|
-
WrappedComponent:
|
2644
|
+
export declare const IntlTranslationsProvider: FC<WithIntlProps<ITranslationsProviderProps>> & {
|
2645
|
+
WrappedComponent: ComponentType<ITranslationsProviderProps>;
|
2647
2646
|
};
|
2648
2647
|
|
2649
2648
|
/**
|
@@ -4930,10 +4929,7 @@ export declare const Kpi: React_2.ComponentType<IKpiProps>;
|
|
4930
4929
|
*
|
4931
4930
|
* @public
|
4932
4931
|
*/
|
4933
|
-
export declare
|
4934
|
-
static defaultProps: Partial<ILoadingProps>;
|
4935
|
-
render(): React_2.JSX.Element;
|
4936
|
-
}
|
4932
|
+
export declare function LoadingComponent({ className, color, speed, inline, height, width, imageHeight, imageWidth, }: ILoadingProps): React_2.JSX.Element;
|
4937
4933
|
|
4938
4934
|
/**
|
4939
4935
|
* Array of locales for type-guard. It must be the same as {@link ILocale}
|
@@ -5263,7 +5259,7 @@ export declare type PushDataCallback = (data: IPushData) => void;
|
|
5263
5259
|
*
|
5264
5260
|
* @public
|
5265
5261
|
*/
|
5266
|
-
export declare const RawExecute: React_2.
|
5262
|
+
export declare const RawExecute: React_2.ComponentType<IRawExecuteProps>;
|
5267
5263
|
|
5268
5264
|
/**
|
5269
5265
|
* The function to remove all translation keys that contain special suffixes "._measure" or "._metric"
|
@@ -5427,9 +5423,7 @@ export declare const TranslationsCustomizationProvider: React_2.FC<ITranslations
|
|
5427
5423
|
/**
|
5428
5424
|
* @internal
|
5429
5425
|
*/
|
5430
|
-
export declare
|
5431
|
-
render(): any;
|
5432
|
-
}
|
5426
|
+
export declare const TranslationsProvider: NamedExoticComponent<ITranslationsProviderProps>;
|
5433
5427
|
|
5434
5428
|
/**
|
5435
5429
|
* This error means that you are not authorized.
|
@@ -6045,7 +6039,7 @@ export declare function withEntireDataView<T extends IDataVisualizationProps>(In
|
|
6045
6039
|
*
|
6046
6040
|
* @internal
|
6047
6041
|
*/
|
6048
|
-
export declare function withExecution<T>(params: IWithExecution<T>): (WrappedComponent: React.ComponentType<T & WithLoadingResult>) => React.
|
6042
|
+
export declare function withExecution<T>(params: IWithExecution<T>): (WrappedComponent: React.ComponentType<T & WithLoadingResult>) => React.ComponentType<T>;
|
6049
6043
|
|
6050
6044
|
/**
|
6051
6045
|
* A React HOC responsible for orchestrating resolution of a data promise (e.g. data to load).
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@gooddata/sdk-ui",
|
3
|
-
"version": "10.40.0-alpha.
|
3
|
+
"version": "10.40.0-alpha.6",
|
4
4
|
"description": "GoodData.UI SDK - Core",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -41,11 +41,11 @@
|
|
41
41
|
"react-intl": "6.8.9",
|
42
42
|
"ts-invariant": "^0.7.5",
|
43
43
|
"tslib": "2.8.1",
|
44
|
-
"uuid": "^
|
44
|
+
"uuid": "^11.1.0",
|
45
45
|
"react-fast-compare": "^3.2.0",
|
46
|
-
"@gooddata/sdk-backend-spi": "10.40.0-alpha.
|
47
|
-
"@gooddata/
|
48
|
-
"@gooddata/
|
46
|
+
"@gooddata/sdk-backend-spi": "10.40.0-alpha.6",
|
47
|
+
"@gooddata/sdk-model": "10.40.0-alpha.6",
|
48
|
+
"@gooddata/util": "10.40.0-alpha.6"
|
49
49
|
},
|
50
50
|
"peerDependencies": {
|
51
51
|
"react": "^16.10.0 || ^17.0.0 || ^18.0.0",
|
@@ -64,7 +64,6 @@
|
|
64
64
|
"@types/raf": "^3.4.0",
|
65
65
|
"@types/react": "18.3.23",
|
66
66
|
"@types/react-dom": "18.3.7",
|
67
|
-
"@types/uuid": "^8.3.4",
|
68
67
|
"@typescript-eslint/eslint-plugin": "^8.38.0",
|
69
68
|
"@typescript-eslint/parser": "^8.38.0",
|
70
69
|
"concurrently": "^6.0.2",
|
@@ -95,10 +94,10 @@
|
|
95
94
|
"typescript": "5.8.3",
|
96
95
|
"vitest": "3.2.4",
|
97
96
|
"vitest-dom": "0.1.1",
|
98
|
-
"@gooddata/i18n-toolkit": "10.40.0-alpha.
|
99
|
-
"@gooddata/reference-workspace": "10.40.0-alpha.
|
100
|
-
"@gooddata/sdk-backend-base": "10.40.0-alpha.
|
101
|
-
"@gooddata/sdk-backend-mockingbird": "10.40.0-alpha.
|
97
|
+
"@gooddata/i18n-toolkit": "10.40.0-alpha.6",
|
98
|
+
"@gooddata/reference-workspace": "10.40.0-alpha.6",
|
99
|
+
"@gooddata/sdk-backend-base": "10.40.0-alpha.6",
|
100
|
+
"@gooddata/sdk-backend-mockingbird": "10.40.0-alpha.6"
|
102
101
|
},
|
103
102
|
"scripts": {
|
104
103
|
"clean": "../../common/scripts/clean-command-state.sh && rm -rf ci dist esm coverage *.log tsconfig.tsbuildinfo",
|