@dynatrace/strato-geo 3.5.2 → 3.6.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/map/components/BubbleLayer/BubbleLayer.js +10 -2
- package/esm/map/components/BubbleLayer/BubbleLayer.js.map +2 -2
- package/esm/map/components/BubbleLayer/BubbleLayerTooltip.js +9 -3
- package/esm/map/components/BubbleLayer/BubbleLayerTooltip.js.map +2 -2
- package/esm/map/components/ChoroplethLayer/ChoroplethLayer.js +10 -5
- package/esm/map/components/ChoroplethLayer/ChoroplethLayer.js.map +2 -2
- package/esm/map/components/ChoroplethLayer/ChoroplethLayerTooltip.js +9 -3
- package/esm/map/components/ChoroplethLayer/ChoroplethLayerTooltip.js.map +2 -2
- package/esm/map/components/ConnectionLayer/ConnectionLayer.js +10 -5
- package/esm/map/components/ConnectionLayer/ConnectionLayer.js.map +2 -2
- package/esm/map/components/ConnectionLayer/ConnectionLayerTooltip.js +9 -3
- package/esm/map/components/ConnectionLayer/ConnectionLayerTooltip.js.map +2 -2
- package/esm/map/components/DotLayer/DotLayer.js +8 -2
- package/esm/map/components/DotLayer/DotLayer.js.map +2 -2
- package/esm/map/components/DotLayer/DotLayerTooltip.js +9 -3
- package/esm/map/components/DotLayer/DotLayerTooltip.js.map +2 -2
- package/esm/map/contexts/map-view-provider.context.js +9 -0
- package/esm/map/contexts/map-view-provider.context.js.map +7 -0
- package/esm/map/hooks/use-load-map-base-layer.js +13 -3
- package/esm/map/hooks/use-load-map-base-layer.js.map +2 -2
- package/esm/map/hooks/use-map-view-provider-context.js +7 -0
- package/esm/map/hooks/use-map-view-provider-context.js.map +7 -0
- package/esm/map/hooks/use-tooltip-template.js +17 -2
- package/esm/map/hooks/use-tooltip-template.js.map +2 -2
- package/esm/map/index.js +2 -0
- package/esm/map/index.js.map +2 -2
- package/esm/map/providers/map-view.provider.js +18 -0
- package/esm/map/providers/map-view.provider.js.map +7 -0
- package/esm/map/types/map-view-provider.js +1 -0
- package/esm/map/types/map-view-provider.js.map +7 -0
- package/esm/map/utils/fetch-base-layer-features.js +1 -1
- package/esm/map/utils/fetch-base-layer-features.js.map +2 -2
- package/map/components/BubbleLayer/BubbleLayer.js +10 -2
- package/map/components/BubbleLayer/BubbleLayerTooltip.d.ts +2 -0
- package/map/components/BubbleLayer/BubbleLayerTooltip.js +9 -3
- package/map/components/ChoroplethLayer/ChoroplethLayer.js +10 -5
- package/map/components/ChoroplethLayer/ChoroplethLayerTooltip.d.ts +2 -0
- package/map/components/ChoroplethLayer/ChoroplethLayerTooltip.js +9 -3
- package/map/components/ConnectionLayer/ConnectionLayer.js +10 -5
- package/map/components/ConnectionLayer/ConnectionLayerTooltip.d.ts +2 -0
- package/map/components/ConnectionLayer/ConnectionLayerTooltip.js +9 -3
- package/map/components/DotLayer/DotLayer.js +8 -2
- package/map/components/DotLayer/DotLayerTooltip.d.ts +2 -0
- package/map/components/DotLayer/DotLayerTooltip.js +9 -3
- package/map/contexts/map-view-provider.context.d.ts +2 -0
- package/map/contexts/map-view-provider.context.js +28 -0
- package/map/hooks/use-load-map-base-layer.js +13 -3
- package/map/hooks/use-map-view-provider-context.d.ts +1 -0
- package/map/hooks/use-map-view-provider-context.js +26 -0
- package/map/hooks/use-tooltip-template.d.ts +8 -0
- package/map/hooks/use-tooltip-template.js +17 -2
- package/map/index.d.ts +2 -0
- package/map/index.js +2 -0
- package/map/providers/map-view.provider.d.ts +7 -0
- package/map/providers/map-view.provider.js +37 -0
- package/map/types/map-view-provider.d.ts +10 -0
- package/map/types/map-view-provider.js +16 -0
- package/map/types/tooltip.d.ts +16 -0
- package/map/utils/fetch-base-layer-features.js +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `MapViewProvider` props.
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export type MapViewProviderProps = {
|
|
6
|
+
/** Country code for regions with disputed borders */
|
|
7
|
+
countryCode?: 'CN' | 'IN' | 'IL' | 'MA';
|
|
8
|
+
/** Whether the world map is displayed */
|
|
9
|
+
displayWorldMap?: boolean;
|
|
10
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var map_view_provider_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(map_view_provider_exports);
|
package/map/types/tooltip.d.ts
CHANGED
|
@@ -38,6 +38,10 @@ export interface DotLayerTooltipHandlerProps {
|
|
|
38
38
|
children?: DotLayerTooltipHandler | null;
|
|
39
39
|
/** Series actions callback for the default tooltip */
|
|
40
40
|
seriesActions?: (data: Location) => SeriesActionsTemplate;
|
|
41
|
+
/** Whether the tooltip is hidden */
|
|
42
|
+
hidden?: boolean;
|
|
43
|
+
/** Overrides the horizontal alignment of series symbols */
|
|
44
|
+
symbolAlignment?: 'left' | 'right';
|
|
41
45
|
}
|
|
42
46
|
/**
|
|
43
47
|
* Bubble Tooltip data payload for the tooltip handler callback
|
|
@@ -67,6 +71,10 @@ export interface BubbleLayerTooltipHandlerProps {
|
|
|
67
71
|
children?: BubbleLayerTooltipHandler | null;
|
|
68
72
|
/** Series actions callback for the default tooltip */
|
|
69
73
|
seriesActions?: (location: Location) => SeriesActionsTemplate;
|
|
74
|
+
/** Whether the tooltip is hidden */
|
|
75
|
+
hidden?: boolean;
|
|
76
|
+
/** Overrides the horizontal alignment of series symbols */
|
|
77
|
+
symbolAlignment?: 'left' | 'right';
|
|
70
78
|
}
|
|
71
79
|
/**
|
|
72
80
|
* Connection Tooltip data payload for the tooltip handler callback
|
|
@@ -95,6 +103,10 @@ export interface ConnectionLayerTooltipHandlerProps {
|
|
|
95
103
|
children?: ConnectionLayerTooltipHandler | null;
|
|
96
104
|
/** Series actions callback for the default tooltip */
|
|
97
105
|
seriesActions?: (data: Location) => SeriesActionsTemplate;
|
|
106
|
+
/** Whether the tooltip is hidden */
|
|
107
|
+
hidden?: boolean;
|
|
108
|
+
/** Overrides the horizontal alignment of series symbols */
|
|
109
|
+
symbolAlignment?: 'left' | 'right';
|
|
98
110
|
}
|
|
99
111
|
/**
|
|
100
112
|
* Choropleth Tooltip data payload for the tooltip handler callback
|
|
@@ -125,6 +137,10 @@ export interface ChoroplethLayerTooltipHandlerProps {
|
|
|
125
137
|
children?: ChoroplethLayerTooltipHandler | null;
|
|
126
138
|
/** Series actions callback for the default tooltip */
|
|
127
139
|
seriesActions?: (data: ChoroplethLayerTooltipData) => SeriesActionsTemplate;
|
|
140
|
+
/** Whether the tooltip is hidden */
|
|
141
|
+
hidden?: boolean;
|
|
142
|
+
/** Overrides the horizontal alignment of series symbols */
|
|
143
|
+
symbolAlignment?: 'left' | 'right';
|
|
128
144
|
}
|
|
129
145
|
/**
|
|
130
146
|
* Map Geo Tooltip Props
|
|
@@ -26,7 +26,7 @@ module.exports = __toCommonJS(fetch_base_layer_features_exports);
|
|
|
26
26
|
var import_lodash_es = require("lodash");
|
|
27
27
|
var import_constants = require("../constants.js");
|
|
28
28
|
const cache = /* @__PURE__ */ new Map();
|
|
29
|
-
const MAPS_WITH_DISPUTED_BORDERS = ["IN", "IL", "CN"];
|
|
29
|
+
const MAPS_WITH_DISPUTED_BORDERS = ["IN", "IL", "CN", "MA"];
|
|
30
30
|
const getWorldViewParam = (countryCode) => MAPS_WITH_DISPUTED_BORDERS.includes(countryCode) ? `${countryCode}/` : "";
|
|
31
31
|
const fetchWorldViewFeatures = async (tenantCountryCode) => {
|
|
32
32
|
const worldViewParam = getWorldViewParam(tenantCountryCode);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynatrace/strato-geo",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"keywords": [
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@dynatrace-sdk/client-classic-environment-v2": "^5.1.0",
|
|
55
55
|
"@dynatrace-sdk/client-platform-management-service": "^1.7.0",
|
|
56
56
|
"@dynatrace-sdk/units": "^1.5.0",
|
|
57
|
-
"@dynatrace/strato-components": "^3.
|
|
57
|
+
"@dynatrace/strato-components": "^3.6.0",
|
|
58
58
|
"@dynatrace/strato-design-tokens": "^1.5.0",
|
|
59
59
|
"@dynatrace/strato-icons": "^2.3.0",
|
|
60
60
|
"react": "^18.0.0",
|