@betterview/integration-toolkit 3.0.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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { GeoJsonObject } from 'geojson';
|
|
1
2
|
export interface ICoordinate {
|
|
2
3
|
lat?: string | number;
|
|
3
4
|
latitude?: string | number;
|
|
@@ -5,19 +6,30 @@ export interface ICoordinate {
|
|
|
5
6
|
lon?: string | number;
|
|
6
7
|
longitude?: string | number;
|
|
7
8
|
}
|
|
8
|
-
export interface
|
|
9
|
+
export interface ITooltip {
|
|
9
10
|
title: string;
|
|
10
11
|
content?: string[];
|
|
11
12
|
}
|
|
12
13
|
interface IAddMapCoordinate {
|
|
13
14
|
coordinate: ICoordinate;
|
|
14
15
|
onCoordinateClicked?: () => void;
|
|
15
|
-
tooltip:
|
|
16
|
+
tooltip: ITooltip;
|
|
17
|
+
}
|
|
18
|
+
interface IAddGeometries {
|
|
19
|
+
id: string;
|
|
20
|
+
geometries: {
|
|
21
|
+
wkt?: string;
|
|
22
|
+
geojson?: GeoJsonObject;
|
|
23
|
+
tooltip?: ITooltip;
|
|
24
|
+
onGeometryClicked?: () => void;
|
|
25
|
+
}[];
|
|
16
26
|
}
|
|
17
27
|
export declare type EnrichmentComponentArgs = {
|
|
18
28
|
partnerHubData?: Record<string, any>;
|
|
19
29
|
previewMode?: boolean;
|
|
20
30
|
addMapCoordinate?: ({ coordinate, onCoordinateClicked, tooltip }: IAddMapCoordinate) => void;
|
|
31
|
+
addGeometries?: (data: IAddGeometries) => void;
|
|
32
|
+
hideGeometries?: (id: string) => void;
|
|
21
33
|
panTo?: (coordinate: ICoordinate) => void;
|
|
22
34
|
};
|
|
23
35
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnrichmentComponentArgs.d.ts","sourceRoot":"","sources":["../../src/types/EnrichmentComponentArgs.ts"],"names":[],"mappings":"AAAA,MAAM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AM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACrC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,gBAAgB,CAAC,EAAE,CAAC,EAAE,UAAU,EAAE,mBAAmB,EAAE,OAAO,EAAE,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC7F,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,IAAI,CAAC;IAC/C,cAAc,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,KAAK,CAAC,EAAE,CAAC,UAAU,EAAE,WAAW,KAAK,IAAI,CAAC;CAC3C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@betterview/integration-toolkit",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "Supports integration packages. This should be the only import from our integrations",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prebuild": "rm -rf ./lib",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"async": "^3.2.4",
|
|
20
20
|
"axios": "^0.24.0",
|
|
21
21
|
"fs-extra": "^10.1.0",
|
|
22
|
+
"geojson": "^0.5.0",
|
|
22
23
|
"json-colorizer": "2.2.2",
|
|
23
24
|
"lodash": "4.17.21",
|
|
24
25
|
"xml2js": "0.4.23"
|