@omnic/widget-locations 1.0.29 → 1.0.31

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.
Files changed (32) hide show
  1. package/README.md +7 -22
  2. package/dist/lib/{en-d22eb5d0.js → en-03d9e87d.js} +1 -1
  3. package/dist/lib/en-32429ad4.js +7 -0
  4. package/dist/lib/{en-d44f5b79.js → en-a83c53ac.js} +1 -1
  5. package/dist/lib/en-af08e0da.js +13 -0
  6. package/dist/lib/ru-1cba56c0.js +13 -0
  7. package/dist/lib/{ru-c12a394e.js → ru-6496f7c9.js} +1 -1
  8. package/dist/lib/ru-6a6bd926.js +7 -0
  9. package/dist/lib/ru-b00f2a78.js +7 -0
  10. package/dist/lib/src/components/Aside/Aside.d.ts +0 -1
  11. package/dist/lib/src/components/CourierBalloon/CourierBalloon.d.ts +1 -0
  12. package/dist/lib/src/components/LocationBalloon/LocationBalloon.d.ts +1 -0
  13. package/dist/lib/src/components/MapContainer/FilterButton.d.ts +2 -0
  14. package/dist/lib/src/components/MapContainer/MapContainer.d.ts +7 -0
  15. package/dist/lib/src/components/MapContainer/index.d.ts +1 -0
  16. package/dist/lib/src/components/Sidebar/HeaderContainer.d.ts +2 -0
  17. package/dist/lib/src/components/Sidebar/LogoContainer.d.ts +2 -0
  18. package/dist/lib/src/constants/config.d.ts +2 -0
  19. package/dist/lib/src/hooks/useInitializeAxios.d.ts +2 -2
  20. package/dist/lib/src/hooks/useMapRenderer.d.ts +2 -2
  21. package/dist/lib/src/hooks/useWidgetConfig.d.ts +12 -1
  22. package/dist/lib/src/stores/sidebar.d.ts +8 -0
  23. package/dist/lib/src/types/config.d.ts +6 -4
  24. package/dist/lib/src/types/map.d.ts +4 -0
  25. package/dist/lib/src/views/Widget/Widget.hooks.d.ts +2 -0
  26. package/dist/lib/style.css +1 -1
  27. package/dist/lib/widget.es.js +2566 -2448
  28. package/dist/lib/widget.umd.js +13 -13
  29. package/package.json +4 -2
  30. package/dist/lib/en-bf27934f.js +0 -12
  31. package/dist/lib/ru-4cf18072.js +0 -7
  32. package/dist/lib/ru-de97a238.js +0 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omnic/widget-locations",
3
- "version": "1.0.29",
3
+ "version": "1.0.31",
4
4
  "type": "module",
5
5
  "main": "./dist/lib/widget.umd.js",
6
6
  "module": "./dist/lib/widget.es.js",
@@ -23,7 +23,7 @@
23
23
  "build:app": "tsc && cross-env TYPE=app vite build --mode production",
24
24
  "lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
25
25
  "format": "prettier --write {src,@types}/**/*.{ts,tsx,css,scss,md,json}",
26
- "link:app": "rm -rf clients/vanilla/lib && npm run build:app && cp -R dist/app clients/vanilla/lib",
26
+ "link:app": "rm -rf examples/vanilla/lib && npm run build:app && cp -R dist/app examples/vanilla/lib",
27
27
  "type-check": "tsc --noEmit",
28
28
  "i18n:check": "tolgee extract check './src/**/*.ts?(x)'",
29
29
  "i18n:sync": "tolgee sync './src/**/*.ts?(x)'",
@@ -60,9 +60,11 @@
60
60
  "@react-google-maps/api": "^2.19.2",
61
61
  "@tolgee/react": "^5.10.2",
62
62
  "@types/classnames": "^2.3.1",
63
+ "@types/invariant": "^2.2.35",
63
64
  "@types/react-geocode": "^0.2.1",
64
65
  "axios": "^1.4.0",
65
66
  "classnames": "^2.3.2",
67
+ "invariant": "^2.2.4",
66
68
  "on-change": "^4.0.2",
67
69
  "react-geocode": "^0.2.3",
68
70
  "react-google-autocomplete": "^2.7.3",
@@ -1,12 +0,0 @@
1
- const n = "Pay on location", t = "Sending a parcel", e = "Send", i = {
2
- payment: n,
3
- return: "Sending returns",
4
- shipping: t,
5
- title: e
6
- };
7
- export {
8
- i as default,
9
- n as payment,
10
- t as shipping,
11
- e as title
12
- };
@@ -1,7 +0,0 @@
1
- const e = "Введите номер точки/метро/адрес", l = {
2
- placeholder: e
3
- };
4
- export {
5
- l as default,
6
- e as placeholder
7
- };
@@ -1,12 +0,0 @@
1
- const t = "Оплата на точке", n = "Отправка посылки", e = "Отправить", p = {
2
- payment: t,
3
- return: "Отправка возвратов",
4
- shipping: n,
5
- title: e
6
- };
7
- export {
8
- p as default,
9
- t as payment,
10
- n as shipping,
11
- e as title
12
- };