@xpert-ai/chatkit-ui5 0.4.0 → 0.4.1
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/chatkit.cjs +32 -0
- package/dist/chatkit.cjs.map +1 -1
- package/dist/chatkit.ui5.js +32 -0
- package/dist/chatkit.ui5.js.map +1 -1
- package/dist/index.js +32 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/chatkit.cjs
CHANGED
|
@@ -2407,6 +2407,38 @@ class ChatKitElementBase extends (_c = HTMLElement, _focusComposer_dec = [requir
|
|
|
2407
2407
|
}
|
|
2408
2408
|
return onClientTool({ name, params, id, tool_call_id });
|
|
2409
2409
|
},
|
|
2410
|
+
onToolOutputAttachmentPreview: async (request) => {
|
|
2411
|
+
var _a2, _b2;
|
|
2412
|
+
const onRequestPreview = (_b2 = (_a2 = __privateGet(this, _opts)) == null ? void 0 : _a2.toolOutputAttachments) == null ? void 0 : _b2.onRequestPreview;
|
|
2413
|
+
if (!onRequestPreview) {
|
|
2414
|
+
__privateMethod(this, _ChatKitElementBase_instances, emitAndThrow_fn).call(this, new IntegrationError2(
|
|
2415
|
+
"No handler for tool-output attachment previews. Add toolOutputAttachments.onRequestPreview to your ChatKit options."
|
|
2416
|
+
));
|
|
2417
|
+
}
|
|
2418
|
+
return onRequestPreview(request);
|
|
2419
|
+
},
|
|
2420
|
+
onWorkbenchClientCommand: async ({
|
|
2421
|
+
commandKey,
|
|
2422
|
+
payload,
|
|
2423
|
+
hostType,
|
|
2424
|
+
hostId,
|
|
2425
|
+
viewKey
|
|
2426
|
+
}) => {
|
|
2427
|
+
var _a2, _b2;
|
|
2428
|
+
const onClientCommand = (_b2 = (_a2 = __privateGet(this, _opts)) == null ? void 0 : _a2.workbench) == null ? void 0 : _b2.onClientCommand;
|
|
2429
|
+
if (!onClientCommand) {
|
|
2430
|
+
__privateMethod(this, _ChatKitElementBase_instances, emitAndThrow_fn).call(this, new IntegrationError2(
|
|
2431
|
+
`No handler for workbench client command "${commandKey}". Add workbench.onClientCommand to your ChatKit options.`
|
|
2432
|
+
));
|
|
2433
|
+
}
|
|
2434
|
+
return onClientCommand({
|
|
2435
|
+
commandKey,
|
|
2436
|
+
payload,
|
|
2437
|
+
hostType,
|
|
2438
|
+
hostId,
|
|
2439
|
+
viewKey
|
|
2440
|
+
});
|
|
2441
|
+
},
|
|
2410
2442
|
onWidgetAction: async ({
|
|
2411
2443
|
action,
|
|
2412
2444
|
widgetItem
|