@smart-factor/gem-ui-map-component 0.0.25 → 0.0.27

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,3 @@
1
1
  import { MapExternalProps } from './types';
2
- declare const MapWithProviders: ({ id, mapLayers, caseObjectId, sidebarConfig, mapButtonsConfig, mapElementsConfig, setOuterDrawnGeometries, setOuterSelectedMapObjects, selectedFeatures, multiSelectEnabled, initialDrawnGeometries, }: MapExternalProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const MapWithProviders: ({ id, mapLayers, caseObjectId, sidebarConfig, mapButtonsConfig, mapElementsConfig, setOuterDrawnGeometries, setOuterSelectedMapObjects, selectedFeatures, multiSelectEnabled, initialDrawnGeometries, disableEditNonUserDrawnGeometries, }: MapExternalProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default MapWithProviders;
@@ -4,7 +4,7 @@ interface SidebarConfig {
4
4
  }
5
5
  interface MapButtonsConfig {
6
6
  mapButtonsVisible: boolean;
7
- items: Record<'draw' | 'info' | 'assign' | 'geoLocation' | 'send' | 'smartGemSync' | 'centerToInitial' | 'centerToSelected', boolean>;
7
+ items: Record<'draw' | 'info' | 'assign' | 'geoLocation' | 'send' | 'smartGemSync' | 'centerToInitial' | 'centerToSelected' | 'deselectAllSelected', boolean>;
8
8
  }
9
9
  interface MapElementsConfig {
10
10
  mapElementsVisible: boolean;
@@ -15,5 +15,6 @@ export interface MapConfig {
15
15
  sidebarConfig: SidebarConfig;
16
16
  mapButtonsConfig: MapButtonsConfig;
17
17
  mapElementsConfig: MapElementsConfig;
18
+ disableEditNonUserDrawnGeometries?: boolean;
18
19
  }
19
20
  export {};
@@ -1,4 +1,4 @@
1
- import { M as f } from "../../MapButtons-BhHug9Kn.js";
1
+ import { M as f } from "../../MapButtons-Dv9ONWN-.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -50,4 +50,5 @@ export interface MapInteractionsContextProps {
50
50
  caseObjectId: number;
51
51
  setOuterDrawnGeometries: MapExternalProps['setOuterDrawnGeometries'];
52
52
  setOuterSelectedMapObjects: MapExternalProps['setOuterSelectedMapObjects'];
53
+ disableEditNonUserDrawnGeometries?: boolean;
53
54
  }
@@ -1,3 +1,3 @@
1
1
  import { InitialDrawnGeometry, MapLayer, SelectedFeature } from '../components/Map/types';
2
2
  export declare const GEOLOCATION_LAYER = "geolocationLayer";
3
- export declare const useSetupMap: (id: string, mapLayers: MapLayer[], caseObjectId: number, initialSelectedFeatures?: SelectedFeature[], multiSelectEnabled?: boolean, initialDrawnGeometries?: InitialDrawnGeometry[]) => void;
3
+ export declare const useSetupMap: (id: string, mapLayers: MapLayer[], caseObjectId: number, initialSelectedFeatures?: SelectedFeature[], multiSelectEnabled?: boolean, initialDrawnGeometries?: InitialDrawnGeometry[], disableEditNonUserDrawnGeometries?: boolean) => void;