@memberjunction/realtime-widget 6.2.0-edge.7 → 6.2.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.
@@ -28,11 +28,11 @@ import {
28
28
  SessionCardStatusChip,
29
29
  SessionCardTitle,
30
30
  SessionsObserver
31
- } from "./chunk-FOFOZNZC.js";
32
- import "./chunk-46L5OHPT.js";
33
- import "./chunk-MQPAK26D.js";
34
- import "./chunk-4IZZL4GA.js";
35
- import "./chunk-VXA62VEQ.js";
31
+ } from "./chunk-CLSWXKRZ.js";
32
+ import "./chunk-LAKO46S5.js";
33
+ import "./chunk-DAGQZKVY.js";
34
+ import "./chunk-JOGHPRST.js";
35
+ import "./chunk-DIDGGUK7.js";
36
36
  export {
37
37
  BuildConversationTimeline,
38
38
  ClientToolRegistry,
@@ -1,9 +1,9 @@
1
1
  import {
2
- h
3
- } from "./chunk-46L5OHPT.js";
4
- import "./chunk-MQPAK26D.js";
5
- import "./chunk-4IZZL4GA.js";
6
- import "./chunk-VXA62VEQ.js";
2
+ S
3
+ } from "./chunk-LAKO46S5.js";
4
+ import "./chunk-DAGQZKVY.js";
5
+ import "./chunk-JOGHPRST.js";
6
+ import "./chunk-DIDGGUK7.js";
7
7
 
8
8
  // dist/voice/guest-tool-relay.js
9
9
  var EXECUTE_TOOL_MUTATION = `
@@ -12,7 +12,7 @@ mutation WidgetRelayRealtimeTool($agentSessionId: String!, $callId: String!, $to
12
12
  }`;
