ultimate-jekyll-manager 0.0.297 → 0.0.298
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/assets/js/pages/contact/index.js +1 -1
- package/dist/assets/js/pages/payment/checkout/index.js +1 -1
- package/dist/assets/js/ultimate-jekyll-manager.js +0 -1
- package/dist/defaults/dist/_includes/core/head.html +2 -2
- package/dist/defaults/src/_config.yml +7 -5
- package/package.json +1 -1
- package/dist/assets/js/core/chatsy.js +0 -70
|
@@ -111,7 +111,7 @@ function setupFormScrolling() {
|
|
|
111
111
|
if (href === '#chat') {
|
|
112
112
|
// Open chat window
|
|
113
113
|
try {
|
|
114
|
-
|
|
114
|
+
webManager._chatsy?.open();
|
|
115
115
|
} catch (error) {
|
|
116
116
|
webManager.sentry().captureException(new Error('Error opening chat', { cause: error }));
|
|
117
117
|
webManager.utilities().showNotification('Chat is currently unavailable. Please try again later.', 'danger');
|
|
@@ -37,7 +37,6 @@ export default async function (Manager, options) {
|
|
|
37
37
|
|
|
38
38
|
// Conditionally loaded modules based on config (keep as dynamic imports)
|
|
39
39
|
const conditionalModules = [
|
|
40
|
-
{ path: 'chatsy.js', configKey: 'chatsy' },
|
|
41
40
|
{ path: 'cookieconsent.js', configKey: 'cookieConsent' },
|
|
42
41
|
{ path: 'exit-popup.js', configKey: 'exitPopup' },
|
|
43
42
|
{ path: 'social-sharing.js', configKey: 'socialSharing' }
|
|
@@ -93,8 +93,8 @@
|
|
|
93
93
|
|
|
94
94
|
<!-- Chatsy (if used) -->
|
|
95
95
|
{% iftruthy page.resolved.web_manager.chatsy.enabled %}
|
|
96
|
-
<link rel="preconnect" href="https://
|
|
97
|
-
<link rel="dns-prefetch" href="https://
|
|
96
|
+
<link rel="preconnect" href="https://chatsy.ai" crossorigin/>
|
|
97
|
+
<link rel="dns-prefetch" href="https://chatsy.ai"/>
|
|
98
98
|
{% endiftruthy %}
|
|
99
99
|
|
|
100
100
|
<!-- Cloudflare Insights (if used) -->
|
|
@@ -94,12 +94,14 @@ web_manager:
|
|
|
94
94
|
chatsy:
|
|
95
95
|
enabled: true
|
|
96
96
|
config:
|
|
97
|
-
|
|
98
|
-
chatId: ""
|
|
97
|
+
agentId: ""
|
|
99
98
|
settings:
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
button:
|
|
100
|
+
backgroundColor: "#237afc"
|
|
101
|
+
textColor: "#FFFFFF"
|
|
102
|
+
position: "bottom-right"
|
|
103
|
+
type: "round"
|
|
104
|
+
icon: "default"
|
|
103
105
|
sentry:
|
|
104
106
|
enabled: true
|
|
105
107
|
config:
|
package/package.json
CHANGED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
// Chatsy Module
|
|
2
|
-
export default function (Manager, options) {
|
|
3
|
-
// Shortcuts
|
|
4
|
-
const { webManager } = Manager;
|
|
5
|
-
|
|
6
|
-
// Get chatsy config
|
|
7
|
-
const config = webManager.config.chatsy.config;
|
|
8
|
-
|
|
9
|
-
// Listen for dom ready
|
|
10
|
-
webManager.dom().ready()
|
|
11
|
-
.then(async () => {
|
|
12
|
-
try {
|
|
13
|
-
const scriptUrl = `https://app.chatsy.ai/resources/script.js`;
|
|
14
|
-
|
|
15
|
-
await webManager.dom().loadScript({
|
|
16
|
-
src: scriptUrl,
|
|
17
|
-
async: true,
|
|
18
|
-
defer: true,
|
|
19
|
-
timeout: 30000,
|
|
20
|
-
retries: 2,
|
|
21
|
-
crossorigin: 'anonymous',
|
|
22
|
-
attributes: {
|
|
23
|
-
'data-account-id': config.accountId,
|
|
24
|
-
'data-chat-id': config.chatId,
|
|
25
|
-
'data-settings': JSON.stringify(config.settings),
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
// Track Chatsy initialization
|
|
30
|
-
// gtag('event', 'chat_loaded', {
|
|
31
|
-
// chat_provider: 'chatsy'
|
|
32
|
-
// });
|
|
33
|
-
|
|
34
|
-
// chatsy.on('status', (event) => {
|
|
35
|
-
// console.log('Chatsy status changed:', event);
|
|
36
|
-
// });
|
|
37
|
-
|
|
38
|
-
// @TODO: ENABLE THIS UP LATER WHEN WE ADD THIS EVENT TO CHATSY
|
|
39
|
-
// Set up event listener for chat open events
|
|
40
|
-
// chatsy.on('open', (event) => {
|
|
41
|
-
// gtag('event', 'chat_opened', {
|
|
42
|
-
// chat_provider: 'chatsy'
|
|
43
|
-
// });
|
|
44
|
-
// fbq('trackCustom', 'ChatOpened', {
|
|
45
|
-
// content_name: 'Chat Widget'
|
|
46
|
-
// });
|
|
47
|
-
// ttq.track('ViewContent', {
|
|
48
|
-
// content_name: 'Chat Widget',
|
|
49
|
-
// content_type: 'support'
|
|
50
|
-
// });
|
|
51
|
-
// });
|
|
52
|
-
|
|
53
|
-
// @TODO: ENABLE THIS UP LATER WHEN WE ADD THIS EVENT TO CHATSY
|
|
54
|
-
// Set up event listener for chat message events
|
|
55
|
-
// chatsy.on('message:sent', (event) => {
|
|
56
|
-
// gtag('event', 'chat_message_sent', {
|
|
57
|
-
// chat_provider: 'chatsy'
|
|
58
|
-
// });
|
|
59
|
-
// fbq('track', 'Lead', {
|
|
60
|
-
// content_name: 'Chat Message Sent'
|
|
61
|
-
// });
|
|
62
|
-
// ttq.track('SubmitForm', {
|
|
63
|
-
// content_name: 'Chat Message'
|
|
64
|
-
// });
|
|
65
|
-
// });
|
|
66
|
-
} catch (error) {
|
|
67
|
-
webManager.sentry().captureException(new Error('Failed to load Chatsy', { cause: error }));
|
|
68
|
-
}
|
|
69
|
-
})
|
|
70
|
-
}
|