@trackunit/react-core-contexts-api 0.2.176 → 0.2.178

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-core-contexts-api",
3
- "version": "0.2.176",
3
+ "version": "0.2.178",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -8,6 +8,7 @@
8
8
  },
9
9
  "dependencies": {
10
10
  "@trackunit/shared-utils": "*",
11
+ "@trackunit/geo-json-utils": "*",
11
12
  "jest-fetch-mock": "^3.0.3"
12
13
  },
13
14
  "module": "./index.esm.js",
@@ -1,3 +1,4 @@
1
+ import { GeoJsonPolygon } from "@trackunit/geo-json-utils";
1
2
  export type ValueName = {
2
3
  value: string;
3
4
  name: string;
@@ -5,14 +6,6 @@ export type ValueName = {
5
6
  export type BooleanValue = {
6
7
  booleanValue?: boolean;
7
8
  };
8
- export type Coordinate = {
9
- latitude: number;
10
- longitude: number;
11
- };
12
- export type BoundingBox = {
13
- nw: Coordinate;
14
- se: Coordinate;
15
- };
16
9
  export type MinMaxFilterValue = {
17
10
  min?: number;
18
11
  max?: number;
@@ -21,7 +14,7 @@ export type DateRangeFilterValue = {
21
14
  from?: string;
22
15
  to?: string;
23
16
  };
24
- export type FilterValueType = string[] | ValueName[] | BoundingBox | MinMaxFilterValue | DateRangeFilterValue | string | number | BooleanValue | undefined;
17
+ export type FilterValueType = string[] | ValueName[] | GeoJsonPolygon | MinMaxFilterValue | DateRangeFilterValue | string | number | BooleanValue | undefined;
25
18
  export type FilterBarValues = Record<string, FilterValueType>;
26
19
  export interface IFilterBarContext {
27
20
  /**
@@ -27,7 +27,7 @@ export type IrisAppOptions = {
27
27
  irisAppId: string;
28
28
  extensionId: string;
29
29
  } & SubPage & Search & FragmentIdentifier & NeverPage;
30
- declare const mainApps: readonly ["fleet/list", "reports", "sites"];
30
+ declare const mainApps: readonly ["fleet/list", "reports", "sites", "map"];
31
31
  export type MainFleetApp = (typeof mainApps)[number];
32
32
  export type FleetAppStandardOptions = Page<MainFleetApp> & NeverIrisApp;
33
33
  export type MarketplaceOptions = {