@subiz/widget-v4 4.1.94 → 4.1.96

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/dist/HASH CHANGED
@@ -1 +1 @@
1
- 1919d7c8739
1
+ 191a16150ef
@@ -4,4 +4,4 @@
4
4
  }
5
5
  body {
6
6
  background: #ddd;
7
- }</style></head><body><script defer="defer" src="https://vcdn.subiz-cdn.com/widget-v4/public/1919d7c8739.screenshoot.js"></script></body></html>
7
+ }</style></head><body><script defer="defer" src="https://vcdn.subiz-cdn.com/widget-v4/public/191a16150ef.screenshoot.js"></script></body></html>
@@ -10649,6 +10649,7 @@ function main() {
10649
10649
  }];
10650
10650
  }
10651
10651
  }
10652
+ plugin.enabled = true;
10652
10653
  plugin.account_id = accid;
10653
10654
  widget._overridePlugin([plugin]);
10654
10655
  widget.setAccount(accid, $div);
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@subiz/widget-v4",
3
- "version": "4.1.94",
3
+ "version": "4.1.96",
4
4
  "main": "./compiled_src/lib.js",
5
5
  "scripts": {
6
6
  "dev": "npx webpack serve --config webpack.dev.js",
7
7
  "build": "rm -rf dist && npx webpack --config webpack.screenshoot.js && npx webpack --config webpack.prod.js",
8
8
  "report": "npx webpack --config webpack.report.js",
9
- "lib": "rm -rf compiled_src && npx babel --out-dir=compiled_src src"
9
+ "lib": "rm -rf compiled_src && npx babel --out-dir=compiled_src src",
10
+ "publish": "npm run build && npm publish"
10
11
  },
11
12
  "dependencies": {
12
13
  "@subiz/ajax": "^3.0.18",
@@ -22,7 +23,7 @@
22
23
  "preact": "10.19.3"
23
24
  },
24
25
  "devDependencies": {
25
- "@babel/cli": "^7.24.8",
26
+ "@babel/cli": "^7.25.6",
26
27
  "@babel/core": "^7.25.2",
27
28
  "@babel/plugin-proposal-class-properties": "^7.18.6",
28
29
  "@babel/plugin-transform-react-jsx": "^7.25.2",
package/screenshoot.js CHANGED
@@ -49,7 +49,7 @@ function main() {
49
49
  ]
50
50
  }
51
51
  }
52
-
52
+ plugin.enabled = true
53
53
  plugin.account_id = accid
54
54
  widget._overridePlugin([plugin])
55
55
  // widget._overrideDeviceType('mobile')
package/src/plugin.js CHANGED
@@ -33,7 +33,6 @@ function Plugin(plugin, store, $container, lib) {
33
33
  var run = async function () {
34
34
  if (_destroy) return
35
35
  if (state !== 'hold') return
36
- // dont run converted plugin twice
37
36
  if (plugin.type === 'popup' && store.isConverted(plugin.id)) return
38
37
 
39
38
  let lastrun = store.matchLastPluginRun(plugin.id)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes