@telia-ace/knowledge-widget-bot-provider 0.0.1-alpha.4 → 0.0.1-alpha.5
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/lib/plugin.js +4 -1
- package/lib-esm/plugin.js +4 -1
- package/package.json +1 -1
package/lib/plugin.js
CHANGED
|
@@ -109,7 +109,10 @@ var ConversationPlugin = function (container) { return __awaiter(void 0, void 0,
|
|
|
109
109
|
});
|
|
110
110
|
platform.registerProvider('chat.bot', function (conversation, component) {
|
|
111
111
|
(0, widget_conversation_1.registerCustomMessageComponent)(container, 'ace-knowledge-contact-method', Promise.resolve().then(function () { return __importStar(require('./contract/custom-component/contact-method')); }));
|
|
112
|
-
var agent = conversation.createAgent({
|
|
112
|
+
var agent = conversation.createAgent({
|
|
113
|
+
name: 'John Doe',
|
|
114
|
+
avatar: 'https://www.site.com/avatar.jpg',
|
|
115
|
+
});
|
|
113
116
|
// pases the user and the agent to the Chat Helper
|
|
114
117
|
chat_client_1.default.initialize(conversation.user, agent);
|
|
115
118
|
// passes the conversation provider to the Contact Method Client
|
package/lib-esm/plugin.js
CHANGED
|
@@ -81,7 +81,10 @@ var ConversationPlugin = function (container) { return __awaiter(void 0, void 0,
|
|
|
81
81
|
});
|
|
82
82
|
platform.registerProvider('chat.bot', function (conversation, component) {
|
|
83
83
|
registerCustomMessageComponent(container, 'ace-knowledge-contact-method', import('./contract/custom-component/contact-method'));
|
|
84
|
-
var agent = conversation.createAgent({
|
|
84
|
+
var agent = conversation.createAgent({
|
|
85
|
+
name: 'John Doe',
|
|
86
|
+
avatar: 'https://www.site.com/avatar.jpg',
|
|
87
|
+
});
|
|
85
88
|
// pases the user and the agent to the Chat Helper
|
|
86
89
|
ChatClient.initialize(conversation.user, agent);
|
|
87
90
|
// passes the conversation provider to the Contact Method Client
|
package/package.json
CHANGED