@commversion/libs 0.4.1-pre-0 → 0.4.1-rc-0

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
@@ -32,6 +32,7 @@ All scripts are available under the `scripts/` directory.
32
32
  - lc-input-errors
33
33
  - lc-show-hide
34
34
  - schedule-event
35
+ - lc-device
35
36
  - lc-geoblocking
36
37
  - lc-utm-params
37
38
 
@@ -0,0 +1 @@
1
+ (function(){"use strict";const e="screen and (max-width: 992px) and (pointer: coarse)",i=()=>window.matchMedia(e).matches?"mobile":"desktop",o=c=>()=>{const{LiveChatWidget:n}=window,t=i();n.call("update_session_variables",{device:t})};window.commversion=window.commversion||{},window.LiveChatWidget.on("ready",o())})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commversion/libs",
3
- "version": "0.4.1-pre-0",
3
+ "version": "0.4.1-rc-0",
4
4
  "author": "Marios Antonoudiou <mariosant@sent.com>",
5
5
  "license": "UNLICENSED",
6
6
  "scripts": {
@@ -8,6 +8,8 @@
8
8
  "test": "wtr ./scripts/**/*.test.js --node-resolve",
9
9
  "prepack": "concurrently npm:build:*",
10
10
  "release": "release-it",
11
+ "dev:lc-device": "vite serve scripts/lc-device/src/",
12
+ "build:lc-device": "vite build -c scripts/lc-device/vite.config.js",
11
13
  "dev:lc-geoblocking": "vite serve scripts/lc-geoblocking/src/",
12
14
  "build:lc-geoblocking": "vite build -c scripts/lc-geoblocking/vite.config.js",
13
15
  "dev:lc-utm-params": "vite serve scripts/lc-utm-params/src/",