13
13
  function CreateGuestToolRelay() {
14
14
  return async (agentSessionId, callId, toolName, argsJson) => {
15
- const data = await h.Instance.ExecuteGQL(EXECUTE_TOOL_MUTATION, {
15
+ const data = await S.Instance.ExecuteGQL(EXECUTE_TOOL_MUTATION, {
16
16
  agentSessionId,
17
17
  callId,
18
18
  toolName,
@@ -1,11 +1,11 @@
1
1
  import {
2
- h
3
- } from "./chunk-46L5OHPT.js";
4
- import "./chunk-MQPAK26D.js";
2
+ S
3
+ } from "./chunk-LAKO46S5.js";
4
+ import "./chunk-DAGQZKVY.js";
5
5
  import {
6
6
  ParseRealtimeClientTransport
7
- } from "./chunk-4IZZL4GA.js";
8
- import "./chunk-VXA62VEQ.js";
7
+ } from "./chunk-JOGHPRST.js";
8
+ import "./chunk-DIDGGUK7.js";
9
9
 
10
10
  // dist/voice/guest-voice-mint.js
11
11
  var MINT_FIELDS = ["AgentSessionId", "Provider", "Model", "EphemeralToken", "ExpiresAt", "SessionConfigJson"];
@@ -42,7 +42,7 @@ function CreateGuestVoiceMint(session) {
42
42
  for (; ; ) {
43
43
  try {
44
44
  const sent = asked.NoAgentVideo ? { ...variables, showsAgentVideo: false } : variables;
45
- return await h.Instance.ExecuteGQL(startRealtimeMutation(asked), sent);
45
+ return await S.Instance.ExecuteGQL(startRealtimeMutation(asked), sent);
46
46
  } catch (error) {
47
47
  const rejected = rejectedExtension(error, asked);
48
48
  if (!rejected) {
@@ -26,14 +26,14 @@ import {
26
26
  VideoSourceSeenNote,
27
27
  VideoSourceTurnedOffNote,
28
28
  VideoSourceTurnedOnNote
29
- } from "./chunk-4IZZL4GA.js";
29
+ } from "./chunk-JOGHPRST.js";
30
30
  import {
31
31
  BaseSingleton,
32
32
  MJGlobal,
33
33
  RegisterClass,
34
34
  __commonJS,
35
35
  __toESM
36
- } from "./chunk-VXA62VEQ.js";
36
+ } from "./chunk-DIDGGUK7.js";
37
37
 
38
38
  // ../../../node_modules/.pnpm/retry@0.13.1/node_modules/retry/lib/retry_operation.js
39
39
  var require_retry_operation = __commonJS({
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  ConversationsRuntime
3
- } from "./chunk-FOFOZNZC.js";
3
+ } from "./chunk-CLSWXKRZ.js";
4
4
  import {
5
+ Bt,
5
6
  ConversationEngine,
6
- Lt,
7
- Nt,
7
+ Ot,
8
8
  agentFailureMessage
9
- } from "./chunk-46L5OHPT.js";
9
+ } from "./chunk-LAKO46S5.js";
10
10
  import {
11
11
  RunView
12
- } from "./chunk-MQPAK26D.js";
13
- import "./chunk-4IZZL4GA.js";
14
- import "./chunk-VXA62VEQ.js";
12
+ } from "./chunk-DAGQZKVY.js";
13
+ import "./chunk-JOGHPRST.js";
14
+ import "./chunk-DIDGGUK7.js";
15
15
 
16
16
  // dist/transport/runtime-widget-transport.js
17
17
  var CONVERSATIONS_ENTITY = "MJ: Conversations";
@@ -29,7 +29,7 @@ var RuntimeWidgetTransport = class {
29
29
  async Initialize(session) {
30
30
  this.session = session;
31
31
  this.token = session.token;
32
- const provider = await Lt(this.buildConfig());
32
+ const provider = await Bt(this.buildConfig());
33
33
  this.provider = provider;
34
34
  this.contextUser = provider.CurrentUser;
35
35
  await ConversationsRuntime.Instance.Config(false, provider.CurrentUser, provider);
@@ -85,7 +85,7 @@ var RuntimeWidgetTransport = class {
85
85
  buildConfig() {
86
86
  const base = this.apiUrl.replace(/\/+$/, "");
87
87
  const wsUrl = base.replace(/^http/, "ws");
88
- return new Nt(this.token, base, wsUrl, async () => this.token);
88
+ return new Ot(this.token, base, wsUrl, async () => this.token);
89
89
  }
90
90
  /** Creates the conversation row the guest's turns attach to. */
91
91
  async createConversation() {
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  CreateProofOfPossessionJwt,
6
6
  CreateProofOfPossessionKey
7
- } from "./chunks/chunk-VXA62VEQ.js";
7
+ } from "./chunks/chunk-DIDGGUK7.js";
8
8
 
9
9
  // dist/ui/tokens.js
10
10
  var WIDGET_SHADOW_STYLES = `
@@ -960,14 +960,14 @@ function defaultSessionClient(apiUrl, widgetKey) {
960
960
  return new WidgetSessionClient(apiUrl, widgetKey);
961
961
  }
962
962
  async function defaultTransport(apiUrl) {
963
- const { RuntimeWidgetTransport } = await import("./chunks/runtime-widget-transport-V7B2B3TL.js");
963
+ const { RuntimeWidgetTransport } = await import("./chunks/runtime-widget-transport-KJRO54TC.js");
964
964
  return new RuntimeWidgetTransport(apiUrl);
965
965
  }
966
966
  async function defaultVoiceController(session) {
967
967
  const [{ RealtimeVoiceController }, { createGuestVoiceMint }, { createGuestToolRelay }] = await Promise.all([
968
- import("./chunks/realtime-voice-controller-D2GLGIK2.js"),
969
- import("./chunks/guest-voice-mint-MNMKTI3E.js"),
970
- import("./chunks/guest-tool-relay-2MP5GU67.js")
968
+ import("./chunks/realtime-voice-controller-76SVXCXJ.js"),
969
+ import("./chunks/guest-voice-mint-A4TEME65.js"),
970
+ import("./chunks/guest-tool-relay-6VPMNSBN.js")
971
971
  ]);
972
972
  return new RealtimeVoiceController(
973
973
  createGuestVoiceMint(session),
@@ -998,7 +998,7 @@ function resolveMountTarget(target) {
998
998
  return document.body;
999
999
  }
1000
1000
  function registerNotificationAdapter(element) {
1001
- void import("./chunks/dist-S5YIFSWR.js").then(({ ConversationsRuntime }) => {
1001
+ void import("./chunks/dist-FCDQGP67.js").then(({ ConversationsRuntime }) => {
1002
1002
  ConversationsRuntime.Instance.UseNotificationAdapter({
1003
1003
  Notify: (level, message) => {
1004
1004
  if (level === "error" || level === "warning") {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@memberjunction/realtime-widget",
3
3
  "type": "module",
4
- "version": "6.2.0-edge.7",
4
+ "version": "6.2.0",
5
5
  "description": "MemberJunction: Droppable, embeddable public customer-support widget (text + voice). A shadow-DOM web component that reuses ConversationsRuntime + the realtime client stack against MJAPI with a guest session JWT. No MJ login required.",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -11,14 +11,14 @@
11
11
  "author": "MemberJunction.com",
12
12
  "license": "BUSL-1.1",
13
13
  "dependencies": {
14
- "@memberjunction/global": "6.2.0-edge.7",
15
- "@memberjunction/core": "6.2.0-edge.7",
16
- "@memberjunction/core-entities": "6.2.0-edge.7",
17
- "@memberjunction/ai": "6.2.0-edge.7",
18
- "@memberjunction/ai-core-plus": "6.2.0-edge.7",
19
- "@memberjunction/ai-realtime-client": "6.2.0-edge.7",
20
- "@memberjunction/conversations-runtime": "6.2.0-edge.7",
21
- "@memberjunction/graphql-dataprovider": "6.2.0-edge.7"
14
+ "@memberjunction/global": "6.2.0",
15
+ "@memberjunction/core": "6.2.0",
16
+ "@memberjunction/core-entities": "6.2.0",
17
+ "@memberjunction/ai": "6.2.0",
18
+ "@memberjunction/ai-core-plus": "6.2.0",
19
+ "@memberjunction/ai-realtime-client": "6.2.0",
20
+ "@memberjunction/conversations-runtime": "6.2.0",
21
+ "@memberjunction/graphql-dataprovider": "6.2.0"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/node": "24.10.11",
@@ -1,7 +0,0 @@
1
- import {
2
- UserViewEngine
3
- } from "./chunk-MQPAK26D.js";
4
- import "./chunk-VXA62VEQ.js";
5
- export {
6
- UserViewEngine
7
- };