@woosmap/ui 4.117.1 → 4.117.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@woosmap/ui",
3
- "version": "4.117.1",
3
+ "version": "4.117.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/WebGeoServices/ui.git"
@@ -47,11 +47,19 @@ class OfflineChatBot extends React.Component {
47
47
  />
48
48
  </div>
49
49
  <div className="sf-chat__body">
50
- <iframe
51
- title="support-iframe"
52
- id="support_iframe"
53
- src={`${iframeBaseUrl}/support_xs.html?retURL=${iframeBaseUrl}/support_closed.html`}
54
- />
50
+ {iframeBaseUrl ? (
51
+ <iframe
52
+ title="support-iframe"
53
+ id="support_iframe"
54
+ src={`${iframeBaseUrl}/support_xs.html?retURL=${iframeBaseUrl}/support_closed.html`}
55
+ />
56
+ ) : (
57
+ <iframe
58
+ title="pardot-chat"
59
+ id="pardot"
60
+ src="https://mkg.woosmap.com/l/1018782/2023-06-25/dwt8"
61
+ />
62
+ )}
55
63
  </div>
56
64
  </div>
57
65
  </div>
@@ -60,7 +68,11 @@ class OfflineChatBot extends React.Component {
60
68
  }
61
69
 
62
70
  OfflineChatBot.propTypes = {
63
- iframeBaseUrl: PropTypes.string.isRequired,
71
+ iframeBaseUrl: PropTypes.string,
72
+ };
73
+
74
+ OfflineChatBot.defaultProps = {
75
+ iframeBaseUrl: null,
64
76
  };
65
77
 
66
78
  export default OfflineChatBot;