@corvesta/chat-widget 20.0.0 → 21.0.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.
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Input, Component, NgModule } from '@angular/core';
|
|
3
|
-
import * as i1 from '@angular/common';
|
|
4
|
-
import { NgSwitch, NgSwitchCase, NgSwitchDefault } from '@angular/common';
|
|
5
3
|
|
|
6
4
|
var ChatWidgetType;
|
|
7
5
|
(function (ChatWidgetType) {
|
|
@@ -57,10 +55,10 @@ class TalkdeskChatComponent {
|
|
|
57
55
|
};
|
|
58
56
|
})(window, document, 'tdWebchat', { touchpointId: this.chatClientId, accountId: '', region: this.chatClientRegion }, { ...this.chatBranding });
|
|
59
57
|
}
|
|
60
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
61
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
58
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.7", ngImport: i0, type: TalkdeskChatComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
59
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.7", type: TalkdeskChatComponent, isStandalone: false, selector: "lib-talkdesk-chat", inputs: { chatClientId: "chatClientId", chatClientRegion: "chatClientRegion", chatBranding: "chatBranding" }, ngImport: i0, template: '', isInline: true, styles: [""] }); }
|
|
62
60
|
}
|
|
63
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
61
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.7", ngImport: i0, type: TalkdeskChatComponent, decorators: [{
|
|
64
62
|
type: Component,
|
|
65
63
|
args: [{ selector: 'lib-talkdesk-chat', template: '', standalone: false }]
|
|
66
64
|
}], ctorParameters: () => [], propDecorators: { chatClientId: [{
|
|
@@ -75,30 +73,34 @@ class ChatWidgetComponent {
|
|
|
75
73
|
constructor() {
|
|
76
74
|
this.ChatWidgetType = ChatWidgetType;
|
|
77
75
|
}
|
|
78
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
79
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
76
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.7", ngImport: i0, type: ChatWidgetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
77
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.7", type: ChatWidgetComponent, isStandalone: false, selector: "lib-chat-widget", inputs: { chatType: "chatType", chatConfig: "chatConfig" }, ngImport: i0, template: `
|
|
78
|
+
@switch (chatType) {
|
|
79
|
+
@case (ChatWidgetType.TALKDESK) {
|
|
80
|
+
<lib-talkdesk-chat
|
|
81
|
+
[chatBranding]="chatConfig.chatBranding"
|
|
82
|
+
[chatClientId]="chatConfig.chatClientId"
|
|
83
|
+
[chatClientRegion]="chatConfig.chatClientRegion"></lib-talkdesk-chat>
|
|
84
|
+
} @case (ChatWidgetType.OFF) {
|
|
85
|
+
} @default {
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
`, isInline: true, dependencies: [{ kind: "component", type: TalkdeskChatComponent, selector: "lib-talkdesk-chat", inputs: ["chatClientId", "chatClientRegion", "chatBranding"] }] }); }
|
|
89
89
|
}
|
|
90
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
90
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.7", ngImport: i0, type: ChatWidgetComponent, decorators: [{
|
|
91
91
|
type: Component,
|
|
92
92
|
args: [{ selector: 'lib-chat-widget', template: `
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
93
|
+
@switch (chatType) {
|
|
94
|
+
@case (ChatWidgetType.TALKDESK) {
|
|
95
|
+
<lib-talkdesk-chat
|
|
96
|
+
[chatBranding]="chatConfig.chatBranding"
|
|
97
|
+
[chatClientId]="chatConfig.chatClientId"
|
|
98
|
+
[chatClientRegion]="chatConfig.chatClientRegion"></lib-talkdesk-chat>
|
|
99
|
+
} @case (ChatWidgetType.OFF) {
|
|
100
|
+
} @default {
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
`, standalone: false }]
|
|
102
104
|
}], propDecorators: { chatType: [{
|
|
103
105
|
type: Input
|
|
104
106
|
}], chatConfig: [{
|
|
@@ -106,25 +108,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
106
108
|
}] } });
|
|
107
109
|
|
|
108
110
|
class ChatWidgetModule {
|
|
109
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
110
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
111
|
-
TalkdeskChatComponent],
|
|
112
|
-
|
|
113
|
-
NgSwitchDefault], exports: [ChatWidgetComponent] }); }
|
|
114
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ChatWidgetModule }); }
|
|
111
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.7", ngImport: i0, type: ChatWidgetModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
112
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.7", ngImport: i0, type: ChatWidgetModule, declarations: [ChatWidgetComponent,
|
|
113
|
+
TalkdeskChatComponent], exports: [ChatWidgetComponent] }); }
|
|
114
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.7", ngImport: i0, type: ChatWidgetModule }); }
|
|
115
115
|
}
|
|
116
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
116
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.7", ngImport: i0, type: ChatWidgetModule, decorators: [{
|
|
117
117
|
type: NgModule,
|
|
118
118
|
args: [{
|
|
119
119
|
declarations: [
|
|
120
120
|
ChatWidgetComponent,
|
|
121
121
|
TalkdeskChatComponent
|
|
122
122
|
],
|
|
123
|
-
imports: [
|
|
124
|
-
NgSwitch,
|
|
125
|
-
NgSwitchCase,
|
|
126
|
-
NgSwitchDefault
|
|
127
|
-
],
|
|
123
|
+
imports: [],
|
|
128
124
|
exports: [
|
|
129
125
|
ChatWidgetComponent
|
|
130
126
|
]
|
|
@@ -191,10 +187,10 @@ class GenesysScriptComponent {
|
|
|
191
187
|
// Append the new script
|
|
192
188
|
document.head.appendChild(this.scriptElement);
|
|
193
189
|
}
|
|
194
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
195
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
190
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.7", ngImport: i0, type: GenesysScriptComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
191
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.7", type: GenesysScriptComponent, isStandalone: true, selector: "lib-genesys-script", inputs: { deploymentId: "deploymentId", environment: "environment", genesysScriptUrl: "genesysScriptUrl" }, ngImport: i0, template: '', isInline: true, styles: [""] }); }
|
|
196
192
|
}
|
|
197
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
193
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.7", ngImport: i0, type: GenesysScriptComponent, decorators: [{
|
|
198
194
|
type: Component,
|
|
199
195
|
args: [{ selector: 'lib-genesys-script', imports: [], template: '' }]
|
|
200
196
|
}], propDecorators: { deploymentId: [{
|
|
@@ -296,10 +292,10 @@ class AuviousCobrowseComponent {
|
|
|
296
292
|
showWidget();
|
|
297
293
|
})();
|
|
298
294
|
}
|
|
299
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
300
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
295
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.7", ngImport: i0, type: AuviousCobrowseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
296
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.7", type: AuviousCobrowseComponent, isStandalone: true, selector: "lib-auvious-cobrowse", inputs: { connectionMessage: "connectionMessage", applicationId: "applicationId", isTalkdeskChatEnabled: "isTalkdeskChatEnabled", primaryColor: "primaryColor", accentColor: "accentColor" }, ngImport: i0, template: '', isInline: true }); }
|
|
301
297
|
}
|
|
302
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
298
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.7", ngImport: i0, type: AuviousCobrowseComponent, decorators: [{
|
|
303
299
|
type: Component,
|
|
304
300
|
args: [{ selector: 'lib-auvious-cobrowse', imports: [], template: '' }]
|
|
305
301
|
}], propDecorators: { connectionMessage: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"corvesta-chat-widget.mjs","sources":["../../../../projects/corvesta/chat-widget/src/lib/models/chat-widget-type.ts","../../../../projects/corvesta/chat-widget/src/lib/components/talkdesk-chat/talkdesk-chat.component.ts","../../../../projects/corvesta/chat-widget/src/lib/components/chat-widget/chat-widget.component.ts","../../../../projects/corvesta/chat-widget/src/lib/chat-widget.module.ts","../../../../projects/corvesta/chat-widget/src/lib/components/genesys-script/genesys-script.component.ts","../../../../projects/corvesta/chat-widget/src/lib/components/auvious-cobrowse/auvious-cobrowse.component.ts","../../../../projects/corvesta/chat-widget/src/public-api.ts","../../../../projects/corvesta/chat-widget/src/corvesta-chat-widget.ts"],"sourcesContent":["export enum ChatWidgetType {\r\n\tOFF = 'OFF',\r\n\t// GENESYS = 'GENESYS',\r\n\tTALKDESK = 'TALKDESK'\r\n}\r\n","import { Component, Input, OnInit } from '@angular/core';\r\n\r\ndeclare var TalkdeskChatSDK: any;\r\n\r\n@Component({\r\n\tselector: 'lib-talkdesk-chat',\r\n\ttemplate: '',\r\n\tstyles: [''],\r\n\tstandalone: false\r\n})\r\nexport class TalkdeskChatComponent implements OnInit {\r\n\t@Input() chatClientId!: string;\r\n\t@Input() chatClientRegion!: string;\r\n\t@Input() chatBranding!: any;\r\n\r\n\tconstructor() {\r\n\t}\r\n\r\n\tpublic ngOnInit(): void {\r\n\t\tthis.createTalkDeskWidget();\r\n\t}\r\n\r\n\tprivate createTalkDeskWidget(): void {\r\n\r\n\t\tlet webchat;\r\n\t\t((window, document, node, props, configs) => {\r\n\t\t\tif ((window as any).TalkdeskChatSDK) {\r\n\t\t\t\tconsole.error('TalkdeskChatSDK already included');\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tconst divContainer = document.createElement('div');\r\n\t\t\tdivContainer.id = node;\r\n\t\t\tdocument.body.appendChild(divContainer);\r\n\t\t\tconst src = `https://talkdeskchatsdk.talkdeskapp.com/v2/talkdeskchatsdk.js`;\r\n\t\t\tconst script: HTMLScriptElement = document.createElement('script');\r\n\t\t\tconst firstScriptTag: HTMLScriptElement = document.getElementsByTagName('script')[0];\r\n\t\t\tscript.type = 'text/javascript';\r\n\t\t\tscript.charset = 'UTF-8';\r\n\t\t\tscript.id = 'tdwebchatscript';\r\n\t\t\tscript.src = src;\r\n\t\t\tscript.async = true;\r\n\t\t\tfirstScriptTag.parentNode?.insertBefore(script, firstScriptTag);\r\n\t\t\tscript.onload = () => {\r\n\t\t\t\twebchat = TalkdeskChatSDK(node, props);\r\n\t\t\t\twebchat.init(configs);\r\n\t\t\t\t/*\r\n\t\t\t\t * Send custom data from your website to TalkDesk!\r\n\t\t\t\t * If you would like to do it, you need to remove the following commented code and\r\n\t\t\t\t * modify the webchat.setContextParam parameters to pass in the data you need.\r\n\t\t\t\t */\r\n\t\t\t\t/*function setContext() {\r\n\t\t\t\t webchat.setContextParam({ \"var1\": \"value1\", \"var2\": \"value2\", \"var3\": 100 })\r\n\t\t\t\t}\r\n\t\t\t\t// Send data when the chat conversation is initiated\r\n\t\t\t\twebchat.onConversationStart = function() {\r\n\t\t\t\t setContext()\r\n\t\t\t\t}\r\n\t\t\t\t// Send data when the chat widget is open\r\n\t\t\t\twebchat.onOpenWebchat = function() {\r\n\t\t\t\t setContext()\r\n\t\t\t\t}*/\r\n\t\t\t};\r\n\t\t})(\r\n\t\t\twindow,\r\n\t\t\tdocument,\r\n\t\t\t'tdWebchat',\r\n\t\t\t{touchpointId: this.chatClientId, accountId: '', region: this.chatClientRegion},\r\n\t\t\t{...this.chatBranding}\r\n\t\t);\r\n\t}\r\n}\r\n","import { Component, Input } from '@angular/core';\r\nimport { ChatWidgetType } from '../../models/chat-widget-type';\r\nimport { ChatConfig } from '../../models/chat-config';\r\n\r\n@Component({\r\n\tselector: 'lib-chat-widget',\r\n\ttemplate: `\r\n <ng-container [ngSwitch]=\"chatType\">\r\n <lib-talkdesk-chat *ngSwitchCase=\"ChatWidgetType.TALKDESK\"\r\n [chatBranding]=\"chatConfig.chatBranding\"\r\n [chatClientId]=\"chatConfig.chatClientId\"\r\n [chatClientRegion]=\"chatConfig.chatClientRegion\"></lib-talkdesk-chat>\r\n <ng-container *ngSwitchCase=\"ChatWidgetType.OFF\"></ng-container>\r\n <ng-container *ngSwitchDefault></ng-container>\r\n </ng-container>\r\n `,\r\n\tstyles: [],\r\n\tstandalone: false\r\n})\r\nexport class ChatWidgetComponent {\r\n\t@Input() chatType!: ChatWidgetType;\r\n\t@Input() chatConfig!: ChatConfig;\r\n\r\n\tprotected readonly ChatWidgetType = ChatWidgetType;\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { ChatWidgetComponent } from './components/chat-widget/chat-widget.component';\r\nimport { TalkdeskChatComponent } from './components/talkdesk-chat/talkdesk-chat.component';\r\nimport { NgSwitch, NgSwitchCase, NgSwitchDefault } from '@angular/common';\r\n\r\n\r\n@NgModule({\r\n\tdeclarations: [\r\n\t\tChatWidgetComponent,\r\n\t\tTalkdeskChatComponent\r\n\t],\r\n\timports: [\r\n\t\tNgSwitch,\r\n\t\tNgSwitchCase,\r\n\t\tNgSwitchDefault\r\n\t],\r\n\texports: [\r\n\t\tChatWidgetComponent\r\n\t]\r\n})\r\nexport class ChatWidgetModule {\r\n}\r\n","import { Component, Input } from '@angular/core';\r\n\r\n@Component({\r\n\tselector: 'lib-genesys-script',\r\n\timports: [],\r\n\ttemplate: '',\r\n\tstyles: ''\r\n})\r\nexport class GenesysScriptComponent {\r\n\tprivate scriptElement: HTMLScriptElement | null = null;\r\n\r\n\tprivate _deploymentId: string = '';\r\n\r\n\tget deploymentId(): string {\r\n\t\treturn this._deploymentId;\r\n\t}\r\n\r\n\t@Input({required: true})\r\n\tset deploymentId(value: string) {\r\n\t\tthis._deploymentId = value;\r\n\t\tthis.updateScriptTag();\r\n\t}\r\n\r\n\tprivate _environment: string = 'prod-usw2';\r\n\r\n\tget environment(): string {\r\n\t\treturn this._environment;\r\n\t}\r\n\r\n\t@Input()\r\n\tset environment(value: string) {\r\n\t\tthis._environment = value;\r\n\t\tthis.updateScriptTag();\r\n\t}\r\n\r\n\tprivate _genesysScriptUrl: string = 'https://apps.usw2.pure.cloud/genesys-bootstrap/genesys.min.js';\r\n\r\n\tget genesysScriptUrl(): string {\r\n\t\treturn this._genesysScriptUrl;\r\n\t}\r\n\r\n\t@Input()\r\n\tset genesysScriptUrl(value: string) {\r\n\t\tthis._genesysScriptUrl = value;\r\n\t\tthis.updateScriptTag();\r\n\t}\r\n\r\n\tprivate updateScriptTag() {\r\n\t\tif (!this.deploymentId) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tconst script: string = `(function (g, e, n, es, ys) {\r\n\t\t\tg['_genesysJs'] = e;\r\n\t\t\tg[e] = g[e] || function () {\r\n\t\t\t\t(g[e].q = g[e].q || []).push(arguments)\r\n\t\t\t};\r\n\t\t\tg[e].t = 1 * new Date();\r\n\t\t\tg[e].c = es;\r\n\t\t\tys = document.createElement('script');\r\n\t\t\tys.async = 1;\r\n\t\t\tys.src = n;\r\n\t\t\tys.charset = 'utf-8';\r\n\t\t\tdocument.head.appendChild(ys);\r\n\t\t})(window, 'Genesys', '${this.genesysScriptUrl}', {\r\n\t\t\tenvironment: '${this.environment}',\r\n\t\t\tdeploymentId: '${this.deploymentId}'\r\n\t\t});`;\r\n\r\n\t\tif (this.scriptElement) {\r\n\t\t\tthis.scriptElement.remove();\r\n\t\t}\r\n\r\n\t\t// Create new script element\r\n\t\tthis.scriptElement = document.createElement('script');\r\n\t\tthis.scriptElement.type = 'text/javascript';\r\n\t\tthis.scriptElement.text = script;\r\n\r\n\t\t// Add an ID for easier reference\r\n\t\tthis.scriptElement.id = `genesys-script-${Date.now()}`;\r\n\r\n\t\t// Append the new script\r\n\t\tdocument.head.appendChild(this.scriptElement);\r\n\t}\r\n}\r\n","import { Component, Input } from '@angular/core';\r\n\r\n@Component({\r\n\tselector: 'lib-auvious-cobrowse',\r\n\timports: [],\r\n\ttemplate: '',\r\n\tstyles: []\r\n})\r\nexport class AuviousCobrowseComponent {\r\n\t// The message displayed above the code input field.\r\n\t@Input() connectionMessage: string = '';\r\n\r\n\t// Configuration for the application ID, which determines which application the widget will accept connections from.\r\n\tprivate _applicationId: string = '';\r\n\r\n\tget applicationId(): string {\r\n\t\treturn this._applicationId;\r\n\t}\r\n\r\n\t@Input({required: true})\r\n\tset applicationId(value: string) {\r\n\t\tthis._applicationId = value;\r\n\t\tif (this._applicationId) {\r\n\t\t\tthis.initializeCobrowse();\r\n\t\t}\r\n\t}\r\n\r\n\t// Configuration for shifting the widget to the right when Talkdesk Chat is enabled.\r\n\tprivate _isTalkdeskChatEnabled: boolean = false;\r\n\r\n\tget isTalkdeskChatEnabled(): boolean {\r\n\t\treturn this._isTalkdeskChatEnabled;\r\n\t}\r\n\r\n\t@Input({required: true})\r\n\tset isTalkdeskChatEnabled(value: boolean) {\r\n\t\tthis._isTalkdeskChatEnabled = value;\r\n\t\tthis.adjustFloatingMargin();\r\n\t}\r\n\r\n\t// Configuration for customizing the widget colors, mainly effecting the icon color.\r\n\tprivate _primaryColor: string = 'black';\r\n\r\n\tget primaryColor(): string {\r\n\t\treturn this._primaryColor;\r\n\t}\r\n\r\n\t@Input()\r\n\tset primaryColor(value: string) {\r\n\t\tthis._primaryColor = value;\r\n\t\tif (this._primaryColor) {\r\n\t\t\tdocument.documentElement.style.setProperty('--av-color-primary', this._primaryColor);\r\n\t\t} else {\r\n\t\t\tdocument.documentElement.style.setProperty('--av-color-primary', 'black');\r\n\t\t}\r\n\t}\r\n\r\n\t// Configuration for customizing the widget colors, mainly effecting the button color within the popup.\r\n\tprivate _accentColor: string = 'black';\r\n\r\n\tget accentColor(): string {\r\n\t\treturn this._accentColor;\r\n\t}\r\n\r\n\t@Input()\r\n\tset accentColor(value: string) {\r\n\t\tthis._accentColor = value;\r\n\t\tif (this._accentColor) {\r\n\t\t\tdocument.documentElement.style.setProperty('--av-color-accent', this._accentColor);\r\n\t\t} else {\r\n\t\t\tdocument.documentElement.style.setProperty('--av-color-accent', 'black');\r\n\t\t}\r\n\t}\r\n\r\n\tadjustFloatingMargin() {\r\n\t\tdocument.documentElement.style.setProperty('--av-floating-margin-right', this._isTalkdeskChatEnabled ? '80px' : '20px');\r\n\t}\r\n\r\n\tprivate initializeCobrowse() {\r\n\t\tconst defaultScript: HTMLScriptElement = document.createElement('script');\r\n\t\tdefaultScript.type = 'module';\r\n\t\tdefaultScript.src = 'https://auvious.video/widget/dist/auvious/auvious.esm.js';\r\n\t\tconst fallbackScript: HTMLScriptElement = document.createElement('script');\r\n\t\tfallbackScript.noModule = true;\r\n\t\tfallbackScript.src = 'https://auvious.video/widget/dist/auvious/auvious.js';\r\n\t\tdocument.head.append(defaultScript, fallbackScript);\r\n\r\n\t\tconst widgetOptions = {\r\n\t\t\t'application-id': this._applicationId,\r\n\t\t\t'active-widgets': 'cobrowse',\r\n\t\t\t'application-verify-source': true\r\n\t\t};\r\n\r\n\t\tconst showWidget = () => {\r\n\r\n\t\t\t// create our widget\r\n\t\t\tconst widget = document.createElement('app-auvious-widget');\r\n\r\n\t\t\t// get all the widget options and pass it to our widget.\r\n\t\t\tfor (const key of Object.keys(widgetOptions)) {\r\n\t\t\t\t// @ts-ignore\r\n\t\t\t\tconst value = widgetOptions[key];\r\n\t\t\t\twidget.setAttribute(key, value);\r\n\t\t\t}\r\n\r\n\t\t\tif (this.connectionMessage) {\r\n\t\t\t\t// @ts-ignore\r\n\t\t\t\twidget.setTranslations(\r\n\t\t\t\t\t{'Please enter the 7-digit code provided by the agent.': this.connectionMessage},\r\n\t\t\t\t\t'en'\r\n\t\t\t\t);\r\n\t\t\t}\r\n\r\n\t\t\t// add the newly created widget to the body.\r\n\t\t\tdocument.body.appendChild(widget);\r\n\t\t};\r\n\r\n\t\t(async () => {\r\n\t\t\tawait customElements.whenDefined('app-auvious-widget');\r\n\t\t\tshowWidget();\r\n\t\t})();\r\n\t}\r\n}\r\n","/*\r\n * Public API Surface of chat-widget\r\n */\r\n\r\nexport * from './lib/components/chat-widget/chat-widget.component';\r\nexport * from './lib/chat-widget.module';\r\nexport * from './lib/models/chat-config';\r\nexport * from './lib/models/chat-widget-type';\r\nexport * from './lib/components/genesys-script/genesys-script.component';\r\nexport * from './lib/components/auvious-cobrowse/auvious-cobrowse.component';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i2.TalkdeskChatComponent"],"mappings":";;;;;IAAY;AAAZ,CAAA,UAAY,cAAc,EAAA;AACzB,IAAA,cAAA,CAAA,KAAA,CAAA,GAAA,KAAW;;AAEX,IAAA,cAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACtB,CAAC,EAJW,cAAc,KAAd,cAAc,GAAA,EAAA,CAAA,CAAA;;MCUb,qBAAqB,CAAA;AAKjC,IAAA,WAAA,GAAA;IACA;IAEO,QAAQ,GAAA;QACd,IAAI,CAAC,oBAAoB,EAAE;IAC5B;IAEQ,oBAAoB,GAAA;AAE3B,QAAA,IAAI,OAAO;QACX,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,KAAI;AAC3C,YAAA,IAAK,MAAc,CAAC,eAAe,EAAE;AACpC,gBAAA,OAAO,CAAC,KAAK,CAAC,kCAAkC,CAAC;gBACjD;YACD;YACA,MAAM,YAAY,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC;AAClD,YAAA,YAAY,CAAC,EAAE,GAAG,IAAI;AACtB,YAAA,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC;YACvC,MAAM,GAAG,GAAG,CAAA,6DAAA,CAA+D;YAC3E,MAAM,MAAM,GAAsB,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC;YAClE,MAAM,cAAc,GAAsB,QAAQ,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;AACpF,YAAA,MAAM,CAAC,IAAI,GAAG,iBAAiB;AAC/B,YAAA,MAAM,CAAC,OAAO,GAAG,OAAO;AACxB,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ta/chat-widget/src/lib/models/chat-widget-type.ts","../../../../projects/corvesta/chat-widget/src/lib/components/talkdesk-chat/talkdesk-chat.component.ts","../../../../projects/corvesta/chat-widget/src/lib/components/chat-widget/chat-widget.component.ts","../../../../projects/corvesta/chat-widget/src/lib/chat-widget.module.ts","../../../../projects/corvesta/chat-widget/src/lib/components/genesys-script/genesys-script.component.ts","../../../../projects/corvesta/chat-widget/src/lib/components/auvious-cobrowse/auvious-cobrowse.component.ts","../../../../projects/corvesta/chat-widget/src/public-api.ts","../../../../projects/corvesta/chat-widget/src/corvesta-chat-widget.ts"],"sourcesContent":["export enum ChatWidgetType {\r\n\tOFF = 'OFF',\r\n\t// GENESYS = 'GENESYS',\r\n\tTALKDESK = 'TALKDESK'\r\n}\r\n","import { Component, Input, OnInit } from '@angular/core';\r\n\r\ndeclare var TalkdeskChatSDK: any;\r\n\r\n@Component({\r\n\tselector: 'lib-talkdesk-chat',\r\n\ttemplate: '',\r\n\tstyles: [''],\r\n\tstandalone: false\r\n})\r\nexport class TalkdeskChatComponent implements OnInit {\r\n\t@Input() chatClientId!: string;\r\n\t@Input() chatClientRegion!: string;\r\n\t@Input() chatBranding!: any;\r\n\r\n\tconstructor() {\r\n\t}\r\n\r\n\tpublic ngOnInit(): void {\r\n\t\tthis.createTalkDeskWidget();\r\n\t}\r\n\r\n\tprivate createTalkDeskWidget(): void {\r\n\r\n\t\tlet webchat;\r\n\t\t((window, document, node, props, configs) => {\r\n\t\t\tif ((window as any).TalkdeskChatSDK) {\r\n\t\t\t\tconsole.error('TalkdeskChatSDK already included');\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tconst divContainer = document.createElement('div');\r\n\t\t\tdivContainer.id = node;\r\n\t\t\tdocument.body.appendChild(divContainer);\r\n\t\t\tconst src = `https://talkdeskchatsdk.talkdeskapp.com/v2/talkdeskchatsdk.js`;\r\n\t\t\tconst script: HTMLScriptElement = document.createElement('script');\r\n\t\t\tconst firstScriptTag: HTMLScriptElement = document.getElementsByTagName('script')[0];\r\n\t\t\tscript.type = 'text/javascript';\r\n\t\t\tscript.charset = 'UTF-8';\r\n\t\t\tscript.id = 'tdwebchatscript';\r\n\t\t\tscript.src = src;\r\n\t\t\tscript.async = true;\r\n\t\t\tfirstScriptTag.parentNode?.insertBefore(script, firstScriptTag);\r\n\t\t\tscript.onload = () => {\r\n\t\t\t\twebchat = TalkdeskChatSDK(node, props);\r\n\t\t\t\twebchat.init(configs);\r\n\t\t\t\t/*\r\n\t\t\t\t * Send custom data from your website to TalkDesk!\r\n\t\t\t\t * If you would like to do it, you need to remove the following commented code and\r\n\t\t\t\t * modify the webchat.setContextParam parameters to pass in the data you need.\r\n\t\t\t\t */\r\n\t\t\t\t/*function setContext() {\r\n\t\t\t\t webchat.setContextParam({ \"var1\": \"value1\", \"var2\": \"value2\", \"var3\": 100 })\r\n\t\t\t\t}\r\n\t\t\t\t// Send data when the chat conversation is initiated\r\n\t\t\t\twebchat.onConversationStart = function() {\r\n\t\t\t\t setContext()\r\n\t\t\t\t}\r\n\t\t\t\t// Send data when the chat widget is open\r\n\t\t\t\twebchat.onOpenWebchat = function() {\r\n\t\t\t\t setContext()\r\n\t\t\t\t}*/\r\n\t\t\t};\r\n\t\t})(\r\n\t\t\twindow,\r\n\t\t\tdocument,\r\n\t\t\t'tdWebchat',\r\n\t\t\t{touchpointId: this.chatClientId, accountId: '', region: this.chatClientRegion},\r\n\t\t\t{...this.chatBranding}\r\n\t\t);\r\n\t}\r\n}\r\n","import { Component, Input } from '@angular/core';\r\nimport { ChatWidgetType } from '../../models/chat-widget-type';\r\nimport { ChatConfig } from '../../models/chat-config';\r\n\r\n@Component({\r\n\tselector: 'lib-chat-widget',\r\n\ttemplate: `\r\n\t\t@switch (chatType) {\r\n\t\t\t@case (ChatWidgetType.TALKDESK) {\r\n\t\t\t\t<lib-talkdesk-chat\r\n\t\t\t\t\t[chatBranding]=\"chatConfig.chatBranding\"\r\n\t\t\t\t\t[chatClientId]=\"chatConfig.chatClientId\"\r\n\t\t\t\t\t[chatClientRegion]=\"chatConfig.chatClientRegion\"></lib-talkdesk-chat>\r\n\t\t\t} @case (ChatWidgetType.OFF) {\r\n\t\t\t} @default {\r\n\t\t\t}\r\n\t\t}\r\n\t`,\r\n\tstyles: [],\r\n\tstandalone: false\r\n})\r\nexport class ChatWidgetComponent {\r\n\t@Input() chatType!: ChatWidgetType;\r\n\t@Input() chatConfig!: ChatConfig;\r\n\r\n\tprotected readonly ChatWidgetType = ChatWidgetType;\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { ChatWidgetComponent } from './components/chat-widget/chat-widget.component';\r\nimport { TalkdeskChatComponent } from './components/talkdesk-chat/talkdesk-chat.component';\r\n\r\n\r\n@NgModule({\r\n\tdeclarations: [\r\n\t\tChatWidgetComponent,\r\n\t\tTalkdeskChatComponent\r\n\t],\r\n\timports: [\r\n\t],\r\n\texports: [\r\n\t\tChatWidgetComponent\r\n\t]\r\n})\r\nexport class ChatWidgetModule {\r\n}\r\n","import { Component, Input } from '@angular/core';\r\n\r\n@Component({\r\n\tselector: 'lib-genesys-script',\r\n\timports: [],\r\n\ttemplate: '',\r\n\tstyles: ''\r\n})\r\nexport class GenesysScriptComponent {\r\n\tprivate scriptElement: HTMLScriptElement | null = null;\r\n\r\n\tprivate _deploymentId: string = '';\r\n\r\n\tget deploymentId(): string {\r\n\t\treturn this._deploymentId;\r\n\t}\r\n\r\n\t@Input({required: true})\r\n\tset deploymentId(value: string) {\r\n\t\tthis._deploymentId = value;\r\n\t\tthis.updateScriptTag();\r\n\t}\r\n\r\n\tprivate _environment: string = 'prod-usw2';\r\n\r\n\tget environment(): string {\r\n\t\treturn this._environment;\r\n\t}\r\n\r\n\t@Input()\r\n\tset environment(value: string) {\r\n\t\tthis._environment = value;\r\n\t\tthis.updateScriptTag();\r\n\t}\r\n\r\n\tprivate _genesysScriptUrl: string = 'https://apps.usw2.pure.cloud/genesys-bootstrap/genesys.min.js';\r\n\r\n\tget genesysScriptUrl(): string {\r\n\t\treturn this._genesysScriptUrl;\r\n\t}\r\n\r\n\t@Input()\r\n\tset genesysScriptUrl(value: string) {\r\n\t\tthis._genesysScriptUrl = value;\r\n\t\tthis.updateScriptTag();\r\n\t}\r\n\r\n\tprivate updateScriptTag() {\r\n\t\tif (!this.deploymentId) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tconst script: string = `(function (g, e, n, es, ys) {\r\n\t\t\tg['_genesysJs'] = e;\r\n\t\t\tg[e] = g[e] || function () {\r\n\t\t\t\t(g[e].q = g[e].q || []).push(arguments)\r\n\t\t\t};\r\n\t\t\tg[e].t = 1 * new Date();\r\n\t\t\tg[e].c = es;\r\n\t\t\tys = document.createElement('script');\r\n\t\t\tys.async = 1;\r\n\t\t\tys.src = n;\r\n\t\t\tys.charset = 'utf-8';\r\n\t\t\tdocument.head.appendChild(ys);\r\n\t\t})(window, 'Genesys', '${this.genesysScriptUrl}', {\r\n\t\t\tenvironment: '${this.environment}',\r\n\t\t\tdeploymentId: '${this.deploymentId}'\r\n\t\t});`;\r\n\r\n\t\tif (this.scriptElement) {\r\n\t\t\tthis.scriptElement.remove();\r\n\t\t}\r\n\r\n\t\t// Create new script element\r\n\t\tthis.scriptElement = document.createElement('script');\r\n\t\tthis.scriptElement.type = 'text/javascript';\r\n\t\tthis.scriptElement.text = script;\r\n\r\n\t\t// Add an ID for easier reference\r\n\t\tthis.scriptElement.id = `genesys-script-${Date.now()}`;\r\n\r\n\t\t// Append the new script\r\n\t\tdocument.head.appendChild(this.scriptElement);\r\n\t}\r\n}\r\n","import { Component, Input } from '@angular/core';\r\n\r\n@Component({\r\n\tselector: 'lib-auvious-cobrowse',\r\n\timports: [],\r\n\ttemplate: '',\r\n\tstyles: []\r\n})\r\nexport class AuviousCobrowseComponent {\r\n\t// The message displayed above the code input field.\r\n\t@Input() connectionMessage: string = '';\r\n\r\n\t// Configuration for the application ID, which determines which application the widget will accept connections from.\r\n\tprivate _applicationId: string = '';\r\n\r\n\tget applicationId(): string {\r\n\t\treturn this._applicationId;\r\n\t}\r\n\r\n\t@Input({required: true})\r\n\tset applicationId(value: string) {\r\n\t\tthis._applicationId = value;\r\n\t\tif (this._applicationId) {\r\n\t\t\tthis.initializeCobrowse();\r\n\t\t}\r\n\t}\r\n\r\n\t// Configuration for shifting the widget to the right when Talkdesk Chat is enabled.\r\n\tprivate _isTalkdeskChatEnabled: boolean = false;\r\n\r\n\tget isTalkdeskChatEnabled(): boolean {\r\n\t\treturn this._isTalkdeskChatEnabled;\r\n\t}\r\n\r\n\t@Input({required: true})\r\n\tset isTalkdeskChatEnabled(value: boolean) {\r\n\t\tthis._isTalkdeskChatEnabled = value;\r\n\t\tthis.adjustFloatingMargin();\r\n\t}\r\n\r\n\t// Configuration for customizing the widget colors, mainly effecting the icon color.\r\n\tprivate _primaryColor: string = 'black';\r\n\r\n\tget primaryColor(): string {\r\n\t\treturn this._primaryColor;\r\n\t}\r\n\r\n\t@Input()\r\n\tset primaryColor(value: string) {\r\n\t\tthis._primaryColor = value;\r\n\t\tif (this._primaryColor) {\r\n\t\t\tdocument.documentElement.style.setProperty('--av-color-primary', this._primaryColor);\r\n\t\t} else {\r\n\t\t\tdocument.documentElement.style.setProperty('--av-color-primary', 'black');\r\n\t\t}\r\n\t}\r\n\r\n\t// Configuration for customizing the widget colors, mainly effecting the button color within the popup.\r\n\tprivate _accentColor: string = 'black';\r\n\r\n\tget accentColor(): string {\r\n\t\treturn this._accentColor;\r\n\t}\r\n\r\n\t@Input()\r\n\tset accentColor(value: string) {\r\n\t\tthis._accentColor = value;\r\n\t\tif (this._accentColor) {\r\n\t\t\tdocument.documentElement.style.setProperty('--av-color-accent', this._accentColor);\r\n\t\t} else {\r\n\t\t\tdocument.documentElement.style.setProperty('--av-color-accent', 'black');\r\n\t\t}\r\n\t}\r\n\r\n\tadjustFloatingMargin() {\r\n\t\tdocument.documentElement.style.setProperty('--av-floating-margin-right', this._isTalkdeskChatEnabled ? '80px' : '20px');\r\n\t}\r\n\r\n\tprivate initializeCobrowse() {\r\n\t\tconst defaultScript: HTMLScriptElement = document.createElement('script');\r\n\t\tdefaultScript.type = 'module';\r\n\t\tdefaultScript.src = 'https://auvious.video/widget/dist/auvious/auvious.esm.js';\r\n\t\tconst fallbackScript: HTMLScriptElement = document.createElement('script');\r\n\t\tfallbackScript.noModule = true;\r\n\t\tfallbackScript.src = 'https://auvious.video/widget/dist/auvious/auvious.js';\r\n\t\tdocument.head.append(defaultScript, fallbackScript);\r\n\r\n\t\tconst widgetOptions = {\r\n\t\t\t'application-id': this._applicationId,\r\n\t\t\t'active-widgets': 'cobrowse',\r\n\t\t\t'application-verify-source': true\r\n\t\t};\r\n\r\n\t\tconst showWidget = () => {\r\n\r\n\t\t\t// create our widget\r\n\t\t\tconst widget = document.createElement('app-auvious-widget');\r\n\r\n\t\t\t// get all the widget options and pass it to our widget.\r\n\t\t\tfor (const key of Object.keys(widgetOptions)) {\r\n\t\t\t\t// @ts-ignore\r\n\t\t\t\tconst value = widgetOptions[key];\r\n\t\t\t\twidget.setAttribute(key, value);\r\n\t\t\t}\r\n\r\n\t\t\tif (this.connectionMessage) {\r\n\t\t\t\t// @ts-ignore\r\n\t\t\t\twidget.setTranslations(\r\n\t\t\t\t\t{'Please enter the 7-digit code provided by the agent.': this.connectionMessage},\r\n\t\t\t\t\t'en'\r\n\t\t\t\t);\r\n\t\t\t}\r\n\r\n\t\t\t// add the newly created widget to the body.\r\n\t\t\tdocument.body.appendChild(widget);\r\n\t\t};\r\n\r\n\t\t(async () => {\r\n\t\t\tawait customElements.whenDefined('app-auvious-widget');\r\n\t\t\tshowWidget();\r\n\t\t})();\r\n\t}\r\n}\r\n","/*\r\n * Public API Surface of chat-widget\r\n */\r\n\r\nexport * from './lib/components/chat-widget/chat-widget.component';\r\nexport * from './lib/chat-widget.module';\r\nexport * from './lib/models/chat-config';\r\nexport * from './lib/models/chat-widget-type';\r\nexport * from './lib/components/genesys-script/genesys-script.component';\r\nexport * from './lib/components/auvious-cobr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;8GAjHY,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAxB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,wBAAwB,8QAH1B,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,CAAA;;2FAGA,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBANpC,SAAS;+BACC,sBAAsB,EAAA,OAAA,EACvB,EAAE,EAAA,QAAA,EACD,EAAE,EAAA;;sBAKX;;sBASA,KAAK;uBAAC,EAAC,QAAQ,EAAE,IAAI,EAAC;;sBAetB,KAAK;uBAAC,EAAC,QAAQ,EAAE,IAAI,EAAC;;sBAatB;;sBAiBA;;;AChEF;;AAEG;;ACFH;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@corvesta/chat-widget",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "21.0.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^
|
|
6
|
-
"@angular/core": "^
|
|
5
|
+
"@angular/common": "^21.0.0",
|
|
6
|
+
"@angular/core": "^21.0.0"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"tslib": "^2.3.0"
|
|
10
10
|
},
|
|
11
11
|
"sideEffects": false,
|
|
12
12
|
"module": "fesm2022/corvesta-chat-widget.mjs",
|
|
13
|
-
"typings": "
|
|
13
|
+
"typings": "types/corvesta-chat-widget.d.ts",
|
|
14
14
|
"exports": {
|
|
15
15
|
"./package.json": {
|
|
16
16
|
"default": "./package.json"
|
|
17
17
|
},
|
|
18
18
|
".": {
|
|
19
|
-
"types": "./
|
|
19
|
+
"types": "./types/corvesta-chat-widget.d.ts",
|
|
20
20
|
"default": "./fesm2022/corvesta-chat-widget.mjs"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { OnInit } from '@angular/core';
|
|
3
|
-
import * as i3 from '@angular/common';
|
|
4
3
|
|
|
5
4
|
declare enum ChatWidgetType {
|
|
6
5
|
OFF = "OFF",
|
|
@@ -34,7 +33,7 @@ declare class TalkdeskChatComponent implements OnInit {
|
|
|
34
33
|
|
|
35
34
|
declare class ChatWidgetModule {
|
|
36
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChatWidgetModule, never>;
|
|
37
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ChatWidgetModule, [typeof ChatWidgetComponent, typeof TalkdeskChatComponent],
|
|
36
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ChatWidgetModule, [typeof ChatWidgetComponent, typeof TalkdeskChatComponent], never, [typeof ChatWidgetComponent]>;
|
|
38
37
|
static ɵinj: i0.ɵɵInjectorDeclaration<ChatWidgetModule>;
|
|
39
38
|
}
|
|
40
39
|
|