@xpert-ai/chatkit-web-component 0.5.3 → 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.
@@ -742,6 +742,8 @@ const BASE_CAPABILITY_ALLOWLIST = [
742
742
  "event.response.end",
743
743
  "event.response.stop",
744
744
  "event.thread.change",
745
+ "event.project.change",
746
+ "event.connectors.change",
745
747
  "event.tool.change",
746
748
  "event.thread.load.start",
747
749
  "event.thread.load.end",
@@ -847,7 +849,7 @@ const BASE_CAPABILITY_DENYLIST = [
847
849
  "widget.Map"
848
850
  ];
849
851
  const PROFILE_TO_RULES = {
850
- "chatkit": {
852
+ chatkit: {
851
853
  allow: [...BASE_CAPABILITY_ALLOWLIST, "thread.item.image_generation"],
852
854
  deny: BASE_CAPABILITY_DENYLIST
853
855
  }
@@ -2754,6 +2756,16 @@ class ChatKitElementBase extends (_c = HTMLElement, _focusComposer_dec = [requir
2754
2756
  }
2755
2757
  return onRequestPreview(request);
2756
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
+ },
2757
2769
  onWorkbenchClientCommand: async ({
2758
2770
  commandKey,
2759
2771
  payload,