@gooddata/sdk-ui-dashboard 10.0.0-beta.7 → 10.0.0
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/__version.d.ts +1 -1
- package/esm/__version.d.ts.map +1 -1
- package/esm/__version.js +1 -1
- package/esm/__version.js.map +1 -1
- package/esm/presentation/localization/IntlWrapper.d.ts.map +1 -1
- package/esm/presentation/localization/IntlWrapper.js +3 -3
- package/esm/presentation/localization/IntlWrapper.js.map +1 -1
- package/esm/presentation/localization/createInternalIntl.d.ts.map +1 -1
- package/esm/presentation/localization/createInternalIntl.js +6 -3
- package/esm/presentation/localization/createInternalIntl.js.map +1 -1
- package/package.json +15 -15
package/esm/__version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const LIB_VERSION = "10.0.0
|
|
1
|
+
export declare const LIB_VERSION = "10.0.0";
|
|
2
2
|
//# sourceMappingURL=__version.d.ts.map
|
package/esm/__version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"__version.d.ts","sourceRoot":"","sources":["../src/__version.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"__version.d.ts","sourceRoot":"","sources":["../src/__version.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,WAAW,CAAC"}
|
package/esm/__version.js
CHANGED
package/esm/__version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"__version.js","sourceRoot":"","sources":["../src/__version.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,6DAA6D;AAC7D,MAAM,CAAC,MAAM,WAAW,GAAG,
|
|
1
|
+
{"version":3,"file":"__version.js","sourceRoot":"","sources":["../src/__version.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,6DAA6D;AAC7D,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntlWrapper.d.ts","sourceRoot":"","sources":["../../../src/presentation/localization/IntlWrapper.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"IntlWrapper.d.ts","sourceRoot":"","sources":["../../../src/presentation/localization/IntlWrapper.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsB,MAAM,OAAO,CAAC;AA+B3C;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAenD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
// (C) 2007-
|
|
1
|
+
// (C) 2007-2024 GoodData Corporation
|
|
2
2
|
import React, { useCallback } from "react";
|
|
3
3
|
import { IntlProvider } from "react-intl";
|
|
4
|
-
import { DefaultLocale, TranslationsCustomizationProvider, } from "@gooddata/sdk-ui";
|
|
4
|
+
import { DefaultLocale, TranslationsCustomizationProvider, resolveLocaleDefaultMessages, } from "@gooddata/sdk-ui";
|
|
5
5
|
import { translations } from "./translations.js";
|
|
6
6
|
const formats = {
|
|
7
7
|
time: {
|
|
@@ -27,6 +27,6 @@ const formats = {
|
|
|
27
27
|
*/
|
|
28
28
|
export const IntlWrapper = ({ children, locale = DefaultLocale }) => {
|
|
29
29
|
const render = useCallback((modifiedTranslations) => (React.createElement(IntlProvider, { locale: locale, messages: modifiedTranslations, formats: formats }, children)), [locale, children]);
|
|
30
|
-
return React.createElement(TranslationsCustomizationProvider, { translations:
|
|
30
|
+
return (React.createElement(TranslationsCustomizationProvider, { translations: resolveLocaleDefaultMessages(locale, translations), render: render }));
|
|
31
31
|
};
|
|
32
32
|
//# sourceMappingURL=IntlWrapper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntlWrapper.js","sourceRoot":"","sources":["../../../src/presentation/localization/IntlWrapper.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAiB,YAAY,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,EACH,aAAa,EAEb,iCAAiC,
|
|
1
|
+
{"version":3,"file":"IntlWrapper.js","sourceRoot":"","sources":["../../../src/presentation/localization/IntlWrapper.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAiB,YAAY,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,EACH,aAAa,EAEb,iCAAiC,EACjC,4BAA4B,GAC/B,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,MAAM,OAAO,GAAkB;IAC3B,IAAI,EAAE;QACF,IAAI,EAAE;YACF,IAAI,EAAE,SAAS;YACf,MAAM,EAAE,SAAS;SACpB;KACJ;IACD,IAAI,EAAE;QACF,gBAAgB,EAAE;YACd,GAAG,EAAE,SAAS;YACd,KAAK,EAAE,OAAO;SACjB;QACD,aAAa,EAAE;YACX,GAAG,EAAE,SAAS;YACd,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,SAAS;SAClB;KACJ;CACJ,CAAC;AAUF;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAgC,CAAC,EAAE,QAAQ,EAAE,MAAM,GAAG,aAAa,EAAE,EAAE,EAAE;IAC7F,MAAM,MAAM,GAAG,WAAW,CACtB,CAAC,oBAAoB,EAAE,EAAE,CAAC,CACtB,oBAAC,YAAY,IAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,oBAAoB,EAAE,OAAO,EAAE,OAAO,IACzE,QAAQ,CACE,CAClB,EACD,CAAC,MAAM,EAAE,QAAQ,CAAC,CACrB,CAAC;IACF,OAAO,CACH,oBAAC,iCAAiC,IAC9B,YAAY,EAAE,4BAA4B,CAAC,MAAM,EAAE,YAAY,CAAC,EAChE,MAAM,EAAE,MAAM,GAChB,CACL,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createInternalIntl.d.ts","sourceRoot":"","sources":["../../../src/presentation/localization/createInternalIntl.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,SAAS,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,EAAiB,OAAO,
|
|
1
|
+
{"version":3,"file":"createInternalIntl.d.ts","sourceRoot":"","sources":["../../../src/presentation/localization/createInternalIntl.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,SAAS,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,EAAiB,OAAO,EAAoD,MAAM,kBAAkB,CAAC;AAI5G;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,GAAE,OAAuB,GAAG,SAAS,CAW7E"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// (C) 2021 GoodData Corporation
|
|
1
|
+
// (C) 2021-2024 GoodData Corporation
|
|
2
2
|
import { createIntl } from "react-intl";
|
|
3
|
-
import { DefaultLocale, pickCorrectWording } from "@gooddata/sdk-ui";
|
|
3
|
+
import { DefaultLocale, pickCorrectWording, resolveLocaleDefaultMessages } from "@gooddata/sdk-ui";
|
|
4
4
|
import { translations } from "./translations.js";
|
|
5
5
|
/**
|
|
6
6
|
* Test intl utils
|
|
@@ -13,6 +13,9 @@ export function createInternalIntl(locale = DefaultLocale) {
|
|
|
13
13
|
* this workaround can be removed.
|
|
14
14
|
*/
|
|
15
15
|
const settings = window.gdSettings;
|
|
16
|
-
return createIntl({
|
|
16
|
+
return createIntl({
|
|
17
|
+
locale,
|
|
18
|
+
messages: pickCorrectWording(resolveLocaleDefaultMessages(locale, translations), settings),
|
|
19
|
+
});
|
|
17
20
|
}
|
|
18
21
|
//# sourceMappingURL=createInternalIntl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createInternalIntl.js","sourceRoot":"","sources":["../../../src/presentation/localization/createInternalIntl.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"createInternalIntl.js","sourceRoot":"","sources":["../../../src/presentation/localization/createInternalIntl.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,UAAU,EAAa,MAAM,YAAY,CAAC;AACnD,OAAO,EAAE,aAAa,EAAW,kBAAkB,EAAE,4BAA4B,EAAE,MAAM,kBAAkB,CAAC;AAG5G,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD;;;GAGG;AACH,MAAM,UAAU,kBAAkB,CAAC,SAAkB,aAAa;IAC9D;;;;OAIG;IACH,MAAM,QAAQ,GAAG,MAAM,CAAC,UAAgC,CAAC;IACzD,OAAO,UAAU,CAAC;QACd,MAAM;QACN,QAAQ,EAAE,kBAAkB,CAAC,4BAA4B,CAAC,MAAM,EAAE,YAAY,CAAC,EAAE,QAAQ,CAAC;KAC7F,CAAC,CAAC;AACP,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-dashboard",
|
|
3
|
-
"version": "10.0.0
|
|
3
|
+
"version": "10.0.0",
|
|
4
4
|
"description": "GoodData SDK - Dashboard Component",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -56,17 +56,17 @@
|
|
|
56
56
|
"ts-invariant": "^0.7.5",
|
|
57
57
|
"tslib": "^2.5.0",
|
|
58
58
|
"uuid": "^8.3.2",
|
|
59
|
-
"@gooddata/sdk-backend-base": "10.0.0
|
|
60
|
-
"@gooddata/sdk-
|
|
61
|
-
"@gooddata/sdk-
|
|
62
|
-
"@gooddata/sdk-
|
|
63
|
-
"@gooddata/sdk-ui-
|
|
64
|
-
"@gooddata/sdk-ui-
|
|
65
|
-
"@gooddata/sdk-ui-
|
|
66
|
-
"@gooddata/sdk-ui-
|
|
67
|
-
"@gooddata/sdk-ui-theme-provider": "10.0.0
|
|
68
|
-
"@gooddata/
|
|
69
|
-
"@gooddata/
|
|
59
|
+
"@gooddata/sdk-backend-base": "10.0.0",
|
|
60
|
+
"@gooddata/sdk-model": "10.0.0",
|
|
61
|
+
"@gooddata/sdk-backend-spi": "10.0.0",
|
|
62
|
+
"@gooddata/sdk-ui": "10.0.0",
|
|
63
|
+
"@gooddata/sdk-ui-filters": "10.0.0",
|
|
64
|
+
"@gooddata/sdk-ui-ext": "10.0.0",
|
|
65
|
+
"@gooddata/sdk-ui-kit": "10.0.0",
|
|
66
|
+
"@gooddata/sdk-ui-geo": "10.0.0",
|
|
67
|
+
"@gooddata/sdk-ui-theme-provider": "10.0.0",
|
|
68
|
+
"@gooddata/sdk-ui-vis-commons": "10.0.0",
|
|
69
|
+
"@gooddata/util": "10.0.0"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
72
|
"react": "^16.10.0 || ^17.0.0 || ^18.0.0",
|
|
@@ -119,9 +119,9 @@
|
|
|
119
119
|
"typescript": "5.3.3",
|
|
120
120
|
"vitest": "1.0.4",
|
|
121
121
|
"vitest-dom": "0.1.1",
|
|
122
|
-
"@gooddata/
|
|
123
|
-
"@gooddata/
|
|
124
|
-
"@gooddata/sdk-backend-mockingbird": "10.0.0
|
|
122
|
+
"@gooddata/reference-workspace": "10.0.0",
|
|
123
|
+
"@gooddata/i18n-toolkit": "10.0.0",
|
|
124
|
+
"@gooddata/sdk-backend-mockingbird": "10.0.0"
|
|
125
125
|
},
|
|
126
126
|
"scripts": {
|
|
127
127
|
"clean": "rm -rf ci dist esm coverage *.log styles/css tsconfig.tsbuildinfo",
|