@commversion/libs 0.7.0 → 0.8.0-pre.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-form-submission
35
36
  - lc-experiment
36
37
  - lc-gtm
37
38
  - lc-device
@@ -0,0 +1 @@
1
+ (function(){"use strict";const e=i=>()=>{var o;const{LiveChatWidget:n}=window,s=(o=i.formSubmissionSelector)!=null?o:"form";document.querySelectorAll(s).forEach(t=>{t.addEventListener("submit",()=>{n.call("update_session_variables",{form_submission:"true"})})})};window.commversion=window.commversion||{},window.LiveChatWidget.on("ready",e(window.commversion))})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commversion/libs",
3
- "version": "0.7.0",
3
+ "version": "0.8.0-pre.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-form-submission": "vite serve scripts/lc-form-submission/src/",
12
+ "build:lc-form-submission": "vite build -c scripts/lc-form-submission/vite.config.js",
11
13
  "release:pre": "release-it --preRelease=pre",
12
14
  "dev:lc-experiment": "vite serve scripts/lc-experiment/src/",
13
15
  "build:lc-experiment": "vite build -c scripts/lc-experiment/vite.config.js",
@@ -46,7 +48,6 @@
46
48
  "sinon": "^12.0.1",
47
49
  "vite": "^2.7.3"
48
50
  },
49
- "dependencies": {},
50
51
  "volta": {
51
52
  "node": "16.13.2"
52
53
  }