@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.ui5.js
CHANGED
|
@@ -385,7 +385,13 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
385
385
|
return null;
|
|
386
386
|
}
|
|
387
387
|
function safeRandomUUID() {
|
|
388
|
-
|
|
388
|
+
const id = createSecureChannelId();
|
|
389
|
+
if (id === null) {
|
|
390
|
+
throw new Error(
|
|
391
|
+
"ChatKit requires crypto.randomUUID or crypto.getRandomValues to generate secure UUIDs."
|
|
392
|
+
);
|
|
393
|
+
}
|
|
394
|
+
return id;
|
|
389
395
|
}
|
|
390
396
|
function isTrustedChatKitMessageEvent(event, { channelId, expectedOrigin, expectedSource }) {
|
|
391
397
|
const payload = event.data;
|
|
@@ -2619,6 +2625,10 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
2619
2625
|
}
|
|
2620
2626
|
return connect(request);
|
|
2621
2627
|
},
|
|
2628
|
+
onWorkbenchNavigationChange: async (navigation) => {
|
|
2629
|
+
var _a2, _b2, _c2;
|
|
2630
|
+
await ((_c2 = (_b2 = (_a2 = __privateGet(this, _opts)) == null ? void 0 : _a2.workbench) == null ? void 0 : _b2.onNavigationChange) == null ? void 0 : _c2.call(_b2, navigation));
|
|
2631
|
+
},
|
|
2622
2632
|
onWorkbenchClientCommand: async ({
|
|
2623
2633
|
commandKey,
|
|
2624
2634
|
payload,
|