@gooddata/sdk-ui-ext 11.12.0 → 11.13.0-alpha.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/NOTICE +3 -3
- package/esm/automations/Automations.d.ts +1 -1
- package/esm/automations/Automations.d.ts.map +1 -1
- package/esm/automations/Automations.js +2 -2
- package/esm/automations/Automations.js.map +1 -1
- package/esm/automations/columns/AutomationIcon.d.ts.map +1 -1
- package/esm/automations/columns/AutomationIcon.js +2 -2
- package/esm/automations/columns/AutomationIcon.js.map +1 -1
- package/esm/automations/columns/AutomationIconTooltip.d.ts +1 -1
- package/esm/automations/columns/AutomationIconTooltip.d.ts.map +1 -1
- package/esm/automations/columns/AutomationIconTooltip.js +2 -2
- package/esm/automations/columns/AutomationIconTooltip.js.map +1 -1
- package/esm/automations/columns/useAutomationColumns.d.ts.map +1 -1
- package/esm/automations/columns/useAutomationColumns.js.map +1 -1
- package/esm/automations/constants.d.ts.map +1 -1
- package/esm/automations/constants.js +2 -5
- package/esm/automations/constants.js.map +1 -1
- package/esm/automations/types.d.ts +3 -0
- package/esm/automations/types.d.ts.map +1 -1
- package/esm/automations/useAutomationsState.d.ts +1 -1
- package/esm/automations/useAutomationsState.d.ts.map +1 -1
- package/esm/automations/useAutomationsState.js +4 -6
- package/esm/automations/useAutomationsState.js.map +1 -1
- package/esm/insightView/InsightRenderer.d.ts +7 -3
- package/esm/insightView/InsightRenderer.d.ts.map +1 -1
- package/esm/insightView/InsightRenderer.js +13 -6
- package/esm/insightView/InsightRenderer.js.map +1 -1
- package/esm/internal/components/BaseVisualization.d.ts +1 -0
- package/esm/internal/components/BaseVisualization.d.ts.map +1 -1
- package/esm/internal/components/BaseVisualization.js +2 -0
- package/esm/internal/components/BaseVisualization.js.map +1 -1
- package/esm/internal/components/dialogs/embedInsightDialog/EmbedInsightDialog.js +1 -1
- package/esm/internal/components/dialogs/embedInsightDialog/EmbedInsightDialog.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/AbstractPluggableVisualization.js +1 -1
- package/esm/internal/components/pluggableVisualizations/AbstractPluggableVisualization.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/areaChart/AreaChartDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/areaChart/AreaChartDescriptor.js +1 -1
- package/esm/internal/components/pluggableVisualizations/areaChart/AreaChartDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/barChart/BarChartDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/barChart/BarChartDescriptor.js +1 -1
- package/esm/internal/components/pluggableVisualizations/barChart/BarChartDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/bubbleChart/BubbleChartDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/bubbleChart/BubbleChartDescriptor.js +1 -1
- package/esm/internal/components/pluggableVisualizations/bubbleChart/BubbleChartDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/bulletChart/BulletChartDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/bulletChart/BulletChartDescriptor.js +1 -1
- package/esm/internal/components/pluggableVisualizations/bulletChart/BulletChartDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/columnChart/ColumnChartDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/columnChart/ColumnChartDescriptor.js +1 -1
- package/esm/internal/components/pluggableVisualizations/columnChart/ColumnChartDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/comboChart/ComboChartDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/comboChart/ComboChartDescriptor.js +1 -1
- package/esm/internal/components/pluggableVisualizations/comboChart/ComboChartDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/dependencyWheelChart/DependencyWheelChartDescriptor.d.ts +2 -1
- package/esm/internal/components/pluggableVisualizations/dependencyWheelChart/DependencyWheelChartDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/dependencyWheelChart/DependencyWheelChartDescriptor.js +7 -0
- package/esm/internal/components/pluggableVisualizations/dependencyWheelChart/DependencyWheelChartDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/donutChart/DonutChartDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/donutChart/DonutChartDescriptor.js +1 -1
- package/esm/internal/components/pluggableVisualizations/donutChart/DonutChartDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/funnelChart/FunnelChartDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/funnelChart/FunnelChartDescriptor.js +1 -0
- package/esm/internal/components/pluggableVisualizations/funnelChart/FunnelChartDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoAreaChart/GeoAreaChartDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoAreaChart/GeoAreaChartDescriptor.js +1 -1
- package/esm/internal/components/pluggableVisualizations/geoAreaChart/GeoAreaChartDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoChart/GeoPushpinChartDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoChart/GeoPushpinChartDescriptor.js +1 -1
- package/esm/internal/components/pluggableVisualizations/geoChart/GeoPushpinChartDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoChartNext/GeoPushpinChartNextDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoChartNext/GeoPushpinChartNextDescriptor.js +1 -1
- package/esm/internal/components/pluggableVisualizations/geoChartNext/GeoPushpinChartNextDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/headline/HeadlineDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/headline/HeadlineDescriptor.js +1 -1
- package/esm/internal/components/pluggableVisualizations/headline/HeadlineDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/heatMap/HeatmapDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/heatMap/HeatmapDescriptor.js +1 -1
- package/esm/internal/components/pluggableVisualizations/heatMap/HeatmapDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/lineChart/LineChartDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/lineChart/LineChartDescriptor.js +1 -1
- package/esm/internal/components/pluggableVisualizations/lineChart/LineChartDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pieChart/PieChartDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pieChart/PieChartDescriptor.js +1 -1
- package/esm/internal/components/pluggableVisualizations/pieChart/PieChartDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTable/PivotTableDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTable/PivotTableDescriptor.js +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTable/PivotTableDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/PivotTableNextDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/PivotTableNextDescriptor.js +9 -2
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/PivotTableNextDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/pivotTableNextConfigFromInsight.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/pivotTableNextConfigFromInsight.js +4 -1
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/pivotTableNextConfigFromInsight.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pyramidChart/PyramidChartDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pyramidChart/PyramidChartDescriptor.js +1 -0
- package/esm/internal/components/pluggableVisualizations/pyramidChart/PyramidChartDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/repeater/RepeaterDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/repeater/RepeaterDescriptor.js +1 -1
- package/esm/internal/components/pluggableVisualizations/repeater/RepeaterDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/sankeyChart/SankeyChartDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/sankeyChart/SankeyChartDescriptor.js +1 -0
- package/esm/internal/components/pluggableVisualizations/sankeyChart/SankeyChartDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/scatterPlot/ScatterPlotDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/scatterPlot/ScatterPlotDescriptor.js +1 -1
- package/esm/internal/components/pluggableVisualizations/scatterPlot/ScatterPlotDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/treeMap/TreemapDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/treeMap/TreemapDescriptor.js +1 -1
- package/esm/internal/components/pluggableVisualizations/treeMap/TreemapDescriptor.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/waterfallChart/WaterfallChartDescriptor.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/waterfallChart/WaterfallChartDescriptor.js +1 -1
- package/esm/internal/components/pluggableVisualizations/waterfallChart/WaterfallChartDescriptor.js.map +1 -1
- package/esm/internal/index.d.ts +2 -1
- package/esm/internal/index.d.ts.map +1 -1
- package/esm/internal/index.js +2 -1
- package/esm/internal/index.js.map +1 -1
- package/esm/internal/interfaces/Visualization.d.ts +2 -0
- package/esm/internal/interfaces/Visualization.d.ts.map +1 -1
- package/esm/internal/interfaces/Visualization.js.map +1 -1
- package/esm/internal/tests/testIntlProvider.d.ts +6 -0
- package/esm/internal/tests/testIntlProvider.d.ts.map +1 -0
- package/esm/internal/tests/testIntlProvider.js +17 -0
- package/esm/internal/tests/testIntlProvider.js.map +1 -0
- package/esm/internal/utils/embeddingCodeGenerator/getReactEmbeddingCodeGenerator.d.ts.map +1 -1
- package/esm/internal/utils/embeddingCodeGenerator/getReactEmbeddingCodeGenerator.js +10 -2
- package/esm/internal/utils/embeddingCodeGenerator/getReactEmbeddingCodeGenerator.js.map +1 -1
- package/esm/internal/utils/internalIntlProvider.d.ts +1 -1
- package/esm/internal/utils/internalIntlProvider.d.ts.map +1 -1
- package/esm/internal/utils/internalIntlProvider.js +13 -20
- package/esm/internal/utils/internalIntlProvider.js.map +1 -1
- package/esm/internal/utils/translations.d.ts +12 -4
- package/esm/internal/utils/translations.d.ts.map +1 -1
- package/esm/internal/utils/translations.js +54 -49
- package/esm/internal/utils/translations.js.map +1 -1
- package/esm/notificationsPanel/localization/IntlWrapper.d.ts.map +1 -1
- package/esm/notificationsPanel/localization/IntlWrapper.js +7 -6
- package/esm/notificationsPanel/localization/IntlWrapper.js.map +1 -1
- package/esm/sdk-ui-ext.d.ts +2 -1
- package/package.json +18 -18
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getReactEmbeddingCodeGenerator.js","sourceRoot":"","sources":["../../../../src/internal/utils/embeddingCodeGenerator/getReactEmbeddingCodeGenerator.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEjF,OAAO,EAAsB,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAUzD,4DAA4D;AAC5D,MAAM,gBAAgB,GAAkB;IACpC,mBAAmB;IACnB,QAAQ;IACR,OAAO;IACP,YAAY;IACZ,sBAAsB;IACtB,cAAc;IACd,oBAAoB;IACpB,YAAY;IACZ,sBAAsB;IACtB,eAAe;IACf,0BAA0B;IAC1B,mBAAmB;IACnB,uBAAuB;IACvB,uBAAuB;IACvB,4BAA4B;IAC5B,4BAA4B;IAC5B,uBAAuB;IACvB,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AAc,IAAI,EAAE,CAAC;IACjD,MAAM,WAAW,GAAkB,EAAE,CAAC;IAEtC,6FAA6F;IAC7F,MAAM,yBAAyB,GAAG,MAAM,CAAC,OAAO,CAAoB,KAAK,CAAC,CAAC,MAAM,CAC7E,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"getReactEmbeddingCodeGenerator.js","sourceRoot":"","sources":["../../../../src/internal/utils/embeddingCodeGenerator/getReactEmbeddingCodeGenerator.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEjF,OAAO,EAAsB,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAUzD,4DAA4D;AAC5D,MAAM,gBAAgB,GAAkB;IACpC,mBAAmB;IACnB,QAAQ;IACR,OAAO;IACP,YAAY;IACZ,sBAAsB;IACtB,cAAc;IACd,oBAAoB;IACpB,YAAY;IACZ,sBAAsB;IACtB,eAAe;IACf,0BAA0B;IAC1B,mBAAmB;IACnB,uBAAuB;IACvB,uBAAuB;IACvB,4BAA4B;IAC5B,4BAA4B;IAC5B,uBAAuB;IACvB,kBAAkB;IAClB,iBAAiB;IACjB,kBAAkB;IAClB,sBAAsB;IACtB,gBAAgB;IAChB,kBAAkB;IAClB,UAAU;CACb,CAAC,GAAG,CAAC,CAAC,IAAI,EAAe,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,qBAAqB,EAAE,CAAC,CAAC,CAAC;AAE9F,SAAS,oBAAoB,CACzB,gBAA0B,EAC1B,mBAAmD;IAEnD,MAAM,eAAe,GAAG,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpD,OAAO,CAAC,G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CAAC;QAEzF,MAAM,aAAa,GAAG,IAAI,SAAS,CAAC,IAAI,KAAK,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC;QAEpF,OAAO,GAAG,aAAa,CAAC,OAAO,CAAC;;EAEtC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC;yBACJ,iBAAiB;;;;;EAKxC,MAAM,CAAC,aAAa,EAAE,CAAC,CAAC;;;;CAIzB,CAAC;IACE,CAAC,CAAC;AACN,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
import { IntlShape } from "react-intl";
|
|
3
3
|
import { ILocale } from "@gooddata/sdk-ui";
|
|
4
|
-
export declare function createInternalIntl(locale
|
|
4
|
+
export declare function createInternalIntl(locale: ILocale, messages: Record<string, string>): IntlShape;
|
|
5
5
|
interface IInternalIntlWrapperProps {
|
|
6
6
|
locale?: string;
|
|
7
7
|
children?: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internalIntlProvider.d.ts","sourceRoot":"","sources":["../../../src/internal/utils/internalIntlProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"internalIntlProvider.d.ts","sourceRoot":"","sources":["../../../src/internal/utils/internalIntlProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAA4B,SAAS,EAAc,MAAM,YAAY,CAAC;AAE7E,OAAO,EAAiB,OAAO,EAAqC,MAAM,kBAAkB,CAAC;AAI7F,wBAAgB,kBAAkB,CAC9B,MAAM,EAAE,OAAuB,EAC/B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACjC,SAAS,CAOX;AAED,UAAU,yBAAyB;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB;AAED,wBAAgB,mBAAmB,CAAC,EAAE,MAAsB,EAAE,QAAQ,EAAE,EAAE,yBAAyB,2CAWlG"}
|
|
@@ -1,27 +1,20 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2019-2025 GoodData Corporation
|
|
3
|
-
import { useMemo } from "react";
|
|
4
|
-
import { LRUCache } from "lru-cache";
|
|
5
2
|
import { IntlProvider, createIntl } from "react-intl";
|
|
6
|
-
import { DefaultLocale,
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
export function createInternalIntl(locale = DefaultLocale) {
|
|
12
|
-
const cachedIntlConfig = intlCache.get(INTL_CACHE_KEY);
|
|
13
|
-
if (cachedIntlConfig?.locale === locale) {
|
|
14
|
-
return createIntl(cachedIntlConfig);
|
|
15
|
-
}
|
|
16
|
-
const strings = resolveLocaleDefaultMessages(locale, translations);
|
|
17
|
-
intlCache.set(INTL_CACHE_KEY, {
|
|
3
|
+
import { DefaultLocale, resolveLocale, useResolveMessages } from "@gooddata/sdk-ui";
|
|
4
|
+
import { DEFAULT_MESSAGES, resolveMessages } from "./translations.js";
|
|
5
|
+
export function createInternalIntl(locale = DefaultLocale, messages) {
|
|
6
|
+
// Create intl with empty messages - translations should be loaded via InternalIntlWrapper
|
|
7
|
+
const config = {
|
|
18
8
|
locale,
|
|
19
|
-
messages
|
|
20
|
-
}
|
|
21
|
-
return createIntl(
|
|
9
|
+
messages,
|
|
10
|
+
};
|
|
11
|
+
return createIntl(config);
|
|
22
12
|
}
|
|
23
13
|
export function InternalIntlWrapper({ locale = DefaultLocale, children }) {
|
|
24
|
-
const messages =
|
|
25
|
-
|
|
14
|
+
const messages = useResolveMessages(resolveLocale(locale), resolveMessages, DEFAULT_MESSAGES);
|
|
15
|
+
if (!messages[locale]) {
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
18
|
+
return (_jsx(IntlProvider, { locale: locale, messages: messages[locale], children: children }));
|
|
26
19
|
}
|
|
27
20
|
//# sourceMappingURL=internalIntlProvider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internalIntlProvider.js","sourceRoot":"","sources":["../../../src/internal/utils/internalIntlProvider.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"internalIntlProvider.js","sourceRoot":"","sources":["../../../src/internal/utils/internalIntlProvider.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAc,YAAY,EAAa,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7E,OAAO,EAAE,aAAa,EAAW,aAAa,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE7F,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEtE,MAAM,UAAU,kBAAkB,CAC9B,SAAkB,aAAa,EAC/B,QAAgC;IAEhC,0FAA0F;IAC1F,MAAM,MAAM,GAAe;QACvB,MAAM;QACN,QAAQ;KACX,CAAC;IACF,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC;AAC9B,CAAC;AAOD,MAAM,UAAU,mBAAmB,CAAC,EAAE,MAAM,GAAG,aAAa,EAAE,QAAQ,EAA6B;IAC/F,MAAM,QAAQ,GAAG,kBAAkB,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE,eAAe,EAAE,gBAAgB,CAAC,CAAC;IAE9F,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QACpB,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO,CACH,KAAC,YAAY,IAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,YACnD,QAAQ,GACE,CAClB,CAAC;AACN,CAAC"}
|
|
@@ -1,13 +1,21 @@
|
|
|
1
|
-
import { IntlShape } from "react-intl";
|
|
2
|
-
import {
|
|
1
|
+
import type { IntlShape } from "react-intl";
|
|
2
|
+
import { ITranslations } from "@gooddata/sdk-ui";
|
|
3
|
+
import type { IDropdownItem } from "../interfaces/Dropdown.js";
|
|
3
4
|
export declare function getTranslation(translationId: string, intl: IntlShape, values?: {
|
|
4
5
|
[key: string]: string;
|
|
5
6
|
}): string;
|
|
6
7
|
export declare function getTranslatedDropdownItems(dropdownItems: IDropdownItem[], intl: IntlShape): IDropdownItem[];
|
|
7
8
|
/**
|
|
9
|
+
* Resolves translation messages for the given locale.
|
|
10
|
+
* Memoized to cache promises and prevent duplicate async imports.
|
|
11
|
+
*
|
|
8
12
|
* @internal
|
|
9
13
|
*/
|
|
10
|
-
export declare const
|
|
11
|
-
|
|
14
|
+
export declare const resolveMessages: (locale: string) => Promise<ITranslations>;
|
|
15
|
+
export declare const DEFAULT_LANGUAGE = "en-US";
|
|
16
|
+
export declare const DEFAULT_MESSAGES: {
|
|
17
|
+
"en-US": {
|
|
18
|
+
[x: string]: string;
|
|
19
|
+
};
|
|
12
20
|
};
|
|
13
21
|
//# sourceMappingURL=translations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/internal/utils/translations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/internal/utils/translations.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAEH,aAAa,EAEhB,MAAM,kBAAkB,CAAC;AAI1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,wBAAgB,cAAc,CAC1B,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,SAAS,EACf,MAAM,GAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAO,GACvC,MAAM,CAER;AAED,wBAAgB,0BAA0B,CAAC,aAAa,EAAE,aAAa,EAAE,EAAE,IAAI,EAAE,SAAS,GAAG,aAAa,EAAE,CAM3G;AAgDD;;;;;GAKG;AACH,eAAO,MAAM,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,aAAa,CAAoC,CAAC;AAE5G,eAAO,MAAM,gBAAgB,UAAU,CAAC;AACxC,eAAO,MAAM,gBAAgB;;;;CAK5B,CAAC"}
|
|
@@ -1,29 +1,8 @@
|
|
|
1
1
|
// (C) 2019-2025 GoodData Corporation
|
|
2
|
-
import { merge } from "lodash-es";
|
|
3
|
-
import {
|
|
2
|
+
import { memoize, merge } from "lodash-es";
|
|
3
|
+
import { DEFAULT_MESSAGES as DEFAULT_MESSAGES_SDK_UI, resolveMessages as sdkUiresolveMessages, } from "@gooddata/sdk-ui";
|
|
4
|
+
// eslint-disable-next-line import/order
|
|
4
5
|
import { translationUtils } from "@gooddata/util";
|
|
5
|
-
import { de_DE } from "../translations/de-DE.localization-bundle.js";
|
|
6
|
-
import { en_AU } from "../translations/en-AU.localization-bundle.js";
|
|
7
|
-
import { en_GB } from "../translations/en-GB.localization-bundle.js";
|
|
8
|
-
import { en_US } from "../translations/en-US.localization-bundle.js";
|
|
9
|
-
import { es_419 } from "../translations/es-419.localization-bundle.js";
|
|
10
|
-
import { es_ES } from "../translations/es-ES.localization-bundle.js";
|
|
11
|
-
import { fi_FI } from "../translations/fi-FI.localization-bundle.js";
|
|
12
|
-
import { fr_CA } from "../translations/fr-CA.localization-bundle.js";
|
|
13
|
-
import { fr_FR } from "../translations/fr-FR.localization-bundle.js";
|
|
14
|
-
import { it_IT } from "../translations/it-IT.localization-bundle.js";
|
|
15
|
-
import { ja_JP } from "../translations/ja-JP.localization-bundle.js";
|
|
16
|
-
import { ko_KR } from "../translations/ko-KR.localization-bundle.js";
|
|
17
|
-
import { nl_NL } from "../translations/nl-NL.localization-bundle.js";
|
|
18
|
-
import { pl_PL } from "../translations/pl-PL.localization-bundle.js";
|
|
19
|
-
import { pt_BR } from "../translations/pt-BR.localization-bundle.js";
|
|
20
|
-
import { pt_PT } from "../translations/pt-PT.localization-bundle.js";
|
|
21
|
-
import { ru_RU } from "../translations/ru-RU.localization-bundle.js";
|
|
22
|
-
import { sl_SI } from "../translations/sl-SI.localization-bundle.js";
|
|
23
|
-
import { tr_TR } from "../translations/tr-TR.localization-bundle.js";
|
|
24
|
-
import { zh_Hans } from "../translations/zh-Hans.localization-bundle.js";
|
|
25
|
-
import { zh_Hant } from "../translations/zh-Hant.localization-bundle.js";
|
|
26
|
-
import { zh_HK } from "../translations/zh-HK.localization-bundle.js";
|
|
27
6
|
export function getTranslation(translationId, intl, values = {}) {
|
|
28
7
|
return intl ? intl.formatMessage({ id: translationId }, values) : translationId;
|
|
29
8
|
}
|
|
@@ -34,33 +13,59 @@ export function getTranslatedDropdownItems(dropdownItems, intl) {
|
|
|
34
13
|
return { ...item, ...translatedTitleProp, ...translatedInfoProp };
|
|
35
14
|
});
|
|
36
15
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"pt-
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"en-
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"zh-
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
16
|
+
import { en_US } from "../translations/en-US.localization-bundle.js";
|
|
17
|
+
const asyncSdkUiExtTranslations = {
|
|
18
|
+
"en-US": () => Promise.resolve(translationUtils.removeMetadata(en_US)),
|
|
19
|
+
"de-DE": () => import("../translations/de-DE.localization-bundle.js").then((module) => module.de_DE),
|
|
20
|
+
"es-ES": () => import("../translations/es-ES.localization-bundle.js").then((module) => module.es_ES),
|
|
21
|
+
"fr-FR": () => import("../translations/fr-FR.localization-bundle.js").then((module) => module.fr_FR),
|
|
22
|
+
"ja-JP": () => import("../translations/ja-JP.localization-bundle.js").then((module) => module.ja_JP),
|
|
23
|
+
"nl-NL": () => import("../translations/nl-NL.localization-bundle.js").then((module) => module.nl_NL),
|
|
24
|
+
"pt-BR": () => import("../translations/pt-BR.localization-bundle.js").then((module) => module.pt_BR),
|
|
25
|
+
"pt-PT": () => import("../translations/pt-PT.localization-bundle.js").then((module) => module.pt_PT),
|
|
26
|
+
"zh-Hans": () => import("../translations/zh-Hans.localization-bundle.js").then((module) => module.zh_Hans),
|
|
27
|
+
"ru-RU": () => import("../translations/ru-RU.localization-bundle.js").then((module) => module.ru_RU),
|
|
28
|
+
"it-IT": () => import("../translations/it-IT.localization-bundle.js").then((module) => module.it_IT),
|
|
29
|
+
"es-419": () => import("../translations/es-419.localization-bundle.js").then((module) => module.es_419),
|
|
30
|
+
"fr-CA": () => import("../translations/fr-CA.localization-bundle.js").then((module) => module.fr_CA),
|
|
31
|
+
"en-GB": () => import("../translations/en-GB.localization-bundle.js").then((module) => module.en_GB),
|
|
32
|
+
"en-AU": () => import("../translations/en-AU.localization-bundle.js").then((module) => module.en_AU),
|
|
33
|
+
"fi-FI": () => import("../translations/fi-FI.localization-bundle.js").then((module) => module.fi_FI),
|
|
34
|
+
"zh-Hant": () => import("../translations/zh-Hant.localization-bundle.js").then((module) => module.zh_Hant),
|
|
35
|
+
"zh-HK": () => import("../translations/zh-HK.localization-bundle.js").then((module) => module.zh_HK),
|
|
36
|
+
"tr-TR": () => import("../translations/tr-TR.localization-bundle.js").then((module) => module.tr_TR),
|
|
37
|
+
"pl-PL": () => import("../translations/pl-PL.localization-bundle.js").then((module) => module.pl_PL),
|
|
38
|
+
"ko-KR": () => import("../translations/ko-KR.localization-bundle.js").then((module) => module.ko_KR),
|
|
39
|
+
"sl-SI": () => import("../translations/sl-SI.localization-bundle.js").then((module) => module.sl_SI),
|
|
60
40
|
};
|
|
61
41
|
/**
|
|
42
|
+
* Asynchronously loads translations for the specified locale, merging sdk-ui-ext translations
|
|
43
|
+
* with sdk-ui translations.
|
|
44
|
+
*
|
|
45
|
+
* @param locale - The locale to load translations for
|
|
46
|
+
* @returns Promise resolving to merged translations object
|
|
62
47
|
* @internal
|
|
63
48
|
*/
|
|
64
|
-
|
|
65
|
-
|
|
49
|
+
const resolveMessagesInternal = async (locale) => {
|
|
50
|
+
const sdkUiExtLoader = asyncSdkUiExtTranslations[locale] || asyncSdkUiExtTranslations["en-US"];
|
|
51
|
+
const [sdkUiExtTranslations, sdkUiTranslations] = await Promise.all([
|
|
52
|
+
sdkUiExtLoader(),
|
|
53
|
+
sdkUiresolveMessages(locale),
|
|
54
|
+
]);
|
|
55
|
+
return merge({}, sdkUiTranslations, sdkUiExtTranslations);
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Resolves translation messages for the given locale.
|
|
59
|
+
* Memoized to cache promises and prevent duplicate async imports.
|
|
60
|
+
*
|
|
61
|
+
* @internal
|
|
62
|
+
*/
|
|
63
|
+
export const resolveMessages = memoize(resolveMessagesInternal);
|
|
64
|
+
export const DEFAULT_LANGUAGE = "en-US";
|
|
65
|
+
export const DEFAULT_MESSAGES = {
|
|
66
|
+
[DEFAULT_LANGUAGE]: {
|
|
67
|
+
...translationUtils.removeMetadata(en_US),
|
|
68
|
+
...DEFAULT_MESSAGES_SDK_UI[DEFAULT_LANGUAGE],
|
|
69
|
+
},
|
|
70
|
+
};
|
|
66
71
|
//# sourceMappingURL=translations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.js","sourceRoot":"","sources":["../../../src/internal/utils/translations.ts"],"names":[],"mappings":"AAAA,qCAAqC;
|
|
1
|
+
{"version":3,"file":"translations.js","sourceRoot":"","sources":["../../../src/internal/utils/translations.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAG3C,OAAO,EACH,gBAAgB,IAAI,uBAAuB,EAE3C,eAAe,IAAI,oBAAoB,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AI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC;IACpG,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,8CAA8C,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC;CACvG,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,uBAAuB,GAAG,KAAK,EAAE,MAAc,EAA0B,EAAE;IAC7E,MAAM,cAAc,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,yBAAyB,CAAC,OAAO,CAAC,CAAC;IAC/F,MAAM,CAAC,oBAAoB,EAAE,iBAAiB,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QAChE,cAAc,EAAE;QAChB,oBAAoB,CAAC,MAAM,CAAC;KAC/B,CAAC,CAAC;IACH,OAAO,KAAK,CAAC,EAAE,EAAE,iBAAiB,EAAE,oBAAoB,CAAC,CAAC;AAC9D,CAAC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAA+C,OAAO,CAAC,uBAAuB,CAAC,CAAC;AAE5G,MAAM,CAAC,MAAM,gBAAgB,GAAG,OAAO,CAAC;AACxC,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC5B,CAAC,gBAAgB,CAAC,EAAE;QAChB,GAAG,gBAAgB,CAAC,cAAc,CAAC,KAAK,CAAC;QACzC,GAAG,uBAAuB,CAAC,gBAAgB,CAAC;KAC/C;CACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntlWrapper.d.ts","sourceRoot":"","sources":["../../../src/notificationsPanel/localization/IntlWrapper.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"IntlWrapper.d.ts","sourceRoot":"","sources":["../../../src/notificationsPanel/localization/IntlWrapper.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AA4BlC;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,MAAsB,EAAE,EAAE,iBAAiB,2CAUlF"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2007-2025 GoodData Corporation
|
|
3
|
-
import { useMemo } from "react";
|
|
4
2
|
import { IntlProvider } from "react-intl";
|
|
5
|
-
import { DefaultLocale,
|
|
6
|
-
import {
|
|
3
|
+
import { DefaultLocale, resolveLocale, useResolveMessages } from "@gooddata/sdk-ui";
|
|
4
|
+
import { DEFAULT_MESSAGES, resolveMessages } from "../../internal/utils/translations.js";
|
|
7
5
|
const formats = {
|
|
8
6
|
time: {
|
|
9
7
|
hhmm: {
|
|
@@ -27,7 +25,10 @@ const formats = {
|
|
|
27
25
|
* @internal
|
|
28
26
|
*/
|
|
29
27
|
export function IntlWrapper({ children, locale = DefaultLocale }) {
|
|
30
|
-
const messages =
|
|
31
|
-
|
|
28
|
+
const messages = useResolveMessages(resolveLocale(locale), resolveMessages, DEFAULT_MESSAGES);
|
|
29
|
+
if (!messages[locale]) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
return (_jsx(IntlProvider, { locale: locale, messages: messages[locale], formats: formats, children: children }));
|
|
32
33
|
}
|
|
33
34
|
//# sourceMappingURL=IntlWrapper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntlWrapper.js","sourceRoot":"","sources":["../../../src/notificationsPanel/localization/IntlWrapper.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"IntlWrapper.js","sourceRoot":"","sources":["../../../src/notificationsPanel/localization/IntlWrapper.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAiB,YAAY,EAAE,MAAM,YAAY,CAAC;AAEzD,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEpF,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAEzF,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,UAAU,WAAW,CAAC,EAAE,QAAQ,EAAE,MAAM,GAAG,aAAa,EAAqB;IAC/E,MAAM,QAAQ,GAAG,kBAAkB,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE,eAAe,EAAE,gBAAgB,CAAC,CAAC;IAC9F,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QACpB,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO,CACH,KAAC,YAAY,IAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,OAAO,YACrE,QAAQ,GACE,CAClB,CAAC;AACN,CAAC"}
|
package/esm/sdk-ui-ext.d.ts
CHANGED
|
@@ -156,7 +156,7 @@ export declare type AutomationColumnDefinitions = Array<AutomationColumnDefiniti
|
|
|
156
156
|
*
|
|
157
157
|
* @internal
|
|
158
158
|
*/
|
|
159
|
-
export declare function Automations({ backend, scope, workspace, organization, locale, timezone, selectedColumnDefinitions, preselectedFilters, availableFilters, maxHeight, pageSize, type, tableVariant, isMobileView, enableBulkActions,
|
|
159
|
+
export declare function Automations({ backend, scope, workspace, organization, locale, timezone, selectedColumnDefinitions, preselectedFilters, availableFilters, maxHeight, pageSize, type, tableVariant, isMobileView, enableBulkActions, onInvalidateCallbackChange, renderToolbarCustomElement, dashboardUrlBuilder, widgetUrlBuilder, editAutomation, onLoad, }: IAutomationsProps): JSX.Element;
|
|
160
160
|
|
|
161
161
|
/**
|
|
162
162
|
* Available filters configuration
|
|
@@ -520,6 +520,7 @@ export declare interface IAutomationsProps {
|
|
|
520
520
|
isMobileView?: boolean;
|
|
521
521
|
enableBulkActions?: boolean;
|
|
522
522
|
invalidateItemsRef?: AutomationsInvalidateItemsRef;
|
|
523
|
+
onInvalidateCallbackChange?: (callback: (() => void) | undefined) => void;
|
|
523
524
|
renderToolbarCustomElement?: () => ReactNode;
|
|
524
525
|
onLoad?: AutomationsOnLoad;
|
|
525
526
|
dashboardUrlBuilder?: IDashboardUrlBuilder;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-ext",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.13.0-alpha.1",
|
|
4
4
|
"description": "GoodData.UI SDK - Extensions",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -63,19 +63,19 @@
|
|
|
63
63
|
"ts-invariant": "^0.7.5",
|
|
64
64
|
"tslib": "2.8.1",
|
|
65
65
|
"uuid": "^11.1.0",
|
|
66
|
-
"@gooddata/sdk-backend-base": "11.
|
|
67
|
-
"@gooddata/sdk-
|
|
68
|
-
"@gooddata/sdk-
|
|
69
|
-
"@gooddata/sdk-ui": "11.
|
|
70
|
-
"@gooddata/sdk-
|
|
71
|
-
"@gooddata/sdk-ui-
|
|
72
|
-
"@gooddata/sdk-ui-
|
|
73
|
-
"@gooddata/sdk-ui-
|
|
74
|
-
"@gooddata/sdk-
|
|
75
|
-
"@gooddata/sdk-ui-
|
|
76
|
-
"@gooddata/sdk-ui-
|
|
77
|
-
"@gooddata/
|
|
78
|
-
"@gooddata/
|
|
66
|
+
"@gooddata/sdk-backend-base": "11.13.0-alpha.1",
|
|
67
|
+
"@gooddata/sdk-embedding": "11.13.0-alpha.1",
|
|
68
|
+
"@gooddata/sdk-backend-spi": "11.13.0-alpha.1",
|
|
69
|
+
"@gooddata/sdk-ui": "11.13.0-alpha.1",
|
|
70
|
+
"@gooddata/sdk-ui-filters": "11.13.0-alpha.1",
|
|
71
|
+
"@gooddata/sdk-ui-charts": "11.13.0-alpha.1",
|
|
72
|
+
"@gooddata/sdk-ui-kit": "11.13.0-alpha.1",
|
|
73
|
+
"@gooddata/sdk-ui-pivot": "11.13.0-alpha.1",
|
|
74
|
+
"@gooddata/sdk-model": "11.13.0-alpha.1",
|
|
75
|
+
"@gooddata/sdk-ui-geo": "11.13.0-alpha.1",
|
|
76
|
+
"@gooddata/sdk-ui-theme-provider": "11.13.0-alpha.1",
|
|
77
|
+
"@gooddata/sdk-ui-vis-commons": "11.13.0-alpha.1",
|
|
78
|
+
"@gooddata/util": "11.13.0-alpha.1"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@gooddata/stylelint-config": "^5.0.0",
|
|
@@ -124,10 +124,10 @@
|
|
|
124
124
|
"typescript": "5.8.3",
|
|
125
125
|
"vitest": "3.2.4",
|
|
126
126
|
"vitest-dom": "0.1.1",
|
|
127
|
-
"@gooddata/eslint-config": "11.
|
|
128
|
-
"@gooddata/
|
|
129
|
-
"@gooddata/
|
|
130
|
-
"@gooddata/sdk-backend-mockingbird": "11.
|
|
127
|
+
"@gooddata/eslint-config": "11.13.0-alpha.1",
|
|
128
|
+
"@gooddata/i18n-toolkit": "11.13.0-alpha.1",
|
|
129
|
+
"@gooddata/reference-workspace": "11.13.0-alpha.1",
|
|
130
|
+
"@gooddata/sdk-backend-mockingbird": "11.13.0-alpha.1"
|
|
131
131
|
},
|
|
132
132
|
"peerDependencies": {
|
|
133
133
|
"react": "^18.0.0 || ^19.0.0",
|