@dynatrace/strato-geo 3.1.1 → 3.2.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/map/MapView.d.ts +1 -1
- package/map/components/MapContent.d.ts +1 -1
- package/package.json +3 -3
- package/esm/map/components/ConnectionLayer/hooks/use-connection-layer-mouse-move.js +0 -17
- package/esm/map/components/ConnectionLayer/hooks/use-connection-layer-mouse-move.js.map +0 -7
- package/map/components/ConnectionLayer/hooks/use-connection-layer-mouse-move.d.ts +0 -3
- package/map/components/ConnectionLayer/hooks/use-connection-layer-mouse-move.js +0 -36
package/map/MapView.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import './styles/react-mapgl-styles.css';
|
|
|
5
5
|
* The `MapView` is a component that renders a map with various geospatial data layers.
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
8
|
-
export declare const MapView: ((props: PropsWithChildren<MapViewProps> & import("react").RefAttributes<MapViewRef>) =>
|
|
8
|
+
export declare const MapView: ((props: PropsWithChildren<MapViewProps> & import("react").RefAttributes<MapViewRef>) => import("react").ReactElement | null) & {
|
|
9
9
|
ErrorState: (props: import("./slots/states/ErrorStateSlot.js").ErrorStateSlotProps) => null;
|
|
10
10
|
Toolbar: {
|
|
11
11
|
(props: import("./index.js").MapToolbarSlotProps): null;
|
|
@@ -3,5 +3,5 @@ import type { MapViewProps, MapViewRef } from '../types/map-view.js';
|
|
|
3
3
|
type MapContentProps = MapViewProps & {
|
|
4
4
|
onMapLoad: () => void;
|
|
5
5
|
};
|
|
6
|
-
export declare const MapContent: (props: PropsWithChildren<MapContentProps> & import("react").RefAttributes<MapViewRef>) =>
|
|
6
|
+
export declare const MapContent: (props: PropsWithChildren<MapContentProps> & import("react").RefAttributes<MapViewRef>) => import("react").ReactElement | null;
|
|
7
7
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynatrace/strato-geo",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"keywords": [
|
|
@@ -54,9 +54,9 @@
|
|
|
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.2.0",
|
|
58
58
|
"@dynatrace/strato-design-tokens": "^1.3.1",
|
|
59
|
-
"@dynatrace/strato-icons": "^2.1.
|
|
59
|
+
"@dynatrace/strato-icons": "^2.1.1",
|
|
60
60
|
"react": "^18.0.0",
|
|
61
61
|
"react-dom": "^18.0.0",
|
|
62
62
|
"react-intl": "^6.0.8 || ^7.0.0",
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { useMapMouseMove } from "../../../hooks/use-map-mouse-move.js";
|
|
2
|
-
import { useOverlayEvents } from "../../../hooks/use-overlay-events.js";
|
|
3
|
-
const useConnectionLayerMouseMove = (geoJsonDataLength, layerId) => {
|
|
4
|
-
const { handleMouseMove } = useOverlayEvents();
|
|
5
|
-
const layerIds = Array.from(
|
|
6
|
-
{ length: geoJsonDataLength },
|
|
7
|
-
(_, i) => `${layerId}-${i}`
|
|
8
|
-
);
|
|
9
|
-
useMapMouseMove(layerIds, handleMouseMove);
|
|
10
|
-
return {
|
|
11
|
-
layerIds
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export {
|
|
15
|
-
useConnectionLayerMouseMove
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=use-connection-layer-mouse-move.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../../../src/map/components/ConnectionLayer/hooks/use-connection-layer-mouse-move.ts"],
|
|
4
|
-
"sourcesContent": ["import { useMapMouseMove } from '../../../hooks/use-map-mouse-move.js';\nimport { useOverlayEvents } from '../../../hooks/use-overlay-events.js';\n\nexport const useConnectionLayerMouseMove = (\n geoJsonDataLength: number,\n layerId: string,\n) => {\n const { handleMouseMove } = useOverlayEvents();\n\n const layerIds = Array.from(\n { length: geoJsonDataLength },\n (_, i) => `${layerId}-${i}`,\n );\n\n useMapMouseMove(layerIds, handleMouseMove);\n\n return {\n layerIds,\n };\n};\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,uBAAuB;AAChC,SAAS,wBAAwB;AAE1B,MAAM,8BAA8B,CACzC,mBACA,YACG;AACH,QAAM,EAAE,gBAAgB,IAAI,iBAAiB;AAE7C,QAAM,WAAW,MAAM;AAAA,IACrB,EAAE,QAAQ,kBAAkB;AAAA,IAC5B,CAAC,GAAG,MAAM,GAAG,OAAO,IAAI,CAAC;AAAA,EAC3B;AAEA,kBAAgB,UAAU,eAAe;AAEzC,SAAO;AAAA,IACL;AAAA,EACF;AACF;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
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 __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var use_connection_layer_mouse_move_exports = {};
|
|
20
|
-
__export(use_connection_layer_mouse_move_exports, {
|
|
21
|
-
useConnectionLayerMouseMove: () => useConnectionLayerMouseMove
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(use_connection_layer_mouse_move_exports);
|
|
24
|
-
var import_use_map_mouse_move = require("../../../hooks/use-map-mouse-move.js");
|
|
25
|
-
var import_use_overlay_events = require("../../../hooks/use-overlay-events.js");
|
|
26
|
-
const useConnectionLayerMouseMove = (geoJsonDataLength, layerId) => {
|
|
27
|
-
const { handleMouseMove } = (0, import_use_overlay_events.useOverlayEvents)();
|
|
28
|
-
const layerIds = Array.from(
|
|
29
|
-
{ length: geoJsonDataLength },
|
|
30
|
-
(_, i) => `${layerId}-${i}`
|
|
31
|
-
);
|
|
32
|
-
(0, import_use_map_mouse_move.useMapMouseMove)(layerIds, handleMouseMove);
|
|
33
|
-
return {
|
|
34
|
-
layerIds
|
|
35
|
-
};
|
|
36
|
-
};
|