@memberjunction/realtime-widget 6.3.0-edge.1 → 6.3.0-edge.3
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/embed/chunks/UserViewEngine-AQ4HVXDY.js +7 -0
- package/dist/embed/chunks/{chunk-KHEWGJIZ.js → chunk-CUZ32HGY.js} +4 -0
- package/dist/embed/chunks/{chunk-CIZSPKQR.js → chunk-IHM3SRNY.js} +777 -152
- package/dist/embed/chunks/{chunk-SXFIY47F.js → chunk-P3UR75T6.js} +81327 -52820
- package/dist/embed/chunks/{chunk-6RWWXOZB.js → chunk-VCGHPATD.js} +3179 -199
- package/dist/embed/chunks/{chunk-AJBMDBQR.js → chunk-YDXL5TNM.js} +3173 -303
- package/dist/embed/chunks/{dist-L2XMFU32.js → dist-JBQFIDL4.js} +5 -5
- package/dist/embed/chunks/{guest-tool-relay-JGHE3J5R.js → guest-tool-relay-INT64GMC.js} +4 -4
- package/dist/embed/chunks/{guest-voice-mint-I6KQRNKA.js → guest-voice-mint-G7TM5WCO.js} +4 -4
- package/dist/embed/chunks/{realtime-voice-controller-Z75RH5BM.js → realtime-voice-controller-ZWPWPCU6.js} +320 -28
- package/dist/embed/chunks/{runtime-widget-transport-UXJAHD5F.js → runtime-widget-transport-HC7OF453.js} +10 -10
- package/dist/embed/mj-widget.js +6 -6
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +9 -9
- package/dist/embed/chunks/UserViewEngine-EEVXGC4A.js +0 -7
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ConversationsRuntime
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YDXL5TNM.js";
|
|
4
4
|
import {
|
|
5
5
|
ConversationEngine,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./chunk-
|
|
6
|
+
_r,
|
|
7
|
+
agentFailureMessage,
|
|
8
|
+
wr
|
|
9
|
+
} from "./chunk-P3UR75T6.js";
|
|
10
10
|
import {
|
|
11
11
|
RunView
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-VCGHPATD.js";
|
|
13
|
+
import "./chunk-IHM3SRNY.js";
|
|
14
14
|
import {
|
|
15
15
|
TrimTrailingSlashes
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-CUZ32HGY.js";
|
|
17
17
|
|
|
18
18
|
// dist/transport/runtime-widget-transport.js
|
|
19
19
|
var CONVERSATIONS_ENTITY = "MJ: Conversations";
|
|
@@ -31,7 +31,7 @@ var RuntimeWidgetTransport = class {
|
|
|
31
31
|
async Initialize(session) {
|
|
32
32
|
this.session = session;
|
|
33
33
|
this.token = session.token;
|
|
34
|
-
const provider = await
|
|
34
|
+
const provider = await _r(this.buildConfig());
|
|
35
35
|
this.provider = provider;
|
|
36
36
|
this.contextUser = provider.CurrentUser;
|
|
37
37
|
await ConversationsRuntime.Instance.Config(false, provider.CurrentUser, provider);
|
|
@@ -87,7 +87,7 @@ var RuntimeWidgetTransport = class {
|
|
|
87
87
|
buildConfig() {
|
|
88
88
|
const base = TrimTrailingSlashes(this.apiUrl);
|
|
89
89
|
const wsUrl = base.replace(/^http/, "ws");
|
|
90
|
-
return new
|
|
90
|
+
return new wr(this.token, base, wsUrl, async () => this.token);
|
|
91
91
|
}
|
|
92
92
|
/** Creates the conversation row the guest's turns attach to. */
|
|
93
93
|
async createConversation() {
|
package/dist/embed/mj-widget.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
CreateProofOfPossessionJwt,
|
|
6
6
|
CreateProofOfPossessionKey,
|
|
7
7
|
TrimTrailingSlashes
|
|
8
|
-
} from "./chunks/chunk-
|
|
8
|
+
} from "./chunks/chunk-CUZ32HGY.js";
|
|
9
9
|
|
|
10
10
|
// dist/ui/tokens.js
|
|
11
11
|
var WIDGET_SHADOW_STYLES = `
|
|
@@ -961,14 +961,14 @@ function defaultSessionClient(apiUrl, widgetKey) {
|
|
|
961
961
|
return new WidgetSessionClient(apiUrl, widgetKey);
|
|
962
962
|
}
|
|
963
963
|
async function defaultTransport(apiUrl) {
|
|
964
|
-
const { RuntimeWidgetTransport } = await import("./chunks/runtime-widget-transport-
|
|
964
|
+
const { RuntimeWidgetTransport } = await import("./chunks/runtime-widget-transport-HC7OF453.js");
|
|
965
965
|
return new RuntimeWidgetTransport(apiUrl);
|
|
966
966
|
}
|
|
967
967
|
async function defaultVoiceController(session) {
|
|
968
968
|
const [{ RealtimeVoiceController }, { createGuestVoiceMint }, { createGuestToolRelay }] = await Promise.all([
|
|
969
|
-
import("./chunks/realtime-voice-controller-
|
|
970
|
-
import("./chunks/guest-voice-mint-
|
|
971
|
-
import("./chunks/guest-tool-relay-
|
|
969
|
+
import("./chunks/realtime-voice-controller-ZWPWPCU6.js"),
|
|
970
|
+
import("./chunks/guest-voice-mint-G7TM5WCO.js"),
|
|
971
|
+
import("./chunks/guest-tool-relay-INT64GMC.js")
|
|
972
972
|
]);
|
|
973
973
|
return new RealtimeVoiceController(
|
|
974
974
|
createGuestVoiceMint(session),
|
|
@@ -999,7 +999,7 @@ function resolveMountTarget(target) {
|
|
|
999
999
|
return document.body;
|
|
1000
1000
|
}
|
|
1001
1001
|
function registerNotificationAdapter(element) {
|
|
1002
|
-
void import("./chunks/dist-
|
|
1002
|
+
void import("./chunks/dist-JBQFIDL4.js").then(({ ConversationsRuntime }) => {
|
|
1003
1003
|
ConversationsRuntime.Instance.UseNotificationAdapter({
|
|
1004
1004
|
Notify: (level, message) => {
|
|
1005
1005
|
if (level === "error" || level === "warning") {
|