@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.
@@ -746,6 +746,8 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
746
746
  "event.response.end",
747
747
  "event.response.stop",
748
748
  "event.thread.change",
749
+ "event.project.change",
750
+ "event.connectors.change",
749
751
  "event.tool.change",
750
752
  "event.thread.load.start",
751
753
  "event.thread.load.end",
@@ -851,7 +853,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
851
853
  "widget.Map"
852
854
  ];
853
855
  const PROFILE_TO_RULES = {
854
- "chatkit": {
856
+ chatkit: {
855
857
  allow: [...BASE_CAPABILITY_ALLOWLIST, "thread.item.image_generation"],
856
858
  deny: BASE_CAPABILITY_DENYLIST
857
859
  }
@@ -2758,6 +2760,16 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
2758
2760
  }
2759
2761
  return onRequestPreview(request);
2760
2762
  },
2763
+ onConnectWorkspaceConnector: async (request) => {
2764
+ var _a2, _b2, _c2;
2765
+ const connect = (_c2 = (_b2 = (_a2 = __privateGet(this, _opts)) == null ? void 0 : _a2.composer) == null ? void 0 : _b2.resources) == null ? void 0 : _c2.onConnect;
2766
+ if (!connect) {
2767
+ __privateMethod(this, _ChatKitElementBase_instances, emitAndThrow_fn).call(this, new IntegrationError(
2768
+ "Add composer.resources.onConnect to handle workspace Connector connections."
2769
+ ));
2770
+ }
2771
+ return connect(request);
2772
+ },
2761
2773
  onWorkbenchClientCommand: async ({
2762
2774
  commandKey,
2763
2775
  payload,