@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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnic/widget-locations",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.59",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/lib/widget.umd.js",
|
|
6
6
|
"module": "./dist/lib/widget.es.js",
|
|
@@ -17,11 +17,13 @@
|
|
|
17
17
|
"url": "https://git.omnic.solutions/omnic.delivery/widget-locations.git"
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
|
-
"prepublishOnly": "npm run build:lib",
|
|
20
|
+
"prepublishOnly": "npm run build:lib && npm test",
|
|
21
|
+
"test": "bundlesize",
|
|
21
22
|
"dev": "vite",
|
|
22
23
|
"build:lib": "tsc && cross-env TYPE=lib vite build --mode production",
|
|
23
24
|
"build:app": "tsc && cross-env TYPE=app vite build --mode production",
|
|
24
|
-
"lint": "eslint src --ext ts,tsx --
|
|
25
|
+
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives",
|
|
26
|
+
"lint:fix": "eslint src --ext ts,tsx --fix --report-unused-disable-directives",
|
|
25
27
|
"format": "prettier --write {src,@types}/**/*.{ts,tsx,css,scss,md,json}",
|
|
26
28
|
"link:app": "rm -rf examples/vanilla/lib && npm run build:app && cp -R dist/app examples/vanilla/lib",
|
|
27
29
|
"type-check": "tsc --noEmit",
|
|
@@ -35,34 +37,37 @@
|
|
|
35
37
|
"react-dom": "^18.2.0"
|
|
36
38
|
},
|
|
37
39
|
"devDependencies": {
|
|
38
|
-
"@types/
|
|
39
|
-
"@types/
|
|
40
|
+
"@types/classnames": "^2.3.1",
|
|
41
|
+
"@types/invariant": "^2.2.35",
|
|
42
|
+
"@types/node": "^20.6.5",
|
|
43
|
+
"@types/react": "^18.2.22",
|
|
40
44
|
"@types/react-dom": "^18.2.7",
|
|
41
|
-
"@
|
|
42
|
-
"@
|
|
43
|
-
"@
|
|
45
|
+
"@types/react-geocode": "^0.2.1",
|
|
46
|
+
"@types/uuid": "^9.0.4",
|
|
47
|
+
"@typescript-eslint/eslint-plugin": "^6.7.2",
|
|
48
|
+
"@typescript-eslint/parser": "^6.7.2",
|
|
49
|
+
"@vitejs/plugin-react": "^4.1.0",
|
|
50
|
+
"bundlesize": "^0.18.1",
|
|
44
51
|
"cross-env": "^7.0.3",
|
|
45
|
-
"eslint": "^8.
|
|
52
|
+
"eslint": "^8.50.0",
|
|
53
|
+
"eslint-plugin-only-warn": "^1.1.0",
|
|
46
54
|
"eslint-plugin-perfectionist": "^2.1.0",
|
|
47
55
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
48
56
|
"eslint-plugin-react-refresh": "^0.4.3",
|
|
57
|
+
"eslint-plugin-unicorn": "^48.0.1",
|
|
49
58
|
"prettier": "^3.0.3",
|
|
50
59
|
"rollup-plugin-visualizer": "^5.9.2",
|
|
51
|
-
"sass": "^1.
|
|
60
|
+
"sass": "^1.68.0",
|
|
52
61
|
"typescript": "^5.2.2",
|
|
53
62
|
"vite": "^4.4.9",
|
|
54
|
-
"vite-plugin-dts": "^3.5.
|
|
63
|
+
"vite-plugin-dts": "^3.5.4",
|
|
55
64
|
"vite-plugin-mkcert": "^1.16.0",
|
|
56
|
-
"vite-plugin-svgr": "^
|
|
65
|
+
"vite-plugin-svgr": "^4.0.0"
|
|
57
66
|
},
|
|
58
67
|
"dependencies": {
|
|
59
68
|
"@pbe/react-yandex-maps": "^1.2.4",
|
|
60
69
|
"@react-google-maps/api": "^2.19.2",
|
|
61
70
|
"@tolgee/react": "^5.12.0",
|
|
62
|
-
"@types/classnames": "^2.3.1",
|
|
63
|
-
"@types/invariant": "^2.2.35",
|
|
64
|
-
"@types/react-geocode": "^0.2.1",
|
|
65
|
-
"@types/uuid": "^9.0.3",
|
|
66
71
|
"axios": "^1.5.0",
|
|
67
72
|
"classnames": "^2.3.2",
|
|
68
73
|
"invariant": "^2.2.4",
|
|
@@ -70,7 +75,7 @@
|
|
|
70
75
|
"react-geocode": "^0.2.3",
|
|
71
76
|
"react-google-autocomplete": "^2.7.3",
|
|
72
77
|
"react-range-slider-input": "^3.0.7",
|
|
73
|
-
"react-select": "^5.7.
|
|
78
|
+
"react-select": "^5.7.5",
|
|
74
79
|
"react-spring-bottom-sheet": "^3.4.1",
|
|
75
80
|
"uuid": "^9.0.1",
|
|
76
81
|
"yandex-maps": "^0.0.1",
|