@omnic/widget-locations 1.0.91 → 1.0.92

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/README.md CHANGED
@@ -151,6 +151,7 @@ Then `OMNIC_WIDGET_LOCATIONS_CONFIG` has the following structure:
151
151
  | hideMapUI | boolean | Whether to hide map UI elements, like trademarks, terms of use and etc. |
152
152
  | hideHeader | boolean | Whether to hide header |
153
153
  | hideFilters | boolean | Whether to hide filters |
154
+ | hideDetails | boolean | Whether to hide details |
154
155
  | hideSearchInput | boolean | Whether to hide search input |
155
156
  | hideMapControls | boolean | Whether to hide map controls |
156
157
  | hideCloseButtonOnLocationScreen | boolean | Whether to hide close button on location screen |
@@ -5,6 +5,7 @@ type CourierBalloonProps = Partial<CourierPoint> & {
5
5
  variant: "error" | "default";
6
6
  hasCloseButton?: boolean;
7
7
  className?: string;
8
+ hideDetails?: boolean;
8
9
  onDetails?: () => void;
9
10
  onClose?: () => void;
10
11
  };
@@ -3,6 +3,7 @@ import type { LocationPoint } from '../../types/points';
3
3
  type LocationBalloonProps = Partial<LocationPoint> & {
4
4
  SSR?: boolean;
5
5
  className?: string;
6
+ hideDetails?: boolean;
6
7
  onSubmit?: () => void;
7
8
  onDetails?: () => void;
8
9
  };
@@ -4,6 +4,7 @@ import { Point } from "./Point";
4
4
  type PointProps = ComponentProps<typeof Point>;
5
5
  interface ClustersProps {
6
6
  points: LocationPoint[];
7
+ hideDetails?: boolean;
7
8
  selectedPoint: Nullable<LocationPoint>;
8
9
  onOpenDetails?: (open: boolean) => void;
9
10
  onPointClick?: PointProps["onPointClick"];
@@ -2,6 +2,7 @@ import type { FC } from "react";
2
2
  import type { CourierDeliveryPoint, CourierPoint } from '../../types/points';
3
3
  interface CourierPointProps {
4
4
  point: CourierPoint;
5
+ hideDetails?: boolean;
5
6
  setOpenDetails?: (open: boolean) => void;
6
7
  setCourierPoint?: (point: null | CourierPoint) => void;
7
8
  onPointClick?: (point: CourierDeliveryPoint) => void;
@@ -3,6 +3,7 @@ import type { FC } from "react";
3
3
  import type { LocationPoint } from '../../types/points';
4
4
  interface PointProps {
5
5
  point: LocationPoint;
6
+ hideDetails?: boolean;
6
7
  selectedPoint: Nullable<LocationPoint>;
7
8
  clusterer: MarkerProps["clusterer"];
8
9
  setOpenDetails?: (open: boolean) => void;
@@ -57,6 +57,7 @@ export interface WidgetConfig {
57
57
  hideMapUI?: boolean;
58
58
  hideHeader?: boolean;
59
59
  hideFilters?: boolean;
60
+ hideDetails?: boolean;
60
61
  hideSearchInput?: boolean;
61
62
  hideMapControls?: boolean;
62
63
  disableGeolocation?: boolean;