@subiz/widget-v4 4.1.106 → 4.1.108

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 (52) hide show
  1. package/compiled_src/popup/popup.js +7 -1
  2. package/compiled_src/util/common.js +33 -1
  3. package/dist/132.js +6433 -2568
  4. package/dist/178.js +406 -0
  5. package/dist/18a02a9c54e.132.js +1 -0
  6. package/dist/18a02a9c54e.178.js +1 -0
  7. package/dist/18a02a9c54e.213.js +1 -0
  8. package/dist/18a02a9c54e.335.js +1 -0
  9. package/dist/18a02a9c54e.362.js +1 -0
  10. package/dist/18a02a9c54e.441.js +1 -0
  11. package/dist/18a02a9c54e.605.js +1 -0
  12. package/dist/18a02a9c54e.678.js +1 -0
  13. package/dist/18a02a9c54e.782.js +1 -0
  14. package/dist/18a02a9c54e.app.js +1 -0
  15. package/dist/{19258dbe3c2.index.html → 18a02a9c54e.index.html} +4 -28
  16. package/dist/{19258dbe3c2.library.html → 18a02a9c54e.library.html} +4 -28
  17. package/dist/18a02a9c54e.library.js +1 -0
  18. package/dist/{19258dbe3c2.preview.html → 18a02a9c54e.preview.html} +1 -1
  19. package/dist/18a02a9c54e.preview.js +1 -0
  20. package/dist/18a02a9c54e.screenshoot.js +1 -0
  21. package/dist/18a02a9c54e.webview.js +1 -0
  22. package/dist/213.js +2780 -0
  23. package/dist/{74.js → 335.js} +35 -35
  24. package/dist/{459.js → 362.js} +7 -7
  25. package/dist/441.js +2855 -0
  26. package/dist/{490.js → 605.js} +82 -82
  27. package/dist/{997.js → 678.js} +6 -6
  28. package/dist/{27.js → 782.js} +7 -7
  29. package/dist/HASH +1 -1
  30. package/dist/assets/img/{subiz-mono.8fbc067.svg → subiz-mono.877e9f5.svg} +1 -1
  31. package/dist/malicious-app.js +4 -6
  32. package/dist/screenshoot.html +1 -1
  33. package/dist/screenshoot.js +2565 -6819
  34. package/package.json +1 -1
  35. package/src/popup/popup.js +7 -1
  36. package/src/util/common.js +36 -1
  37. package/dist/127.js +0 -273
  38. package/dist/185.js +0 -1885
  39. package/dist/19258dbe3c2.127.js +0 -1
  40. package/dist/19258dbe3c2.132.js +0 -1
  41. package/dist/19258dbe3c2.185.js +0 -1
  42. package/dist/19258dbe3c2.27.js +0 -1
  43. package/dist/19258dbe3c2.278.js +0 -1
  44. package/dist/19258dbe3c2.459.js +0 -1
  45. package/dist/19258dbe3c2.490.js +0 -1
  46. package/dist/19258dbe3c2.74.js +0 -1
  47. package/dist/19258dbe3c2.997.js +0 -1
  48. package/dist/19258dbe3c2.app.js +0 -1
  49. package/dist/19258dbe3c2.library.js +0 -1
  50. package/dist/19258dbe3c2.preview.js +0 -1
  51. package/dist/19258dbe3c2.webview.js +0 -1
  52. package/dist/278.js +0 -406
@@ -830,6 +830,11 @@ class Popup extends _common.Com {
830
830
  }
831
831
  return containercss;
832
832
  }
833
+ onClickOverlay() {
834
+ let popup = _index.default.get(this.props.plugin, 'popup', {});
835
+ if (!popup.overlay) return;
836
+ this.setClose(true);
837
+ }
833
838
  render() {
834
839
  if (!this.props.t) return null;
835
840
  if (!this.state.cssready) return null;
@@ -899,7 +904,8 @@ class Popup extends _common.Com {
899
904
  }
900
905
  return (0, _preact.h)("div", {
901
906
  class: "overlay",
902
- style: overlaystyle
907
+ style: overlaystyle,
908
+ onClick: () => this.onClickOverlay()
903
909
  }, (0, _preact.h)("div", {
904
910
  class: animation,
905
911
  style: this.js2css(containercss),
@@ -191,7 +191,7 @@ function extractText(text) {
191
191
  phone.type = 'phone';
192
192
  var emoji = extractEmojis;
193
193
  emoji.type = 'emoji';
194
- return pipeExtracts(text, [email, link, phone, emoji]);
194
+ return pipeExtracts(text, [link, email, phone, emoji]);
195
195
  }
196
196
  function parseJSON(str) {
197
197
  try {
@@ -733,6 +733,38 @@ function checkRunConditions(freq, conds, lastrun, store) {
733
733
  if (!found) return false;
734
734
  }
735
735
  break;
736
+ case 'url_path':
737
+ let excludePaths = filter(cond.exclude_url_paths, url => norm(url));
738
+ if (size(excludePaths) > 0) {
739
+ let urlObj = new URL(window.location.href);
740
+ let pathname = urlObj.pathname || '';
741
+ if (typeof pathname === 'string' && pathname.endsWith('/')) {
742
+ pathname = pathname.substring(0, pathname.length - 1);
743
+ }
744
+ let found = find(excludePaths, url => {
745
+ if (typeof url === 'string' && url.endsWith('/')) {
746
+ url = url.substring(0, url.length - 1);
747
+ }
748
+ return pathname === url;
749
+ });
750
+ if (found) return false;
751
+ }
752
+ let paths = filter(cond.url_paths, url => norm(url));
753
+ if (size(paths) > 0) {
754
+ let urlObj = new URL(window.location.href);
755
+ let pathname = urlObj.pathname || '';
756
+ if (typeof pathname === 'string' && pathname.endsWith('/')) {
757
+ pathname = pathname.substring(0, pathname.length - 1);
758
+ }
759
+ let found = find(paths, url => {
760
+ if (typeof url === 'string' && url.endsWith('/')) {
761
+ url = url.substring(0, url.length - 1);
762
+ }
763
+ return pathname === url;
764
+ });
765
+ if (!found) return false;
766
+ }
767
+ break;
736
768
  case 'browser':
737
769
  if (size(cond.browsers) > 0) {
738
770
  var browsername = browserName();