@xpert-ai/chatkit-ui5 0.17.0 → 0.17.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 +11 -1
- package/dist/chatkit.cjs.map +1 -1
- package/dist/chatkit.ui5.js +11 -1
- package/dist/chatkit.ui5.js.map +1 -1
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/chatkit.cjs
CHANGED
|
@@ -384,7 +384,13 @@ function createSecureChannelId() {
|
|
|
384
384
|
return null;
|
|
385
385
|
}
|
|
386
386
|
function safeRandomUUID() {
|
|
387
|
-
|
|
387
|
+
const id = createSecureChannelId();
|
|
388
|
+
if (id === null) {
|
|
389
|
+
throw new Error(
|
|
390
|
+
"ChatKit requires crypto.randomUUID or crypto.getRandomValues to generate secure UUIDs."
|
|
391
|
+
);
|
|
392
|
+
}
|
|
393
|
+
return id;
|
|
388
394
|
}
|
|
389
395
|
function isTrustedChatKitMessageEvent(event, { channelId, expectedOrigin, expectedSource }) {
|
|
390
396
|
const payload = event.data;
|
|
@@ -2618,6 +2624,10 @@ class ChatKitElementBase extends (_c = HTMLElement, _focusComposer_dec = [requir
|
|
|
2618
2624
|
}
|
|
2619
2625
|
return connect(request);
|
|
2620
2626
|
},
|
|
2627
|
+
onWorkbenchNavigationChange: async (navigation) => {
|
|
2628
|
+
var _a2, _b2, _c2;
|
|
2629
|
+
await ((_c2 = (_b2 = (_a2 = __privateGet(this, _opts)) == null ? void 0 : _a2.workbench) == null ? void 0 : _b2.onNavigationChange) == null ? void 0 : _c2.call(_b2, navigation));
|
|
2630
|
+
},
|
|
2621
2631
|
onWorkbenchClientCommand: async ({
|
|
2622
2632
|
commandKey,
|
|
2623
2633
|
payload,
|