@omnic/widget-locations 1.0.70 → 1.0.71

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 (2) hide show
  1. package/README.md +6 -6
  2. package/package.json +11 -30
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # OMNIC Widget Locations
2
2
 
3
- # USAGE
3
+ ## USAGE
4
4
 
5
- ## Integration in `standalone` mode
5
+ ### Integration in `standalone` mode
6
6
 
7
7
  When build in `standalone` mode the widget exposes `window.OMNIC_WIDGET_LOCATIONS_CONFIG` config object.
8
8
  Add script tag to your page and pass the config object to the widget like this:
@@ -215,7 +215,7 @@ After that you can create a div block with id `@omnic/widget-locations` and widg
215
215
  <div id="@omnic/widget-locations"></div>
216
216
  ```
217
217
 
218
- ## Integration in `React` mode
218
+ ### Integration in `React` mode
219
219
 
220
220
  When build in `React` mode the widget exposes `Widget` component. First install a package:
221
221
 
@@ -256,9 +256,9 @@ const App = () => {
256
256
 
257
257
  DON'T FORGET to wrap the widget in a div with id `@omnic/widget-locations`, so that all css styles will be applied correctly.
258
258
 
259
- # DEVELOPMENT
259
+ ## DEVELOPMENT
260
260
 
261
- ## Project setup
261
+ ### Project setup
262
262
 
263
263
  Install all dependencies:
264
264
 
@@ -280,7 +280,7 @@ $ npm run build:app
280
280
 
281
281
  Use `npm run dev` to start local development server.
282
282
 
283
- # API
283
+ ## API
284
284
 
285
285
  All API and components are exposed in `src/index.ts` file.
286
286
 
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@omnic/widget-locations",
3
- "version": "1.0.70",
3
+ "version": "1.0.71",
4
4
  "type": "module",
5
5
  "main": "./dist/lib/widget.umd.js",
6
6
  "module": "./dist/lib/widget.es.js",
7
7
  "types": "./dist/lib/index.d.ts",
8
8
  "files": [
9
- "./dist/lib",
10
- "@types"
9
+ "./@types",
10
+ "./dist/lib"
11
11
  ],
12
12
  "author": {
13
13
  "name": "David Arutiunian",
@@ -20,8 +20,8 @@
20
20
  "scripts": {
21
21
  "test": "bundlesize",
22
22
  "dev": "vite",
23
- "build:lib": "tsc && cross-env TYPE=lib vite build",
24
- "build:app": "tsc && cross-env TYPE=app vite build",
23
+ "build:lib": "tsc && cross-env BUILD_TYPE=lib vite build",
24
+ "build:app": "tsc && cross-env BUILD_TYPE=app vite build",
25
25
  "lint": "eslint src --ext ts,tsx --report-unused-disable-directives",
26
26
  "lint:fix": "eslint src --ext ts,tsx --fix --report-unused-disable-directives",
27
27
  "format": "prettier --write {src,@types}/**/*.{ts,tsx,css,scss,md,json}",
@@ -41,41 +41,22 @@
41
41
  },
42
42
  "devDependencies": {
43
43
  "@changesets/cli": "^2.26.2",
44
- "@types/classnames": "^2.3.1",
45
- "@types/invariant": "^2.2.35",
46
44
  "@types/node": "^20.7.0",
45
+ "bundlesize": "^0.18.1",
46
+ "sass": "^1.68.0"
47
+ },
48
+ "dependencies": {
49
+ "@types/classnames": "^2.3.1",
47
50
  "@types/react": "^18.2.23",
48
51
  "@types/react-dom": "^18.2.7",
49
52
  "@types/react-geocode": "^0.2.1",
50
53
  "@types/uuid": "^9.0.4",
51
- "@typescript-eslint/eslint-plugin": "^6.7.3",
52
- "@typescript-eslint/parser": "^6.7.3",
53
- "@vitejs/plugin-react": "^4.1.0",
54
- "bundlesize": "^0.18.1",
55
- "cross-env": "^7.0.3",
56
- "eslint": "^8.50.0",
57
- "eslint-plugin-only-warn": "^1.1.0",
58
- "eslint-plugin-perfectionist": "^2.1.0",
59
- "eslint-plugin-react-hooks": "^4.6.0",
60
- "eslint-plugin-react-refresh": "^0.4.3",
61
- "eslint-plugin-unicorn": "^48.0.1",
62
- "prettier": "^3.0.3",
63
- "rollup-plugin-visualizer": "^5.9.2",
64
- "sass": "^1.68.0",
65
- "turbo": "^1.10.14",
66
- "typescript": "^5.2.2",
67
- "vite": "^4.4.9",
68
- "vite-plugin-dts": "^3.6.0",
69
- "vite-plugin-mkcert": "^1.16.0",
70
- "vite-plugin-svgr": "^4.0.0"
71
- },
72
- "dependencies": {
54
+ "@omnic/widget-config": "0.1.5",
73
55
  "@pbe/react-yandex-maps": "^1.2.4",
74
56
  "@react-google-maps/api": "^2.19.2",
75
57
  "@tolgee/react": "^5.12.0",
76
58
  "axios": "^1.5.1",
77
59
  "classnames": "^2.3.2",
78
- "invariant": "^2.2.4",
79
60
  "on-change": "^4.0.2",
80
61
  "react-geocode": "^0.2.3",
81
62
  "react-google-autocomplete": "^2.7.3",