@omnic/widget-locations 1.0.57 → 1.0.59
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 +37 -20
- package/dist/lib/components/Aside/Aside.d.ts +1 -1
- package/dist/lib/components/AsyncSelect/AsyncSelect.d.ts +2 -2
- package/dist/lib/components/Button/Button.d.ts +1 -1
- package/dist/lib/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/lib/components/CheckboxGroup/CheckboxGroup.d.ts +3 -2
- package/dist/lib/components/Chip/Chip.d.ts +1 -1
- package/dist/lib/components/CloseButton/CloseButton.d.ts +6 -2
- package/dist/lib/components/CourierBalloon/CourierBalloon.d.ts +2 -2
- package/dist/lib/components/CourierBalloon/index.d.ts +1 -0
- package/dist/lib/components/CourierDetailsModal/CourierDetailsModal.d.ts +2 -2
- package/dist/lib/components/CourierDetailsView/CourierDetailsView.d.ts +1 -1
- package/dist/lib/components/CourierDetailsView/CourierDetailsView.utils.d.ts +2 -2
- package/dist/lib/components/CurrentLocation/CurrentLocation.d.ts +1 -1
- package/dist/lib/components/Header/LogoContainer.d.ts +1 -1
- package/dist/lib/components/Hr/Hr.d.ts +1 -1
- package/dist/lib/components/Input/Input.d.ts +2 -2
- package/dist/lib/components/Layout/Layout.d.ts +1 -1
- package/dist/lib/components/LocationAside/LocationAside.d.ts +2 -1
- package/dist/lib/components/LocationBalloon/LocationBalloon.d.ts +2 -2
- package/dist/lib/components/LocationDetailsModal/LocationDetailsModal.d.ts +2 -2
- package/dist/lib/components/LocationSelector/CourierDeliverySelectorContainer.d.ts +1 -1
- package/dist/lib/components/LocationSelector/LocationSelector.utils.d.ts +1 -0
- package/dist/lib/components/LocationSelector/SelfPickupSelectorContainer.d.ts +2 -2
- package/dist/lib/components/LocationView/LocationView.d.ts +1 -1
- package/dist/lib/components/MapContainer/DetailsModalContainer.d.ts +1 -1
- package/dist/lib/components/MapContainer/FilterButton.d.ts +1 -1
- package/dist/lib/components/MapContainer/MapContainer.d.ts +1 -1
- package/dist/lib/components/MapGoogle/Clusters.d.ts +5 -5
- package/dist/lib/components/MapGoogle/ClustersContainer.d.ts +5 -6
- package/dist/lib/components/MapGoogle/CourierPoint.d.ts +5 -5
- package/dist/lib/components/MapGoogle/MapContainer.d.ts +2 -2
- package/dist/lib/components/MapGoogle/MapGoogle.d.ts +1 -1
- package/dist/lib/components/MapGoogle/MapGoogle.hooks.d.ts +0 -12
- package/dist/lib/components/MapGoogle/Point.d.ts +6 -6
- package/dist/lib/components/MapGoogle/PointSheet.d.ts +2 -2
- package/dist/lib/components/MapYandex/MapYandex.constants.d.ts +4 -4
- package/dist/lib/components/MapYandex/MapYandex.d.ts +1 -1
- package/dist/lib/components/MapYandex/MapYandex.utils.d.ts +2 -2
- package/dist/lib/components/Overlay/Overlay.d.ts +1 -1
- package/dist/lib/components/Radio/Radio.d.ts +1 -1
- package/dist/lib/components/RadioGroup/RadioGroup.d.ts +3 -2
- package/dist/lib/components/RangeSlider/RangeSlider.d.ts +1 -1
- package/dist/lib/components/Sidebar/HeaderContainer.d.ts +1 -1
- package/dist/lib/components/Sidebar/ReceiveFilterContainer.d.ts +1 -1
- package/dist/lib/components/Sidebar/SendFilterContainer.d.ts +1 -1
- package/dist/lib/components/Sidebar/Sidebar.d.ts +1 -1
- package/dist/lib/components/Sidebar/TypeFilterContainer.d.ts +1 -1
- package/dist/lib/components/TextArea/TextArea.d.ts +2 -2
- package/dist/lib/components/TimeRangeSlider/TimeRangeSlider.d.ts +2 -2
- package/dist/lib/components/TypeFilter/TypeFilter.d.ts +1 -1
- package/dist/lib/components/WorkingHoursFilter/WorkingHoursFilter.d.ts +2 -2
- package/dist/lib/constants/config.d.ts +1 -1
- package/dist/lib/constants/map.d.ts +2 -2
- package/dist/lib/context/config.d.ts +1 -1
- package/dist/lib/hooks/useInitializeAxios.d.ts +1 -1
- package/dist/lib/hooks/useInputProps.d.ts +1 -1
- package/dist/lib/hooks/useMapRenderer.d.ts +1 -1
- package/dist/lib/hooks/useMergedRef.d.ts +1 -1
- package/dist/lib/hooks/useWidgetConfig.d.ts +1 -1
- package/dist/lib/services/points.d.ts +3 -5
- package/dist/lib/stores/courierPoint.d.ts +1 -1
- package/dist/lib/stores/filters.d.ts +1 -1
- package/dist/lib/stores/map.d.ts +4 -3
- package/dist/lib/stores/points.d.ts +2 -2
- package/dist/lib/stores/selectedPoint.d.ts +1 -3
- package/dist/lib/style.css +1 -1
- package/dist/lib/types/cities.d.ts +2 -2
- package/dist/lib/types/config.d.ts +15 -4
- package/dist/lib/types/map.d.ts +3 -1
- package/dist/lib/types/points.d.ts +3 -3
- package/dist/lib/utils/createPointsIterator.d.ts +2 -2
- package/dist/lib/utils/fromHoursMinutesToMinutes.d.ts +1 -1
- package/dist/lib/utils/fromMinutesToHoursMinutes.d.ts +1 -1
- package/dist/lib/utils/getAddressFromLatLng.d.ts +1 -1
- package/dist/lib/utils/stopImmediatePropagation.d.ts +1 -1
- package/dist/lib/views/Widget/LocaleProvider.d.ts +2 -2
- package/dist/lib/views/Widget/PreloaderOverlay.d.ts +1 -1
- package/dist/lib/views/Widget/Widget.d.ts +2 -2
- package/dist/lib/views/Widget/Widget.hooks.d.ts +3 -3
- package/dist/lib/views/Widget/WidgetContainer.d.ts +1 -1
- package/dist/lib/widget.es.js +5063 -5077
- package/dist/lib/widget.umd.js +22 -22
- package/package.json +22 -17
package/README.md
CHANGED
|
@@ -110,26 +110,30 @@ type CallbackPoint = LocationPoint | CourierDeliveryPoint;
|
|
|
110
110
|
|
|
111
111
|
Then `OMNIC_WIDGET_LOCATIONS_CONFIG` has the following structure:
|
|
112
112
|
|
|
113
|
-
| Property
|
|
114
|
-
|
|
|
115
|
-
| INN
|
|
116
|
-
| font
|
|
117
|
-
| radius
|
|
118
|
-
| locale
|
|
119
|
-
| country
|
|
120
|
-
| palette
|
|
121
|
-
| palette.primary
|
|
122
|
-
| palette.primary-dark
|
|
123
|
-
| map
|
|
124
|
-
| map.provider
|
|
125
|
-
| map.center
|
|
126
|
-
| map.initialZoom
|
|
127
|
-
| hideLogo
|
|
128
|
-
| startScreen
|
|
129
|
-
| disableCourierDelivery
|
|
130
|
-
| inputs
|
|
131
|
-
|
|
|
132
|
-
|
|
|
113
|
+
| Property | Type | Description |
|
|
114
|
+
| ------------------------------- | -------------- | -------------------------------------------------------------------------------------------------------------------------------- |
|
|
115
|
+
| INN | string | INN of the company that uses the widget |
|
|
116
|
+
| font | string | Font family to use |
|
|
117
|
+
| radius | number | Border radius of buttons |
|
|
118
|
+
| locale | string | Locale of the widget. Currently supported: `en`, `ru` |
|
|
119
|
+
| country | string | Country code in ISO 3166-1 Alpha-2 format |
|
|
120
|
+
| palette | object | Palette config object |
|
|
121
|
+
| palette.primary | string | Primary color of the widget. Example: `#ff0000` |
|
|
122
|
+
| palette.primary-dark | string | Darker version of the primary color. Example: `#cc0000` |
|
|
123
|
+
| map | object | Map config object. See below for details |
|
|
124
|
+
| map.provider | string | Map provider. Currently supported: `google`, `yandex` |
|
|
125
|
+
| map.center | number[] | Coordinates of the map center. Example: `[55.75, 37.57]` |
|
|
126
|
+
| map.initialZoom | number | Initial zoom level of the map. Example: `10` |
|
|
127
|
+
| hideLogo | boolean | Whether to hide the logo |
|
|
128
|
+
| startScreen | string | Start screen of the widget. Currently supported: `map`, `selector` |
|
|
129
|
+
| disableCourierDelivery | boolean | Whether to disable courier delivery option |
|
|
130
|
+
| inputs | WidgetInputs | Control over widget inputs |
|
|
131
|
+
| handlers | WidgetHandlers | Handlers config object |
|
|
132
|
+
| hideMapUI | boolean | Whether to hide map UI elements, like trademarks, terms of use and etc. |
|
|
133
|
+
| hideCloseButtonOnLocationScreen | boolean | Whether to hide close button on location screen |
|
|
134
|
+
| onPointClick | function | Callback that will be called when user clicks on a point on the map. |
|
|
135
|
+
| onLocationSelect | function | Callback that will be called when user selects a location Callback will be called with `google.maps.places.PlaceResult` argument |
|
|
136
|
+
| onCloseLocationSelector | function | Callback that will be called when user closes location selector |
|
|
133
137
|
|
|
134
138
|
`WidgetInputs` type has the following structure:
|
|
135
139
|
|
|
@@ -164,6 +168,19 @@ export interface WidgetInputs {
|
|
|
164
168
|
}
|
|
165
169
|
```
|
|
166
170
|
|
|
171
|
+
`WidgetHandlers` type has the following structure:
|
|
172
|
+
|
|
173
|
+
```typescript
|
|
174
|
+
export interface LocationSelectorElement {
|
|
175
|
+
open: () => void;
|
|
176
|
+
close: () => void;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export interface WidgetHandlers {
|
|
180
|
+
locationSelector: RefObject<LocationSelectorElement>;
|
|
181
|
+
}
|
|
182
|
+
```
|
|
183
|
+
|
|
167
184
|
**NOTE:** when using screen keyboard do not forget to call `focus()` method for `address` and `city` inputs, so that autocomplete will appear.
|
|
168
185
|
|
|
169
186
|
Include `styles.css` and `widget.umd.js` in your page:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { GroupBase } from "react-select";
|
|
3
|
-
import { AsyncProps } from "react-select/async";
|
|
2
|
+
import type { GroupBase } from "react-select";
|
|
3
|
+
import type { AsyncProps } from "react-select/async";
|
|
4
4
|
type AsyncSelectProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = AsyncProps<Option, IsMulti, Group> & {
|
|
5
5
|
label?: string;
|
|
6
6
|
className?: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { RadioProps } from "../Radio";
|
|
1
|
+
import type { RadioProps } from "../Radio";
|
|
2
2
|
export declare const Checkbox: <T>(props: RadioProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import {
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { HTMLAttributes } from "react";
|
|
3
|
+
import type { RadioProps } from "../Radio";
|
|
3
4
|
export type CheckboxGroupProps<T> = Omit<HTMLAttributes<HTMLDivElement>, "onChange"> & {
|
|
4
5
|
value?: T;
|
|
5
6
|
label?: string;
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
import { ComponentProps, FC } from "react";
|
|
2
|
-
|
|
1
|
+
import type { ComponentProps, FC } from "react";
|
|
2
|
+
interface CloseButtonProps extends ComponentProps<"div"> {
|
|
3
|
+
position?: "relative" | "absolute";
|
|
4
|
+
}
|
|
5
|
+
export declare const CloseButton: FC<CloseButtonProps>;
|
|
6
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
import { CourierPoint } from '../../types/points';
|
|
1
|
+
import type { FC } from "react";
|
|
2
|
+
import type { CourierPoint } from '../../types/points';
|
|
3
3
|
type CourierBalloonProps = Partial<CourierPoint> & {
|
|
4
4
|
SSR?: boolean;
|
|
5
5
|
variant: "error" | "default";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CourierBalloon";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
import { CourierDeliveryPoint, CourierPoint } from '../../types/points';
|
|
1
|
+
import type { FC } from "react";
|
|
2
|
+
import type { CourierDeliveryPoint, CourierPoint } from '../../types/points';
|
|
3
3
|
interface CourierDetailsModalProps {
|
|
4
4
|
className?: string;
|
|
5
5
|
onClose?: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { CourierDeliveryPoint, CourierPoint } from '../../types/points';
|
|
2
|
+
import type { CourierDeliveryPoint, CourierPoint } from '../../types/points';
|
|
3
3
|
export interface CourierDetailsViewClasses {
|
|
4
4
|
header?: string;
|
|
5
5
|
content?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Reducer } from "react";
|
|
2
|
-
import { CourierDeliveryPoint } from '../../types/points';
|
|
1
|
+
import type { Reducer } from "react";
|
|
2
|
+
import type { CourierDeliveryPoint } from '../../types/points';
|
|
3
3
|
type ChangeHandler = (location: CourierDeliveryPoint) => void;
|
|
4
4
|
interface ReducerParams {
|
|
5
5
|
set?: ChangeHandler;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
1
|
+
import type { FC } from "react";
|
|
2
2
|
export declare const LogoContainer: FC;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode, RefObject } from "react";
|
|
2
|
-
import { ForwardedInputElement } from '../../types/config';
|
|
1
|
+
import type { ReactNode, RefObject } from "react";
|
|
2
|
+
import type { ForwardedInputElement } from '../../types/config';
|
|
3
3
|
interface InputProps extends React.AllHTMLAttributes<HTMLInputElement> {
|
|
4
4
|
label?: string;
|
|
5
5
|
className?: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
import type { LocationSelectorElement } from '../../types/config';
|
|
3
|
+
declare const MemoLocationAside: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<LocationSelectorElement>>>;
|
|
3
4
|
export { MemoLocationAside as LocationAside };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
import { LocationPoint } from '../../types/points';
|
|
1
|
+
import type { FC } from "react";
|
|
2
|
+
import type { LocationPoint } from '../../types/points';
|
|
3
3
|
type LocationBalloonProps = Partial<LocationPoint> & {
|
|
4
4
|
SSR?: boolean;
|
|
5
5
|
className?: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const loadLocations: (value: string) => Promise<import("../..").LocationPoint[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
import { LocationPoint } from '../../types/points';
|
|
1
|
+
import type { FC } from "react";
|
|
2
|
+
import type { LocationPoint } from '../../types/points';
|
|
3
3
|
interface SelfPickupSelectorContainerProps {
|
|
4
4
|
className?: string;
|
|
5
5
|
value?: null | LocationPoint;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
1
|
+
import type { FC } from "react";
|
|
2
2
|
export declare const DetailsModalContainer: FC;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
1
|
+
import type { FC } from "react";
|
|
2
2
|
export declare const FilterButton: FC;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ComponentProps } from "react";
|
|
2
|
-
import { LocationPoint } from '../../types/points';
|
|
1
|
+
import type { ComponentProps } from "react";
|
|
2
|
+
import type { LocationPoint } from '../../types/points';
|
|
3
3
|
import { Point } from "./Point";
|
|
4
4
|
type PointProps = ComponentProps<typeof Point>;
|
|
5
5
|
interface ClustersProps {
|
|
6
6
|
points: LocationPoint[];
|
|
7
7
|
selectedPoint: Nullable<LocationPoint>;
|
|
8
|
-
onOpenDetails
|
|
9
|
-
onPointClick
|
|
10
|
-
onPointSelected
|
|
8
|
+
onOpenDetails?: (open: boolean) => void;
|
|
9
|
+
onPointClick?: PointProps["onPointClick"];
|
|
10
|
+
onPointSelected?: PointProps["onPointSelected"];
|
|
11
11
|
}
|
|
12
12
|
declare const MemoizedClusters: import("react").NamedExoticComponent<ClustersProps>;
|
|
13
13
|
export { MemoizedClusters as Clusters };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { ComponentProps } from "react";
|
|
2
|
-
import { Point } from "./Point";
|
|
1
|
+
import type { ComponentProps } from "react";
|
|
2
|
+
import type { Point } from "./Point";
|
|
3
3
|
type PointProps = ComponentProps<typeof Point>;
|
|
4
4
|
interface ClustersContainerProps {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
onPointSelected: PointProps["onPointSelected"];
|
|
5
|
+
onOpenDetails?: (open: boolean) => void;
|
|
6
|
+
onPointClick?: PointProps["onPointClick"];
|
|
7
|
+
onPointSelected?: PointProps["onPointSelected"];
|
|
9
8
|
}
|
|
10
9
|
declare const MemoizedClustersContainer: import("react").NamedExoticComponent<ClustersContainerProps>;
|
|
11
10
|
export { MemoizedClustersContainer as ClustersContainer };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
import { CourierDeliveryPoint, CourierPoint } from '../../types/points';
|
|
1
|
+
import type { FC } from "react";
|
|
2
|
+
import type { CourierDeliveryPoint, CourierPoint } from '../../types/points';
|
|
3
3
|
interface CourierPointProps {
|
|
4
4
|
point: CourierPoint;
|
|
5
|
-
setOpenDetails
|
|
6
|
-
setCourierPoint
|
|
7
|
-
onPointClick
|
|
5
|
+
setOpenDetails?: (open: boolean) => void;
|
|
6
|
+
setCourierPoint?: (point: null | CourierPoint) => void;
|
|
7
|
+
onPointClick?: (point: CourierDeliveryPoint) => void;
|
|
8
8
|
}
|
|
9
9
|
export declare const CourierPointMarker: FC<CourierPointProps>;
|
|
10
10
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { GoogleMapProps } from "@react-google-maps/api";
|
|
2
|
+
import type { FC, ReactNode } from "react";
|
|
3
3
|
interface MapContainerProps {
|
|
4
4
|
className?: string;
|
|
5
5
|
children: ReactNode;
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
/// <reference types="google.maps" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
|
-
interface UseAttachSelectPointHookOptions {
|
|
4
|
-
map: Nullable<google.maps.Map>;
|
|
5
|
-
onAttach?: () => void;
|
|
6
|
-
}
|
|
7
|
-
export declare const useAttachSelectPointHook: ({ map, onAttach }: UseAttachSelectPointHookOptions) => void;
|
|
8
|
-
export declare const useMapTimeoutMount: () => readonly [boolean, import("react").Dispatch<import("react").SetStateAction<boolean>>];
|
|
9
|
-
interface UseMapCityCenterHookOptions {
|
|
10
|
-
map: Nullable<google.maps.Map>;
|
|
11
|
-
}
|
|
12
|
-
export declare const useMapCityCenter: ({ map }: UseMapCityCenterHookOptions) => void;
|
|
13
1
|
interface UsePointInfoOpenParams {
|
|
14
2
|
isSelectedPoint: boolean;
|
|
15
3
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { LocationPoint } from '../../types/points';
|
|
1
|
+
import type { MarkerProps } from "@react-google-maps/api";
|
|
2
|
+
import type { FC } from "react";
|
|
3
|
+
import type { LocationPoint } from '../../types/points';
|
|
4
4
|
interface PointProps {
|
|
5
5
|
point: LocationPoint;
|
|
6
6
|
selectedPoint: Nullable<LocationPoint>;
|
|
7
7
|
clusterer: MarkerProps["clusterer"];
|
|
8
|
-
setOpenDetails
|
|
9
|
-
onPointClick
|
|
10
|
-
onPointSelected
|
|
8
|
+
setOpenDetails?: (open: boolean) => void;
|
|
9
|
+
onPointClick?: (point: LocationPoint) => void;
|
|
10
|
+
onPointSelected?: (point: Nullable<LocationPoint>) => void;
|
|
11
11
|
}
|
|
12
12
|
export declare const Point: FC<PointProps>;
|
|
13
13
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { BottomSheetProps } from "react-spring-bottom-sheet";
|
|
2
|
+
import type { FC, ReactNode } from "react";
|
|
3
3
|
interface PointSheetProps extends BottomSheetProps {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
minSnapHeight?: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { YMaps } from "@pbe/react-yandex-maps";
|
|
3
|
-
import { IPlacemarkOptions } from "yandex-maps";
|
|
4
|
-
import { YMapsModules } from "@pbe/react-yandex-maps/typings/util/typing";
|
|
5
|
-
import { Locale } from '../../types/i18n';
|
|
2
|
+
import type { YMaps } from "@pbe/react-yandex-maps";
|
|
3
|
+
import type { IPlacemarkOptions } from "yandex-maps";
|
|
4
|
+
import type { YMapsModules } from "@pbe/react-yandex-maps/typings/util/typing";
|
|
5
|
+
import type { Locale } from '../../types/i18n';
|
|
6
6
|
type YMapsQuery = NonNullable<React.ComponentProps<typeof YMaps>["query"]>;
|
|
7
7
|
export declare const localesMap: Record<Locale, YMapsQuery["lang"]>;
|
|
8
8
|
export declare const query: YMapsQuery;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { YMapsApi } from "@pbe/react-yandex-maps/typings/util/typing";
|
|
2
|
-
import { LocationPoint } from '../../types/points';
|
|
1
|
+
import type { YMapsApi } from "@pbe/react-yandex-maps/typings/util/typing";
|
|
2
|
+
import type { LocationPoint } from '../../types/points';
|
|
3
3
|
export type Feature = ReturnType<typeof getMapFeatures>[number];
|
|
4
4
|
/**
|
|
5
5
|
* @see {@link https://yandex.ru/dev/maps/jsapi/doc/2.1/ref/reference/ObjectManager.html}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import {
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { HTMLAttributes } from "react";
|
|
3
|
+
import type { RadioProps } from "../Radio";
|
|
3
4
|
export type RadioGroupProps<T> = Omit<HTMLAttributes<HTMLDivElement>, "onChange"> & {
|
|
4
5
|
value?: T;
|
|
5
6
|
label?: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
1
|
+
import type { FC } from "react";
|
|
2
2
|
export declare const HeaderContainer: FC;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RefObject } from "react";
|
|
2
|
-
import { ForwardedInputElement } from '../../types/config';
|
|
1
|
+
import type { RefObject } from "react";
|
|
2
|
+
import type { ForwardedInputElement } from '../../types/config';
|
|
3
3
|
interface TextAreaProps extends React.ComponentProps<"textarea"> {
|
|
4
4
|
inputRef?: RefObject<HTMLTextAreaElement>;
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
import { WorkingHours } from '../../types/filters';
|
|
1
|
+
import type { FC } from "react";
|
|
2
|
+
import type { WorkingHours } from '../../types/filters';
|
|
3
3
|
interface TimeRangeSliderProps extends Dictionary<any> {
|
|
4
4
|
className?: string;
|
|
5
5
|
value: WorkingHours;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { WidgetConfig } from '
|
|
1
|
+
import type { WidgetConfig } from '../types/config';
|
|
2
2
|
export declare const DEFAULT_CONFIG: Partial<WidgetConfig>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LoadScriptProps } from "@react-google-maps/api";
|
|
2
|
-
import { Locale } from '../types/i18n';
|
|
1
|
+
import type { LoadScriptProps } from "@react-google-maps/api";
|
|
2
|
+
import type { Locale } from '../types/i18n';
|
|
3
3
|
export declare const BALLOON_SUBMIT_ID: string;
|
|
4
4
|
export declare const BALLOON_DETAILS_ID: string;
|
|
5
5
|
export declare const MARKER_SIZE: Size;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { WidgetConfig } from '../types/config';
|
|
2
|
+
import type { WidgetConfig } from '../types/config';
|
|
3
3
|
export declare const ConfigContext: import("react").Context<WidgetConfig>;
|
|
4
4
|
export declare const useConfigContext: () => WidgetConfig;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { INNType, WidgetOptions } from '../types/config';
|
|
1
|
+
import type { INNType, WidgetOptions } from '../types/config';
|
|
2
2
|
export declare const useInitializeAxios: (INN: INNType, options?: WidgetOptions) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare function useMergedRef<T>(...
|
|
2
|
+
export declare function useMergedRef<T>(...references: Array<Nullable<React.Ref<T>>>): React.RefCallback<T>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { WidgetConfig } from '../types/config';
|
|
1
|
+
import type { WidgetConfig } from '../types/config';
|
|
2
2
|
export declare const useWidgetConfig: (initialConfig?: WidgetConfig) => WidgetConfig;
|