@gooddata/sdk-ui-geo 11.15.0-alpha.0 → 11.15.0-alpha.2
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/core/geoChart/colorStrategy/geoChart.d.ts.map +1 -1
- package/esm/core/geoChart/colorStrategy/geoChart.js.map +1 -1
- package/esm/next/GeoAreaChart.d.ts.map +1 -1
- package/esm/next/GeoAreaChart.js +2 -3
- package/esm/next/GeoAreaChart.js.map +1 -1
- package/esm/next/GeoPushpinChartNext.d.ts.map +1 -1
- package/esm/next/GeoPushpinChartNext.js +2 -3
- package/esm/next/GeoPushpinChartNext.js.map +1 -1
- package/esm/next/components/RenderGeoChartNext.d.ts.map +1 -1
- package/esm/next/components/RenderGeoChartNext.js +1 -1
- package/esm/next/components/RenderGeoChartNext.js.map +1 -1
- package/esm/next/constants/emptyDefaults.d.ts +4 -0
- package/esm/next/constants/emptyDefaults.d.ts.map +1 -1
- package/esm/next/constants/emptyDefaults.js +4 -0
- package/esm/next/constants/emptyDefaults.js.map +1 -1
- package/esm/next/hooks/layers/useLayerClickEvent.d.ts +8 -0
- package/esm/next/hooks/layers/useLayerClickEvent.d.ts.map +1 -0
- package/esm/next/hooks/layers/useLayerClickEvent.js +96 -0
- package/esm/next/hooks/layers/useLayerClickEvent.js.map +1 -0
- package/esm/next/hooks/layers/useLayersData.d.ts.map +1 -1
- package/esm/next/hooks/layers/useLayersData.js +7 -2
- package/esm/next/hooks/layers/useLayersData.js.map +1 -1
- package/esm/next/hooks/layers/useLayersExecutions.d.ts +2 -1
- package/esm/next/hooks/layers/useLayersExecutions.d.ts.map +1 -1
- package/esm/next/hooks/layers/useLayersExecutions.js +3 -3
- package/esm/next/hooks/layers/useLayersExecutions.js.map +1 -1
- package/esm/next/hooks/layers/useLayersPrepare.d.ts.map +1 -1
- package/esm/next/hooks/layers/useLayersPrepare.js +6 -2
- package/esm/next/hooks/layers/useLayersPrepare.js.map +1 -1
- package/esm/next/hooks/layers/useSyncLayersToMap.d.ts +6 -2
- package/esm/next/hooks/layers/useSyncLayersToMap.d.ts.map +1 -1
- package/esm/next/hooks/layers/useSyncLayersToMap.js +3 -1
- package/esm/next/hooks/layers/useSyncLayersToMap.js.map +1 -1
- package/esm/next/hooks/props/useResolvedGeoChartNextProps.d.ts.map +1 -1
- package/esm/next/hooks/props/useResolvedGeoChartNextProps.js +4 -2
- package/esm/next/hooks/props/useResolvedGeoChartNextProps.js.map +1 -1
- package/esm/next/hooks/pushData/useGeoPushData.d.ts.map +1 -1
- package/esm/next/hooks/pushData/useGeoPushData.js +15 -2
- package/esm/next/hooks/pushData/useGeoPushData.js.map +1 -1
- package/esm/next/layers/area/adapter.d.ts.map +1 -1
- package/esm/next/layers/area/adapter.js +12 -6
- package/esm/next/layers/area/adapter.js.map +1 -1
- package/esm/next/layers/area/coloring/colorStrategy.js.map +1 -1
- package/esm/next/layers/area/layers.d.ts +8 -1
- package/esm/next/layers/area/layers.d.ts.map +1 -1
- package/esm/next/layers/area/layers.js +23 -3
- package/esm/next/layers/area/layers.js.map +1 -1
- package/esm/next/layers/area/source.d.ts.map +1 -1
- package/esm/next/layers/area/source.js +76 -22
- package/esm/next/layers/area/source.js.map +1 -1
- package/esm/next/layers/common/constants.d.ts +11 -0
- package/esm/next/layers/common/constants.d.ts.map +1 -0
- package/esm/next/layers/common/constants.js +14 -0
- package/esm/next/layers/common/constants.js.map +1 -0
- package/esm/next/layers/execution/layerInsightFactory.d.ts +25 -0
- package/esm/next/layers/execution/layerInsightFactory.d.ts.map +1 -0
- package/esm/next/layers/execution/layerInsightFactory.js +34 -0
- package/esm/next/layers/execution/layerInsightFactory.js.map +1 -0
- package/esm/next/layers/pushpin/adapter.d.ts.map +1 -1
- package/esm/next/layers/pushpin/adapter.js +12 -6
- package/esm/next/layers/pushpin/adapter.js.map +1 -1
- package/esm/next/layers/pushpin/coloring/colorStrategy.js.map +1 -1
- package/esm/next/layers/registry/adapterTypes.d.ts +19 -2
- package/esm/next/layers/registry/adapterTypes.d.ts.map +1 -1
- package/esm/next/map/MapController.d.ts +3 -2
- package/esm/next/map/MapController.d.ts.map +1 -1
- package/esm/next/map/MapController.js +4 -3
- package/esm/next/map/MapController.js.map +1 -1
- package/esm/next/types/layers/index.d.ts +6 -2
- package/esm/next/types/layers/index.d.ts.map +1 -1
- package/esm/next/types/layers/index.js.map +1 -1
- package/esm/next/types/props/areaChart/public.d.ts +3 -42
- package/esm/next/types/props/areaChart/public.d.ts.map +1 -1
- package/esm/next/types/props/geoChartNext/public.d.ts +2 -29
- package/esm/next/types/props/geoChartNext/public.d.ts.map +1 -1
- package/esm/next/types/props/pushpinChart/public.d.ts +3 -42
- package/esm/next/types/props/pushpinChart/public.d.ts.map +1 -1
- package/esm/next/types/props/shared.d.ts +69 -0
- package/esm/next/types/props/shared.d.ts.map +1 -0
- package/esm/next/types/props/shared.js +3 -0
- package/esm/next/types/props/shared.js.map +1 -0
- package/esm/next/utils/fingerprint.d.ts +18 -0
- package/esm/next/utils/fingerprint.d.ts.map +1 -1
- package/esm/next/utils/fingerprint.js +49 -0
- package/esm/next/utils/fingerprint.js.map +1 -1
- package/package.json +9 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MapController.d.ts","sourceRoot":"","sources":["../../../src/next/map/MapController.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAEnE,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"MapController.d.ts","sourceRoot":"","sources":["../../../src/next/map/MapController.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAEnE,OAAO,EAAE,KAAK,WAAW,E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
|
|
12
12
|
* Centralized map controller that wires up map initialization, resize handling,
|
|
13
13
|
* interaction callbacks, layer synchronization, and after-render signalling.
|
|
14
14
|
*/
|
|
15
|
-
export function MapController({ mapContainerRef, chartContainerRect, initialViewport, layerExecutions, drillablePredicates, onCenterPositionChanged, onZoomChanged, afterRender, config, backend, }) {
|
|
15
|
+
export function MapController({ mapContainerRef, chartContainerRect, initialViewport, layerExecutions, drillablePredicates, onCenterPositionChanged, onZoomChanged, onDrill, afterRender, config, backend, }) {
|
|
16
16
|
const { map, tooltip, isMapReady } = useMapInitialization(mapContainerRef, config, initialViewport, backend);
|
|
17
17
|
const adapterContext = useGeoAdapterContext();
|
|
18
18
|
const runtimeValue = useMemo(() => ({
|
|
@@ -21,9 +21,9 @@ export function MapController({ mapContainerRef, chartContainerRect, initialView
|
|
|
21
21
|
isMapReady,
|
|
22
22
|
adapterContext,
|
|
23
23
|
}), [map, tooltip, isMapReady, adapterContext]);
|
|
24
|
-
return (_jsx(MapRuntimeProvider, { value: runtimeValue, children: _jsx(MapLifecycleEffects, { chartContainerRect: chartContainerRect, initialViewport: initialViewport, layerExecutions: layerExecutions, drillablePredicates: drillablePredicates, onCenterPositionChanged: onCenterPositionChanged, onZoomChanged: onZoomChanged, afterRender: afterRender }) }));
|
|
24
|
+
return (_jsx(MapRuntimeProvider, { value: runtimeValue, children: _jsx(MapLifecycleEffects, { chartContainerRect: chartContainerRect, initialViewport: initialViewport, layerExecutions: layerExecutions, drillablePredicates: drillablePredicates, onCenterPositionChanged: onCenterPositionChanged, onZoomChanged: onZoomChanged, onDrill: onDrill, afterRender: afterRender }) }));
|
|
25
25
|
}
|
|
26
|
-
function MapLifecycleEffects({ chartContainerRect, initialViewport, layerExecutions, drillablePredicates, onCenterPositionChanged, onZoomChanged, afterRender, }) {
|
|
26
|
+
function MapLifecycleEffects({ chartContainerRect, initialViewport, layerExecutions, drillablePredicates, onCenterPositionChanged, onZoomChanged, onDrill, afterRender, }) {
|
|
27
27
|
const { map, isMapReady } = useMapRuntime();
|
|
28
28
|
useMapResize(map, isMapReady, chartContainerRect, initialViewport);
|
|
29
29
|
useMapCallbacks(map, {
|
|
@@ -32,6 +32,7 @@ function MapLifecycleEffects({ chartContainerRect, initialViewport, layerExecuti
|
|
|
32
32
|
});
|
|
33
33
|
useSyncLayersToMap({
|
|
34
34
|
drillablePredicates,
|
|
35
|
+
onDrill,
|
|
35
36
|
});
|
|
36
37
|
useAfterRender(map, afterRender, layerExecutions);
|
|
37
38
|
return null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MapController.js","sourceRoot":"","sources":["../../../src/next/map/MapController.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAEhC,OAAO,EAAqC,OAAO,EAAE,MAAM,OAAO,CAAC;AAOnE,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AACpF,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"MapController.js","sourceRoot":"","sources":["../../../src/next/map/MapController.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAEhC,OAAO,EAAqC,OAAO,EAAE,MAAM,OAAO,CAAC;AAOnE,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AACpF,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CA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AAG,EAAE,UAAU,EAAE,kBAAkB,EAAE,eAAe,CAAC,CAAC;IAEnE,eAAe,CAAC,GAAG,EAAE;QACjB,uBAAuB;QACvB,aAAa;KAChB,CAAC,CAAC;IAEH,kBAAkB,CAAC;QACf,mBAAmB;QACnB,OAAO;KACV,CAAC,CAAC;IAEH,cAAc,CAAC,GAAG,EAAE,WAAW,EAAE,eAAe,CAAC,CAAC;IAElD,OAAO,IAAI,CAAC;AAChB,CAAC"}
|
|
@@ -74,8 +74,12 @@ export interface IGeoLayerBase {
|
|
|
74
74
|
*
|
|
75
75
|
* @remarks
|
|
76
76
|
* Array of filters applied only to this layer's data execution.
|
|
77
|
-
*
|
|
78
|
-
*
|
|
77
|
+
*
|
|
78
|
+
* These filters are applied **before** any global/component-level filters (e.g. `GeoChartNext.filters`).
|
|
79
|
+
* When both layer and global filters are provided, the global filters are applied *after* the layer
|
|
80
|
+
* filters and therefore take precedence for filter types with “last wins” merge rules (for example
|
|
81
|
+
* date filters for the same date dataset or measure value filters for the same measure). Other filter
|
|
82
|
+
* types may accumulate according to SDK merge semantics.
|
|
79
83
|
*/
|
|
80
84
|
filters?: INullableFilter[];
|
|
81
85
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/next/types/layers/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,SAAS,EACjB,MAAM,qBAAqB,CAAC;AAE7B;;;;;;;;;GASG;AACH,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,MAAM,CAAC;AAE9C;;;;;;;;;GASG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;;;OAMG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;;;OAMG;IACH,IAAI,EAAE,YAAY,CAAC;IAEnB;;;;;;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U,CAAC;CACpB;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,SAAS,GAAG,gBAAgB,GAAG,aAAa,CAAC;AAEzD;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,SAAS,GAAG,KAAK,IAAI,gBAAgB,CAE7E;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,SAAS,GAAG,KAAK,IAAI,aAAa,CAEvE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/next/types/layers/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/next/types/layers/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAgNhC;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,iBAAiB,CAAC,KAAgB;IAC9C,OAAO,KAAK,CAAC,IAAI,KAAK,SAAS,CAAC;AACpC,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,cAAc,CAAC,KAAgB;IAC3C,OAAO,KAAK,CAAC,IAAI,KAAK,MAAM,CAAC;AACjC,CAAC"}
|
|
@@ -1,23 +1,12 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type IAttribute, type IAttributeOrMeasure, type IExecutionConfig, type INullableFilter, type ISortItem, type ITheme } from "@gooddata/sdk-model";
|
|
3
|
-
import { type IVisualizationCallbacks, type IVisualizationProps } from "@gooddata/sdk-ui";
|
|
4
|
-
import { type CenterPositionChangedCallback, type ZoomChangedCallback } from "../../common/callbacks.js";
|
|
1
|
+
import { type IAttribute, type IAttributeOrMeasure } from "@gooddata/sdk-model";
|
|
5
2
|
import { type IGeoAreaChartConfig } from "../../config/areaChart.js";
|
|
6
|
-
import { type
|
|
3
|
+
import { type IGeoSingleLayerWrapperProps } from "../shared.js";
|
|
7
4
|
/**
|
|
8
5
|
* Shared props for {@link GeoAreaChart} before the required area attribute is applied.
|
|
9
6
|
*
|
|
10
7
|
* @alpha
|
|
11
8
|
*/
|
|
12
|
-
export interface IGeoAreaChartBaseProps extends
|
|
13
|
-
/**
|
|
14
|
-
* Backend used for data execution. Falls back to BackendProvider.
|
|
15
|
-
*/
|
|
16
|
-
backend?: IAnalyticalBackend;
|
|
17
|
-
/**
|
|
18
|
-
* Workspace identifier. Falls back to WorkspaceProvider.
|
|
19
|
-
*/
|
|
20
|
-
workspace?: string;
|
|
9
|
+
export interface IGeoAreaChartBaseProps extends IGeoSingleLayerWrapperProps {
|
|
21
10
|
/**
|
|
22
11
|
* Measure or attribute used for color encoding.
|
|
23
12
|
*/
|
|
@@ -26,38 +15,10 @@ export interface IGeoAreaChartBaseProps extends IVisualizationProps, IVisualizat
|
|
|
26
15
|
* Optional segment attribute that drives category legend items.
|
|
27
16
|
*/
|
|
28
17
|
segmentBy?: IAttribute;
|
|
29
|
-
/**
|
|
30
|
-
* Filters applied to the execution.
|
|
31
|
-
*/
|
|
32
|
-
filters?: INullableFilter[];
|
|
33
|
-
/**
|
|
34
|
-
* Sorting applied to the execution definition.
|
|
35
|
-
*/
|
|
36
|
-
sortBy?: ISortItem[];
|
|
37
|
-
/**
|
|
38
|
-
* Theme override. Defaults to ThemeProvider.
|
|
39
|
-
*/
|
|
40
|
-
theme?: ITheme;
|
|
41
18
|
/**
|
|
42
19
|
* Configuration specific to area layers.
|
|
43
20
|
*/
|
|
44
21
|
config?: IGeoAreaChartConfig;
|
|
45
|
-
/**
|
|
46
|
-
* Additional execution configuration forwarded to backend.
|
|
47
|
-
*/
|
|
48
|
-
execConfig?: IExecutionConfig;
|
|
49
|
-
/**
|
|
50
|
-
* Callback fired when map center changes.
|
|
51
|
-
*/
|
|
52
|
-
onCenterPositionChanged?: CenterPositionChangedCallback;
|
|
53
|
-
/**
|
|
54
|
-
* Callback fired when zoom level changes.
|
|
55
|
-
*/
|
|
56
|
-
onZoomChanged?: ZoomChangedCallback;
|
|
57
|
-
/**
|
|
58
|
-
* Layers rendered after the primary area layer (e.g., pushpins).
|
|
59
|
-
*/
|
|
60
|
-
additionalLayers?: IGeoLayer[];
|
|
61
22
|
}
|
|
62
23
|
/**
|
|
63
24
|
* Props for {@link GeoAreaChart}. The `area` attribute is required.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../../../src/next/types/props/areaChart/public.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../../../src/next/types/props/areaChart/public.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAEhF,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAEhE;;;;GAIG;AACH,MAAM,WAAW,sBAAuB,SAAQ,2BAA2B;IACvE;;OAEG;IACH,KAAK,CAAC,EAAE,mBAAmB,CAAC;IAE5B;;OAEG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC;IAEvB;;OAEG;IACH,MAAM,CAAC,EAAE,mBAAmB,CAAC;CAChC;AAED;;;;GAIG;AACH,MAAM,WAAW,kBAAmB,SAAQ,sBAAsB;IAC9D;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;CACpB"}
|
|
@@ -1,50 +1,23 @@
|
|
|
1
|
-
import { type IAnalyticalBackend } from "@gooddata/sdk-backend-spi";
|
|
2
|
-
import { type IExecutionConfig, type ITheme } from "@gooddata/sdk-model";
|
|
3
|
-
import { type IVisualizationCallbacks, type IVisualizationProps } from "@gooddata/sdk-ui";
|
|
4
|
-
import { type CenterPositionChangedCallback, type ZoomChangedCallback } from "../../common/callbacks.js";
|
|
5
1
|
import { type IGeoChartNextConfig } from "../../config/unified.js";
|
|
6
2
|
import { type GeoLayerType, type IGeoLayer } from "../../layers/index.js";
|
|
3
|
+
import { type IGeoCommonExecutionProps } from "../shared.js";
|
|
7
4
|
/**
|
|
8
5
|
* Props for {@link GeoChartNext}.
|
|
9
6
|
*
|
|
10
7
|
* @alpha
|
|
11
8
|
*/
|
|
12
|
-
export interface IGeoChartNextProps extends
|
|
9
|
+
export interface IGeoChartNextProps extends IGeoCommonExecutionProps {
|
|
13
10
|
/**
|
|
14
11
|
* Visualization type reported through pushData callbacks. Defaults to the primary layer type.
|
|
15
12
|
*/
|
|
16
13
|
type?: GeoLayerType;
|
|
17
|
-
/**
|
|
18
|
-
* Backend used for data execution. Falls back to BackendProvider when omitted.
|
|
19
|
-
*/
|
|
20
|
-
backend?: IAnalyticalBackend;
|
|
21
|
-
/**
|
|
22
|
-
* Workspace identifier. Falls back to WorkspaceProvider when omitted.
|
|
23
|
-
*/
|
|
24
|
-
workspace?: string;
|
|
25
14
|
/**
|
|
26
15
|
* Array of layer definitions rendered in order. The first layer drives legends and drilling.
|
|
27
16
|
*/
|
|
28
17
|
layers: IGeoLayer[];
|
|
29
|
-
/**
|
|
30
|
-
* Theme override. Defaults to the nearest ThemeProvider.
|
|
31
|
-
*/
|
|
32
|
-
theme?: ITheme;
|
|
33
18
|
/**
|
|
34
19
|
* Unified configuration shared by all layers.
|
|
35
20
|
*/
|
|
36
21
|
config?: IGeoChartNextConfig;
|
|
37
|
-
/**
|
|
38
|
-
* Additional execution configuration forwarded to backend.
|
|
39
|
-
*/
|
|
40
|
-
execConfig?: IExecutionConfig;
|
|
41
|
-
/**
|
|
42
|
-
* Callback fired when the map center changes.
|
|
43
|
-
*/
|
|
44
|
-
onCenterPositionChanged?: CenterPositionChangedCallback;
|
|
45
|
-
/**
|
|
46
|
-
* Callback fired when map zoom changes.
|
|
47
|
-
*/
|
|
48
|
-
onZoomChanged?: ZoomChangedCallback;
|
|
49
22
|
}
|
|
50
23
|
//# sourceMappingURL=public.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../../../src/next/types/props/geoChartNext/public.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../../../src/next/types/props/geoChartNext/public.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC1E,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAE7D;;;;GAIG;AACH,MAAM,WAAW,kBAAmB,SAAQ,wBAAwB;IAChE;;OAEG;IACH,IAAI,CAAC,EAAE,YAAY,CAAC;IAEpB;;OAEG;IACH,MAAM,EAAE,SAAS,EAAE,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,mBAAmB,CAAC;CAGhC"}
|
|
@@ -1,23 +1,12 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type IAttribute, type IAttributeOrMeasure, type IExecutionConfig, type INullableFilter, type ISortItem, type ITheme } from "@gooddata/sdk-model";
|
|
3
|
-
import { type IVisualizationCallbacks, type IVisualizationProps } from "@gooddata/sdk-ui";
|
|
4
|
-
import { type CenterPositionChangedCallback, type ZoomChangedCallback } from "../../common/callbacks.js";
|
|
1
|
+
import { type IAttribute, type IAttributeOrMeasure } from "@gooddata/sdk-model";
|
|
5
2
|
import { type IGeoPushpinChartNextConfig } from "../../config/pushpinChart.js";
|
|
6
|
-
import { type
|
|
3
|
+
import { type IGeoSingleLayerWrapperProps } from "../shared.js";
|
|
7
4
|
/**
|
|
8
5
|
* Shared props for {@link GeoPushpinChartNext} before latitude/longitude are applied.
|
|
9
6
|
*
|
|
10
7
|
* @alpha
|
|
11
8
|
*/
|
|
12
|
-
export interface IGeoPushpinChartNextBaseProps extends
|
|
13
|
-
/**
|
|
14
|
-
* Backend used for data execution. Falls back to BackendProvider.
|
|
15
|
-
*/
|
|
16
|
-
backend?: IAnalyticalBackend;
|
|
17
|
-
/**
|
|
18
|
-
* Workspace identifier. Falls back to WorkspaceProvider.
|
|
19
|
-
*/
|
|
20
|
-
workspace?: string;
|
|
9
|
+
export interface IGeoPushpinChartNextBaseProps extends IGeoSingleLayerWrapperProps {
|
|
21
10
|
/**
|
|
22
11
|
* Optional segment attribute that drives category legend items.
|
|
23
12
|
*/
|
|
@@ -30,38 +19,10 @@ export interface IGeoPushpinChartNextBaseProps extends IVisualizationProps, IVis
|
|
|
30
19
|
* Measure or attribute used for color encoding.
|
|
31
20
|
*/
|
|
32
21
|
color?: IAttributeOrMeasure;
|
|
33
|
-
/**
|
|
34
|
-
* Filters applied to every layer execution.
|
|
35
|
-
*/
|
|
36
|
-
filters?: INullableFilter[];
|
|
37
|
-
/**
|
|
38
|
-
* Sorting applied to the execution definition.
|
|
39
|
-
*/
|
|
40
|
-
sortBy?: ISortItem[];
|
|
41
|
-
/**
|
|
42
|
-
* Theme override. Defaults to ThemeProvider.
|
|
43
|
-
*/
|
|
44
|
-
theme?: ITheme;
|
|
45
22
|
/**
|
|
46
23
|
* Configuration specific to pushpin layers.
|
|
47
24
|
*/
|
|
48
25
|
config?: IGeoPushpinChartNextConfig;
|
|
49
|
-
/**
|
|
50
|
-
* Additional execution configuration forwarded to backend.
|
|
51
|
-
*/
|
|
52
|
-
execConfig?: IExecutionConfig;
|
|
53
|
-
/**
|
|
54
|
-
* Callback fired when map center changes.
|
|
55
|
-
*/
|
|
56
|
-
onCenterPositionChanged?: CenterPositionChangedCallback;
|
|
57
|
-
/**
|
|
58
|
-
* Callback fired when zoom level changes.
|
|
59
|
-
*/
|
|
60
|
-
onZoomChanged?: ZoomChangedCallback;
|
|
61
|
-
/**
|
|
62
|
-
* Layers rendered after the primary pushpin layer (e.g., additional overlays).
|
|
63
|
-
*/
|
|
64
|
-
additionalLayers?: IGeoLayer[];
|
|
65
26
|
}
|
|
66
27
|
/**
|
|
67
28
|
* Props for {@link GeoPushpinChartNext}. Latitude and longitude are required.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../../../src/next/types/props/pushpinChart/public.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../../../src/next/types/props/pushpinChart/public.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAEhF,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAEhE;;;;GAIG;AACH,MAAM,WAAW,6BAA8B,SAAQ,2BAA2B;IAC9E;;OAEG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC;IAEvB;;OAEG;IACH,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAE3B;;OAEG;IACH,KAAK,CAAC,EAAE,mBAAmB,CAAC;IAE5B;;OAEG;IACH,MAAM,CAAC,EAAE,0BAA0B,CAAC;CACvC;AAED;;;;GAIG;AACH,MAAM,WAAW,yBAA0B,SAAQ,6BAA6B;IAC5E;;OAEG;IACH,QAAQ,EAAE,UAAU,CAAC;IAErB;;OAEG;IACH,SAAS,EAAE,UAAU,CAAC;CACzB"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { type IAnalyticalBackend } from "@gooddata/sdk-backend-spi";
|
|
2
|
+
import { type IExecutionConfig, type INullableFilter, type ISortItem, type ITheme } from "@gooddata/sdk-model";
|
|
3
|
+
import { type IVisualizationCallbacks, type IVisualizationProps } from "@gooddata/sdk-ui";
|
|
4
|
+
import { type CenterPositionChangedCallback, type ZoomChangedCallback } from "../common/callbacks.js";
|
|
5
|
+
import { type IGeoLayer } from "../layers/index.js";
|
|
6
|
+
/**
|
|
7
|
+
* Common execution/host wiring props shared by all GeoChartNext-family components.
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* This type is intended for internal composition of public props interfaces and is **not** exported
|
|
11
|
+
* from `@gooddata/sdk-ui-geo/next` entrypoint.
|
|
12
|
+
*
|
|
13
|
+
* @alpha
|
|
14
|
+
*/
|
|
15
|
+
export interface IGeoCommonExecutionProps extends IVisualizationProps, IVisualizationCallbacks {
|
|
16
|
+
/**
|
|
17
|
+
* Backend used for data execution. Falls back to BackendProvider when omitted.
|
|
18
|
+
*/
|
|
19
|
+
backend?: IAnalyticalBackend;
|
|
20
|
+
/**
|
|
21
|
+
* Workspace identifier. Falls back to WorkspaceProvider when omitted.
|
|
22
|
+
*/
|
|
23
|
+
workspace?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Filters applied to every layer execution.
|
|
26
|
+
*
|
|
27
|
+
* @remarks
|
|
28
|
+
* These filters are treated as **global** for the whole geo visualization:
|
|
29
|
+
* - They apply to the primary layer and to all additional layer executions.
|
|
30
|
+
* - Layer-specific filters (`IGeoLayer.filters`) are still supported.
|
|
31
|
+
* - When both are provided, these **global** filters are applied *after* layer filters and therefore
|
|
32
|
+
* take precedence for filter types with “last wins” merge rules (e.g. date filters for the same
|
|
33
|
+
* date dataset, measure value filters for the same measure). Other filter types may accumulate
|
|
34
|
+
* according to SDK merge semantics.
|
|
35
|
+
*/
|
|
36
|
+
filters?: INullableFilter[];
|
|
37
|
+
/**
|
|
38
|
+
* Theme override. Defaults to the nearest ThemeProvider.
|
|
39
|
+
*/
|
|
40
|
+
theme?: ITheme;
|
|
41
|
+
/**
|
|
42
|
+
* Additional execution configuration forwarded to backend.
|
|
43
|
+
*/
|
|
44
|
+
execConfig?: IExecutionConfig;
|
|
45
|
+
/**
|
|
46
|
+
* Callback fired when the map center changes.
|
|
47
|
+
*/
|
|
48
|
+
onCenterPositionChanged?: CenterPositionChangedCallback;
|
|
49
|
+
/**
|
|
50
|
+
* Callback fired when map zoom changes.
|
|
51
|
+
*/
|
|
52
|
+
onZoomChanged?: ZoomChangedCallback;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Shared props for wrappers that internally construct a primary layer and allow extra layers.
|
|
56
|
+
*
|
|
57
|
+
* @alpha
|
|
58
|
+
*/
|
|
59
|
+
export interface IGeoSingleLayerWrapperProps extends IGeoCommonExecutionProps {
|
|
60
|
+
/**
|
|
61
|
+
* Sorting applied to the **primary layer** execution definition.
|
|
62
|
+
*/
|
|
63
|
+
sortBy?: ISortItem[];
|
|
64
|
+
/**
|
|
65
|
+
* Layers rendered after the primary layer (e.g., overlays).
|
|
66
|
+
*/
|
|
67
|
+
additionalLayers?: IGeoLayer[];
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/next/types/props/shared.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EACH,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,MAAM,EACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,uBAAuB,EAAE,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE1F,OAAO,EAAE,KAAK,6BAA6B,EAAE,KAAK,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AACtG,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD;;;;;;;;GAQG;AACH,MAAM,WAAW,wBAAyB,SAAQ,mBAAmB,EAAE,uBAAuB;IAC1F;;OAEG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAE7B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,EAAE,eAAe,EAAE,CAAC;IAE5B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAE9B;;OAEG;IACH,uBAAuB,CAAC,EAAE,6BAA6B,CAAC;IAExD;;OAEG;IACH,aAAa,CAAC,EAAE,mBAAmB,CAAC;CACvC;AAED;;;;GAIG;AACH,MAAM,WAAW,2BAA4B,SAAQ,wBAAwB;IACzE;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC;IAErB;;OAEG;IACH,gBAAgB,CAAC,EAAE,SAAS,EAAE,CAAC;CAClC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../../src/next/types/props/shared.ts"],"names":[],"mappings":"AAAA,gCAAgC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DataViewFacade } from "@gooddata/sdk-ui";
|
|
2
|
+
import type { ILayerExecutionRecord } from "../types/props/geoChartNext/internal.js";
|
|
2
3
|
/**
|
|
3
4
|
* Sentinel value indicating data is not ready for fingerprinting.
|
|
4
5
|
*
|
|
@@ -36,4 +37,21 @@ export declare function createExecutionsFingerprint(layerExecutions: Array<{
|
|
|
36
37
|
fingerprint(): string;
|
|
37
38
|
};
|
|
38
39
|
}>): string;
|
|
40
|
+
/**
|
|
41
|
+
* Creates a fingerprint from layer execution records that captures bucket structure.
|
|
42
|
+
*
|
|
43
|
+
* @remarks
|
|
44
|
+
* Unlike `createExecutionsFingerprint` which uses the execution fingerprint (based on
|
|
45
|
+
* measures, dimensions, filters), this function captures the bucket structure.
|
|
46
|
+
*
|
|
47
|
+
* This is needed because moving a measure between buckets (e.g., from COLOR to SIZE)
|
|
48
|
+
* doesn't change the execution fingerprint (same measures, same dimensions), but
|
|
49
|
+
* it does change how the data should be interpreted and rendered.
|
|
50
|
+
*
|
|
51
|
+
* @param layerExecutions - Array of layer execution records
|
|
52
|
+
* @returns A stable string fingerprint based on bucket structure
|
|
53
|
+
*
|
|
54
|
+
* @internal
|
|
55
|
+
*/
|
|
56
|
+
export declare function createLayersStructureFingerprint(layerExecutions: ILayerExecutionRecord[]): string;
|
|
39
57
|
//# sourceMappingURL=fingerprint.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fingerprint.d.ts","sourceRoot":"","sources":["../../../src/next/utils/fingerprint.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fingerprint.d.ts","sourceRoot":"","sources":["../../../src/next/utils/fingerprint.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAErF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,kBAAkB,CAAC;AAErD;;;;;;;;;;;;GAYG;AACH,wBAAgB,0BAA0B,CACtC,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,EAC3C,OAAO,EAAE,OAAO,GACjB,MAAM,CAQR;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,2BAA2B,CACvC,eAAe,EAAE,KAAK,CAAC;IAAE,SAAS,EAAE;QAAE,WAAW,IAAI,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC,GACjE,MAAM,CAER;AA2BD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,gCAAgC,CAAC,eAAe,EAAE,qBAAqB,EAAE,GAAG,MAAM,CAQjG"}
|
|
@@ -41,4 +41,53 @@ export function createDataViewsFingerprint(layerDataViews, isReady) {
|
|
|
41
41
|
export function createExecutionsFingerprint(layerExecutions) {
|
|
42
42
|
return layerExecutions.map((le) => le.execution.fingerprint()).join("|");
|
|
43
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* Creates a fingerprint from a bucket's structure.
|
|
46
|
+
*
|
|
47
|
+
* @remarks
|
|
48
|
+
* Captures the bucket's localIdentifier and the localIdentifiers of its items.
|
|
49
|
+
* This detects when items are moved between buckets (e.g., measure from COLOR to SIZE).
|
|
50
|
+
*
|
|
51
|
+
* @param bucket - The bucket to fingerprint
|
|
52
|
+
* @returns A string representing the bucket's structure
|
|
53
|
+
*
|
|
54
|
+
* @internal
|
|
55
|
+
*/
|
|
56
|
+
function bucketStructureFingerprint(bucket) {
|
|
57
|
+
const itemIds = bucket.items.map((item) => {
|
|
58
|
+
if ("measure" in item) {
|
|
59
|
+
return `m:${item.measure.localIdentifier}`;
|
|
60
|
+
}
|
|
61
|
+
if ("attribute" in item) {
|
|
62
|
+
return `a:${item.attribute.localIdentifier}`;
|
|
63
|
+
}
|
|
64
|
+
return "unknown";
|
|
65
|
+
});
|
|
66
|
+
return `${bucket.localIdentifier}[${itemIds.join(",")}]`;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Creates a fingerprint from layer execution records that captures bucket structure.
|
|
70
|
+
*
|
|
71
|
+
* @remarks
|
|
72
|
+
* Unlike `createExecutionsFingerprint` which uses the execution fingerprint (based on
|
|
73
|
+
* measures, dimensions, filters), this function captures the bucket structure.
|
|
74
|
+
*
|
|
75
|
+
* This is needed because moving a measure between buckets (e.g., from COLOR to SIZE)
|
|
76
|
+
* doesn't change the execution fingerprint (same measures, same dimensions), but
|
|
77
|
+
* it does change how the data should be interpreted and rendered.
|
|
78
|
+
*
|
|
79
|
+
* @param layerExecutions - Array of layer execution records
|
|
80
|
+
* @returns A stable string fingerprint based on bucket structure
|
|
81
|
+
*
|
|
82
|
+
* @internal
|
|
83
|
+
*/
|
|
84
|
+
export function createLayersStructureFingerprint(layerExecutions) {
|
|
85
|
+
return layerExecutions
|
|
86
|
+
.map((le) => {
|
|
87
|
+
const buckets = le.execution.definition.buckets;
|
|
88
|
+
const bucketFingerprints = buckets.map(bucketStructureFingerprint).join(";");
|
|
89
|
+
return `${le.layerId}:{${bucketFingerprints}}`;
|
|
90
|
+
})
|
|
91
|
+
.join("|");
|
|
92
|
+
}
|
|
44
93
|
//# sourceMappingURL=fingerprint.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fingerprint.js","sourceRoot":"","sources":["../../../src/next/utils/fingerprint.ts"],"names":[],"mappings":"AAAA,gCAAgC;
|
|
1
|
+
{"version":3,"file":"fingerprint.js","sourceRoot":"","sources":["../../../src/next/utils/fingerprint.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAOhC;;;;GAIG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,eAAe,CAAC;AAErD;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,0BAA0B,CACtC,cAA2C,EAC3C,OAAgB;IAEhB,IAAI,CAAC,OAAO,EAAE,CAAC;QACX,OAAO,qBAAqB,CAAC;IACjC,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,CAAC;SACtC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC;SAC9C,IAAI,CAAC,GAAG,CAAC,CAAC;AACnB,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,2BAA2B,CACvC,eAAgE;IAEhE,OAAO,eAAe,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7E,CAAC;AAED;;;;;;;;;;;GAWG;AACH,SAAS,0BAA0B,CAAC,MAAe;IAC/C,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACtC,IAAI,SAAS,IAAI,IAAI,EAAE,CAAC;YACpB,OAAO,KAAK,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,CAAC;QAC/C,CAAC;QACD,IAAI,WAAW,IAAI,IAAI,EAAE,CAAC;YACtB,OAAO,KAAK,IAAI,CAAC,SAAS,CAAC,eAAe,EAAE,CAAC;QACjD,CAAC;QACD,OAAO,SAAS,CAAC;IACrB,CAAC,CAAC,CAAC;IACH,OAAO,GAAG,MAAM,CAAC,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC;AAC7D,CAAC;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,gCAAgC,CAAC,eAAwC;IACrF,OAAO,eAAe;SACjB,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE;QACR,MAAM,OAAO,GAAG,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC;QAChD,MAAM,kBAAkB,GAAG,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC7E,OAAO,GAAG,EAAE,CAAC,OAAO,KAAK,kBAAkB,GAAG,CAAC;IACnD,CAAC,CAAC;SACD,IAAI,CAAC,GAAG,CAAC,CAAC;AACnB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-geo",
|
|
3
|
-
"version": "11.15.0-alpha.
|
|
3
|
+
"version": "11.15.0-alpha.2",
|
|
4
4
|
"description": "GoodData.UI SDK - Geo Charts",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"ts-invariant": "^0.7.5",
|
|
44
44
|
"tslib": "2.8.1",
|
|
45
45
|
"uuid": "^11.1.0",
|
|
46
|
-
"@gooddata/sdk-
|
|
47
|
-
"@gooddata/sdk-ui": "11.15.0-alpha.
|
|
48
|
-
"@gooddata/sdk-
|
|
49
|
-
"@gooddata/sdk-ui-kit": "11.15.0-alpha.
|
|
50
|
-
"@gooddata/sdk-ui-
|
|
51
|
-
"@gooddata/sdk-
|
|
46
|
+
"@gooddata/sdk-ui": "11.15.0-alpha.2",
|
|
47
|
+
"@gooddata/sdk-ui-theme-provider": "11.15.0-alpha.2",
|
|
48
|
+
"@gooddata/sdk-backend-spi": "11.15.0-alpha.2",
|
|
49
|
+
"@gooddata/sdk-ui-kit": "11.15.0-alpha.2",
|
|
50
|
+
"@gooddata/sdk-ui-vis-commons": "11.15.0-alpha.2",
|
|
51
|
+
"@gooddata/sdk-model": "11.15.0-alpha.2"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@gooddata/stylelint-config": "^5.0.0",
|
|
@@ -92,8 +92,8 @@
|
|
|
92
92
|
"typescript": "5.8.3",
|
|
93
93
|
"vitest": "3.2.4",
|
|
94
94
|
"vitest-dom": "0.1.1",
|
|
95
|
-
"@gooddata/eslint-config": "11.15.0-alpha.
|
|
96
|
-
"@gooddata/sdk-backend-mockingbird": "11.15.0-alpha.
|
|
95
|
+
"@gooddata/eslint-config": "11.15.0-alpha.2",
|
|
96
|
+
"@gooddata/sdk-backend-mockingbird": "11.15.0-alpha.2"
|
|
97
97
|
},
|
|
98
98
|
"peerDependencies": {
|
|
99
99
|
"react": "^18.0.0 || ^19.0.0",
|