@telia-ace/knowledge-widget-bot-provider 0.0.1-alpha.8 → 0.0.1-alpha.9

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 CHANGED
@@ -80,7 +80,10 @@ var ConversationPlugin = function (container) { return __awaiter(void 0, void 0,
80
80
  _a = __read(compPlatform.nodes.query({ type: 'conversation' }), 1), component = _a[0];
81
81
  endpoint = '';
82
82
  setTimeout(function () {
83
- endpoint = component.attributes.properties.knowledgeBotEndpoint;
83
+ var _a, _b;
84
+ if ((_b = (_a = component.attributes) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b.knowledgeBotEndpoint) {
85
+ endpoint = component.attributes.properties.knowledgeBotEndpoint;
86
+ }
84
87
  });
85
88
  platform.registerProvider('chat.bot', function (conversation, component) {
86
89
  registerCustomMessageComponent(container, 'ace-knowledge-contact-method', import('./contract/custom-component/contact-method'));
package/lib-esm/plugin.js CHANGED
@@ -80,7 +80,10 @@ var ConversationPlugin = function (container) { return __awaiter(void 0, void 0,
80
80
  _a = __read(compPlatform.nodes.query({ type: 'conversation' }), 1), component = _a[0];
81
81
  endpoint = '';
82
82
  setTimeout(function () {
83
- endpoint = component.attributes.properties.knowledgeBotEndpoint;
83
+ var _a, _b;
84
+ if ((_b = (_a = component.attributes) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b.knowledgeBotEndpoint) {
85
+ endpoint = component.attributes.properties.knowledgeBotEndpoint;
86
+ }
84
87
  });
85
88
  platform.registerProvider('chat.bot', function (conversation, component) {
86
89
  registerCustomMessageComponent(container, 'ace-knowledge-contact-method', import('./contract/custom-component/contact-method'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telia-ace/knowledge-widget-bot-provider",
3
- "version": "0.0.1-alpha.8",
3
+ "version": "0.0.1-alpha.9",
4
4
  "description": "Bot Provider Plugin ACE Knowledge Widgets.",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "author": "Telia Company AB",