@xpert-ai/chatkit-web-component 0.5.4 → 0.6.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.
package/dist/xpert-chatkit.js
CHANGED
|
@@ -2756,6 +2756,16 @@ class ChatKitElementBase extends (_c = HTMLElement, _focusComposer_dec = [requir
|
|
|
2756
2756
|
}
|
|
2757
2757
|
return onRequestPreview(request);
|
|
2758
2758
|
},
|
|
2759
|
+
onConnectWorkspaceConnector: async (request) => {
|
|
2760
|
+
var _a2, _b2, _c2;
|
|
2761
|
+
const connect = (_c2 = (_b2 = (_a2 = __privateGet(this, _opts)) == null ? void 0 : _a2.composer) == null ? void 0 : _b2.resources) == null ? void 0 : _c2.onConnect;
|
|
2762
|
+
if (!connect) {
|
|
2763
|
+
__privateMethod(this, _ChatKitElementBase_instances, emitAndThrow_fn).call(this, new IntegrationError2(
|
|
2764
|
+
"Add composer.resources.onConnect to handle workspace Connector connections."
|
|
2765
|
+
));
|
|
2766
|
+
}
|
|
2767
|
+
return connect(request);
|
|
2768
|
+
},
|
|
2759
2769
|
onWorkbenchClientCommand: async ({
|
|
2760
2770
|
commandKey,
|
|
2761
2771
|
payload,
|