@epam/ai-dial-chat-overlay 1.1.0-dev.474 → 1.1.0-dev.479
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/index.js
CHANGED
|
@@ -9,22 +9,24 @@ var e = "@DIAL_OVERLAY", t = /* @__PURE__ */ function(e) {
|
|
|
9
9
|
return e.External = "external", e.SameWindow = "sameWindow", e;
|
|
10
10
|
}({}), c = /* @__PURE__ */ function(e) {
|
|
11
11
|
return e.ActiveConversationUnavailable = "ACTIVE_CONVERSATION_UNAVAILABLE", e.ConversationListUnavailable = "CONVERSATION_LIST_UNAVAILABLE", e.InvalidPayload = "INVALID_PAYLOAD", e.RequestExecutionFailed = "REQUEST_EXECUTION_FAILED", e;
|
|
12
|
-
}({}), l = (e)
|
|
12
|
+
}({}), l = /* @__PURE__ */ function(e) {
|
|
13
|
+
return e.Completed = "completed", e.Failed = "failed", e;
|
|
14
|
+
}({}), u = (e) => {
|
|
13
15
|
if (typeof e != "object" || !e) return !1;
|
|
14
16
|
let n = e;
|
|
15
17
|
return typeof n.type == "string" && Object.values(t).includes(n.type) && typeof n.requestId == "string" && (!("expiresAt" in n) || typeof n.expiresAt == "number" && Number.isFinite(n.expiresAt));
|
|
16
|
-
},
|
|
18
|
+
}, d = (e) => {
|
|
17
19
|
if (typeof e != "object" || !e) return !1;
|
|
18
20
|
let n = e;
|
|
19
21
|
if (typeof n.type != "string" || typeof n.requestId != "string" || !Object.values(t).some((e) => n.type === `${e}/RESPONSE`)) return !1;
|
|
20
22
|
if (!("error" in n)) return !0;
|
|
21
23
|
let r = n.error;
|
|
22
24
|
return typeof r == "object" && !!r && typeof r.code == "string" && Object.values(c).includes(r.code) && typeof r.message == "string";
|
|
23
|
-
},
|
|
25
|
+
}, f = (e) => {
|
|
24
26
|
if (typeof e != "object" || !e) return !1;
|
|
25
27
|
let t = e;
|
|
26
28
|
return typeof t.type == "string" && Object.values(n).includes(t.type) && !("requestId" in t);
|
|
27
|
-
},
|
|
29
|
+
}, p = "<svg viewBox=\"0 0 50 50\" width=\"32\" height=\"32\" role=\"presentation\" aria-hidden=\"true\"><circle cx=\"25\" cy=\"25\" r=\"20\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"4\" stroke-linecap=\"round\" stroke-dasharray=\"31.4 31.4\"><animateTransform attributeName=\"transform\" type=\"rotate\" from=\"0 25 25\" to=\"360 25 25\" dur=\"1s\" repeatCount=\"indefinite\" /></circle></svg>", m = 0, h = () => (m += 1, `dial-overlay-${Date.now()}-${m}`), g = class {
|
|
28
30
|
requestType;
|
|
29
31
|
requestId;
|
|
30
32
|
responseType;
|
|
@@ -34,7 +36,7 @@ var e = "@DIAL_OVERLAY", t = /* @__PURE__ */ function(e) {
|
|
|
34
36
|
settled = !1;
|
|
35
37
|
timeoutHandle;
|
|
36
38
|
constructor(e, t) {
|
|
37
|
-
this.requestType = e, this.requestId =
|
|
39
|
+
this.requestType = e, this.requestId = h(), this.responseType = `${e}/RESPONSE`, this.promise = new Promise((e, t) => {
|
|
38
40
|
this.resolveFn = e, this.rejectFn = t;
|
|
39
41
|
}), this.timeoutHandle = setTimeout(() => {
|
|
40
42
|
this.reject(/* @__PURE__ */ Error(`ChatOverlay: request "${e}" timed out after ${t}ms`));
|
|
@@ -49,17 +51,17 @@ var e = "@DIAL_OVERLAY", t = /* @__PURE__ */ function(e) {
|
|
|
49
51
|
reject(e) {
|
|
50
52
|
this.settled || (this.settled = !0, clearTimeout(this.timeoutHandle), this.rejectFn(e));
|
|
51
53
|
}
|
|
52
|
-
}, g = (e, t) => {
|
|
53
|
-
Object.assign(e.style, t);
|
|
54
54
|
}, _ = (e, t) => {
|
|
55
|
+
Object.assign(e.style, t);
|
|
56
|
+
}, v = (e, t) => {
|
|
55
57
|
if (document.getElementById(e)) return;
|
|
56
58
|
let n = document.createElement("style");
|
|
57
59
|
n.id = e, n.textContent = t, document.head.appendChild(n);
|
|
58
|
-
},
|
|
60
|
+
}, y = "dial-overlay-styles", b = /* @__PURE__ */ function(e) {
|
|
59
61
|
return e.Root = "dial-overlay-root", e.Iframe = "dial-overlay-iframe", e.Loader = "dial-overlay-loader", e.LoaderHidden = "dial-overlay-loader--hidden", e;
|
|
60
|
-
}({}),
|
|
61
|
-
|
|
62
|
-
},
|
|
62
|
+
}({}), x = "\n.dial-overlay-root {\n position: relative;\n}\n.dial-overlay-iframe {\n display: block;\n width: 100%;\n height: 100%;\n border: none;\n}\n.dial-overlay-loader {\n position: absolute;\n inset: 0;\n z-index: 2;\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n background: var(--dial-overlay-loader-background, #ffffff);\n color: var(--dial-overlay-loader-color, #2764d9);\n}\n.dial-overlay-loader--hidden {\n display: none !important;\n}\n", S = () => {
|
|
63
|
+
v(y, x);
|
|
64
|
+
}, C = class {
|
|
63
65
|
promise;
|
|
64
66
|
resolveFn;
|
|
65
67
|
rejectFn;
|
|
@@ -75,32 +77,32 @@ var e = "@DIAL_OVERLAY", t = /* @__PURE__ */ function(e) {
|
|
|
75
77
|
reject(e) {
|
|
76
78
|
this.settled || (this.settled = !0, this.rejectFn(e));
|
|
77
79
|
}
|
|
78
|
-
},
|
|
80
|
+
}, w = 1e4, T = "data-dial-overlay-loader", E = class extends Error {
|
|
79
81
|
code;
|
|
80
82
|
requestType;
|
|
81
83
|
constructor(e, t) {
|
|
82
84
|
super(`ChatOverlay: request "${e}" failed [${t.code}]: ${t.message}`), this.name = "ChatOverlayRequestError", this.code = t.code, this.requestType = e;
|
|
83
85
|
}
|
|
84
|
-
},
|
|
86
|
+
}, D = (e) => {
|
|
85
87
|
if (typeof e != "string") return e;
|
|
86
88
|
let t = document.querySelector(e);
|
|
87
89
|
if (!t) throw Error(`ChatOverlay: no element matches selector "${e}"`);
|
|
88
90
|
return t;
|
|
89
|
-
},
|
|
91
|
+
}, O = (e) => {
|
|
90
92
|
let t = document.createElement("iframe");
|
|
91
93
|
t.src = e.domain, t.name = "overlay", t.setAttribute("aria-label", "DIAL Chat"), t.setAttribute("sandbox", "allow-same-origin allow-scripts allow-modals allow-forms allow-popups allow-downloads allow-popups-to-escape-sandbox");
|
|
92
94
|
let n = ["clipboard-write"];
|
|
93
|
-
return e.enabledFeatures?.includes(r.VoiceInput) && n.push("microphone"), t.setAttribute("allow", n.join("; ")), t.className =
|
|
94
|
-
},
|
|
95
|
+
return e.enabledFeatures?.includes(r.VoiceInput) && n.push("microphone"), t.setAttribute("allow", n.join("; ")), t.className = b.Iframe, t;
|
|
96
|
+
}, k = (e) => {
|
|
95
97
|
let t = document.createElement("div");
|
|
96
|
-
return t.setAttribute(
|
|
97
|
-
},
|
|
98
|
+
return t.setAttribute(T, ""), t.innerHTML = e.loaderInnerHTML ?? p, t.className = [b.Loader, e.loaderClass].filter(Boolean).join(" "), e.loaderStyles && _(t, e.loaderStyles), t;
|
|
99
|
+
}, A = class {
|
|
98
100
|
root;
|
|
99
101
|
iframe;
|
|
100
102
|
loader;
|
|
101
103
|
options;
|
|
102
104
|
targetOrigin;
|
|
103
|
-
readyGate = new
|
|
105
|
+
readyGate = new C();
|
|
104
106
|
pendingRequests = /* @__PURE__ */ new Map();
|
|
105
107
|
eventSubscribers = /* @__PURE__ */ new Map();
|
|
106
108
|
messageListener = (e) => {
|
|
@@ -108,9 +110,9 @@ var e = "@DIAL_OVERLAY", t = /* @__PURE__ */ function(e) {
|
|
|
108
110
|
};
|
|
109
111
|
isDestroyed = !1;
|
|
110
112
|
constructor(e, t) {
|
|
111
|
-
this.root =
|
|
113
|
+
this.root = D(e), this.options = { ...t }, this.targetOrigin = new URL(t.domain).origin, S(), this.iframe = O(this.options), this.loader = k(this.options);
|
|
112
114
|
let n = window.getComputedStyle(this.root).position;
|
|
113
|
-
(n === "static" || n === "") && this.root.classList.add(
|
|
115
|
+
(n === "static" || n === "") && this.root.classList.add(b.Root), this.root.appendChild(this.loader), this.root.appendChild(this.iframe), window.addEventListener("message", this.messageListener), this.readyGate.promise.catch(() => void 0);
|
|
114
116
|
}
|
|
115
117
|
ready() {
|
|
116
118
|
return this.readyGate.promise;
|
|
@@ -195,7 +197,7 @@ var e = "@DIAL_OVERLAY", t = /* @__PURE__ */ function(e) {
|
|
|
195
197
|
}
|
|
196
198
|
dispatchRequest(e, t) {
|
|
197
199
|
if (this.isDestroyed) return Promise.reject(/* @__PURE__ */ Error("ChatOverlay: instance was destroyed"));
|
|
198
|
-
let n = this.options.requestTimeout ??
|
|
200
|
+
let n = this.options.requestTimeout ?? w, r = new g(e, n);
|
|
199
201
|
this.pendingRequests.set(r.requestId, r), r.promise.finally(() => {
|
|
200
202
|
this.pendingRequests.delete(r.requestId);
|
|
201
203
|
}).catch(() => void 0);
|
|
@@ -210,17 +212,17 @@ var e = "@DIAL_OVERLAY", t = /* @__PURE__ */ function(e) {
|
|
|
210
212
|
handleMessage(e) {
|
|
211
213
|
if (e.source !== this.iframe.contentWindow) return;
|
|
212
214
|
let t = e.data;
|
|
213
|
-
if (
|
|
215
|
+
if (d(t)) {
|
|
214
216
|
this.handleResponse(t);
|
|
215
217
|
return;
|
|
216
218
|
}
|
|
217
|
-
|
|
219
|
+
f(t) && this.handleEvent(t);
|
|
218
220
|
}
|
|
219
221
|
handleResponse(e) {
|
|
220
222
|
let t = this.pendingRequests.get(e.requestId);
|
|
221
223
|
if (!(!t || !t.matches(e.type, e.requestId))) {
|
|
222
224
|
if (this.pendingRequests.delete(e.requestId), e.error) {
|
|
223
|
-
t.reject(new
|
|
225
|
+
t.reject(new E(t.requestType, e.error));
|
|
224
226
|
return;
|
|
225
227
|
}
|
|
226
228
|
t.resolve(e.payload);
|
|
@@ -231,44 +233,44 @@ var e = "@DIAL_OVERLAY", t = /* @__PURE__ */ function(e) {
|
|
|
231
233
|
t === n.Ready && this.sendCurrentOverlayOptions().catch(() => void 0), t === (this.options.loaderHideEvent ?? n.Ready) && this.hideLoader(), t === n.ReadyToInteract && this.readyGate.resolve(!0), this.notifySubscribers(t, e.payload);
|
|
232
234
|
}
|
|
233
235
|
hideLoader() {
|
|
234
|
-
this.loader.classList.add(
|
|
236
|
+
this.loader.classList.add(b.LoaderHidden), this.loader.style.removeProperty("display");
|
|
235
237
|
}
|
|
236
238
|
notifySubscribers(e, t) {
|
|
237
239
|
this.eventSubscribers.get(e)?.forEach((e) => e(t));
|
|
238
240
|
}
|
|
239
|
-
},
|
|
240
|
-
|
|
241
|
-
},
|
|
241
|
+
}, j = 1279, M = 380, N = 600, P = 999999, F = "24px", I = "<svg viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" aria-hidden=\"true\" focusable=\"false\"><path fill=\"currentColor\" d=\"M4 4h16v12H7l-3 3V4z\"/></svg>", L = "<svg viewBox=\"0 0 24 24\" width=\"20\" height=\"20\" aria-hidden=\"true\" focusable=\"false\"><path fill=\"currentColor\" d=\"M18.3 5.71 12 12.01l-6.3-6.3-1.4 1.41 6.29 6.29-6.29 6.29 1.4 1.41 6.3-6.3 6.3 6.3 1.4-1.41-6.29-6.29 6.29-6.29z\"/></svg>", R = "<svg viewBox=\"0 0 24 24\" width=\"20\" height=\"20\" aria-hidden=\"true\" focusable=\"false\"><path fill=\"currentColor\" d=\"M4 4h6v2H6v4H4V4zm10 0h6v6h-2V6h-4V4zM4 14h2v4h4v2H4v-6zm14 0h2v6h-6v-2h4v-4z\"/></svg>", z = "dial-overlay-manager-styles", B = "\n.dial-overlay-btn {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 48px;\n height: 48px;\n border: none;\n border-radius: 999px;\n cursor: pointer;\n background: var(--dial-overlay-btn-background, #2764d9);\n color: var(--dial-overlay-btn-color, #ffffff);\n}\n.dial-overlay-btn:hover,\n.dial-overlay-btn:focus-visible {\n background: var(--dial-overlay-btn-background-hover, #1d4fb8);\n outline: 2px solid var(--dial-overlay-btn-outline, #1d4fb8);\n outline-offset: 2px;\n}\n", V = () => {
|
|
242
|
+
v(z, B);
|
|
243
|
+
}, H = (e, t) => {
|
|
242
244
|
let n = document.createElement("button");
|
|
243
245
|
return n.type = "button", n.className = "dial-overlay-btn", n.setAttribute("aria-label", e), n.innerHTML = t, n;
|
|
244
|
-
},
|
|
246
|
+
}, U = (e) => typeof e == "number" ? `${e}px` : e, W = /* @__PURE__ */ function(e) {
|
|
245
247
|
return e.LeftBottom = "left-bottom", e.LeftTop = "left-top", e.RightBottom = "right-bottom", e.RightTop = "right-top", e;
|
|
246
|
-
}({}),
|
|
248
|
+
}({}), G = {
|
|
247
249
|
"right-bottom": {
|
|
248
|
-
insetInlineEnd:
|
|
249
|
-
insetBlockEnd:
|
|
250
|
+
insetInlineEnd: F,
|
|
251
|
+
insetBlockEnd: F,
|
|
250
252
|
insetInlineStart: "auto",
|
|
251
253
|
insetBlockStart: "auto"
|
|
252
254
|
},
|
|
253
255
|
"right-top": {
|
|
254
|
-
insetInlineEnd:
|
|
255
|
-
insetBlockStart:
|
|
256
|
+
insetInlineEnd: F,
|
|
257
|
+
insetBlockStart: F,
|
|
256
258
|
insetInlineStart: "auto",
|
|
257
259
|
insetBlockEnd: "auto"
|
|
258
260
|
},
|
|
259
261
|
"left-bottom": {
|
|
260
|
-
insetInlineStart:
|
|
261
|
-
insetBlockEnd:
|
|
262
|
+
insetInlineStart: F,
|
|
263
|
+
insetBlockEnd: F,
|
|
262
264
|
insetInlineEnd: "auto",
|
|
263
265
|
insetBlockStart: "auto"
|
|
264
266
|
},
|
|
265
267
|
"left-top": {
|
|
266
|
-
insetInlineStart:
|
|
267
|
-
insetBlockStart:
|
|
268
|
+
insetInlineStart: F,
|
|
269
|
+
insetBlockStart: F,
|
|
268
270
|
insetInlineEnd: "auto",
|
|
269
271
|
insetBlockEnd: "auto"
|
|
270
272
|
}
|
|
271
|
-
},
|
|
273
|
+
}, K = class {
|
|
272
274
|
overlays = /* @__PURE__ */ new Map();
|
|
273
275
|
abortController = new AbortController();
|
|
274
276
|
isDestroyed = !1;
|
|
@@ -280,9 +282,9 @@ var e = "@DIAL_OVERLAY", t = /* @__PURE__ */ function(e) {
|
|
|
280
282
|
}
|
|
281
283
|
createOverlay(e) {
|
|
282
284
|
if (this.overlays.has(e.overlayId)) throw Error(`ChatOverlayManager: overlay "${e.overlayId}" already exists`);
|
|
283
|
-
|
|
285
|
+
V();
|
|
284
286
|
let t = document.createElement("div");
|
|
285
|
-
t.setAttribute("data-dial-overlay-container", e.overlayId),
|
|
287
|
+
t.setAttribute("data-dial-overlay-container", e.overlayId), _(t, {
|
|
286
288
|
display: "flex",
|
|
287
289
|
flexDirection: "column",
|
|
288
290
|
overflow: "hidden",
|
|
@@ -291,24 +293,24 @@ var e = "@DIAL_OVERLAY", t = /* @__PURE__ */ function(e) {
|
|
|
291
293
|
background: "#ffffff"
|
|
292
294
|
});
|
|
293
295
|
let n = document.createElement("div");
|
|
294
|
-
|
|
296
|
+
_(n, {
|
|
295
297
|
display: "flex",
|
|
296
298
|
justifyContent: "flex-end",
|
|
297
299
|
gap: "8px",
|
|
298
300
|
padding: "8px"
|
|
299
301
|
});
|
|
300
|
-
let r =
|
|
302
|
+
let r = H(e.closeButtonAriaLabel ?? "Collapse", L);
|
|
301
303
|
n.appendChild(r);
|
|
302
304
|
let i;
|
|
303
|
-
e.allowFullscreen && (i =
|
|
305
|
+
e.allowFullscreen && (i = H(e.fullscreenButtonAriaLabel ?? "Open full screen", R), n.appendChild(i));
|
|
304
306
|
let a = document.createElement("div");
|
|
305
|
-
|
|
307
|
+
_(a, {
|
|
306
308
|
flex: "1",
|
|
307
309
|
minHeight: "0"
|
|
308
310
|
}), t.appendChild(n), t.appendChild(a), document.body.appendChild(t);
|
|
309
|
-
let o = new
|
|
311
|
+
let o = new A(a, e);
|
|
310
312
|
e.allowFullscreen && o.allowFullscreen();
|
|
311
|
-
let s =
|
|
313
|
+
let s = H(e.toggleButtonAriaLabel ?? "Open chat", I);
|
|
312
314
|
document.body.appendChild(s);
|
|
313
315
|
let c = {
|
|
314
316
|
overlay: o,
|
|
@@ -393,16 +395,16 @@ var e = "@DIAL_OVERLAY", t = /* @__PURE__ */ function(e) {
|
|
|
393
395
|
return t;
|
|
394
396
|
}
|
|
395
397
|
applyLayout(e) {
|
|
396
|
-
let { options: t, container: n, toggleButton: r } = e, i = t.position ?? "right-bottom", a = String(t.zIndex ??
|
|
397
|
-
if (
|
|
398
|
+
let { options: t, container: n, toggleButton: r } = e, i = t.position ?? "right-bottom", a = String(t.zIndex ?? P);
|
|
399
|
+
if (_(r, {
|
|
398
400
|
position: "fixed",
|
|
399
401
|
zIndex: a,
|
|
400
|
-
...
|
|
401
|
-
}),
|
|
402
|
+
...G[i]
|
|
403
|
+
}), _(n, {
|
|
402
404
|
position: "fixed",
|
|
403
405
|
zIndex: a
|
|
404
|
-
}), window.innerWidth <=
|
|
405
|
-
|
|
406
|
+
}), window.innerWidth <= j) {
|
|
407
|
+
_(n, {
|
|
406
408
|
insetInlineStart: "0",
|
|
407
409
|
insetInlineEnd: "0",
|
|
408
410
|
insetBlockStart: "0",
|
|
@@ -413,12 +415,12 @@ var e = "@DIAL_OVERLAY", t = /* @__PURE__ */ function(e) {
|
|
|
413
415
|
});
|
|
414
416
|
return;
|
|
415
417
|
}
|
|
416
|
-
|
|
417
|
-
width:
|
|
418
|
-
height:
|
|
419
|
-
...
|
|
418
|
+
_(n, {
|
|
419
|
+
width: U(t.width ?? M),
|
|
420
|
+
height: U(t.height ?? N),
|
|
421
|
+
...G[i]
|
|
420
422
|
});
|
|
421
423
|
}
|
|
422
424
|
};
|
|
423
425
|
//#endregion
|
|
424
|
-
export {
|
|
426
|
+
export { A as ChatOverlay, K as ChatOverlayManager, E as ChatOverlayRequestError, i as DEPRECATED_OVERLAY_FEATURE_ALIASES, e as DIAL_OVERLAY_NAMESPACE, s as OverlayAuthUiMode, n as OverlayEventType, r as OverlayFeature, W as OverlayPosition, c as OverlayRequestErrorCode, t as OverlayRequestType, l as OverlayStageStatus, f as isOverlayMessageEvent, u as isOverlayMessageRequest, d as isOverlayMessageResponse, o as resolveOverlayFeature };
|
|
@@ -9,18 +9,6 @@ export declare enum OverlayClassName {
|
|
|
9
9
|
/** Hidden state of the loader. */
|
|
10
10
|
LoaderHidden = "dial-overlay-loader--hidden"
|
|
11
11
|
}
|
|
12
|
-
/**
|
|
13
|
-
* Custom properties the injected stylesheet reads, each with a literal
|
|
14
|
-
* fallback. This lib deliberately ships no CSS file and no `--cs-*` theming
|
|
15
|
-
* channel, so these are the supported way for a host to retheme the loader
|
|
16
|
-
* palette without an `!important` fight against the injected source order.
|
|
17
|
-
*/
|
|
18
|
-
export declare enum OverlayCssVariable {
|
|
19
|
-
/** Loader backdrop. Defaults to `#ffffff`. */
|
|
20
|
-
LoaderBackground = "--dial-overlay-loader-background",
|
|
21
|
-
/** Loader foreground, inherited by the spinner's `currentColor` stroke. Defaults to `#2764d9`. */
|
|
22
|
-
LoaderColor = "--dial-overlay-loader-color"
|
|
23
|
-
}
|
|
24
12
|
/** Injects the `ChatOverlay` stylesheet into `document.head`, once per document. */
|
|
25
13
|
export declare const ensureOverlayStylesInjected: () => void;
|
|
26
14
|
//# sourceMappingURL=overlay-styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlay-styles.d.ts","sourceRoot":"","sources":["../../../src/lib/internal/overlay-styles.ts"],"names":[],"mappings":"AAIA,iFAAiF;AACjF,oBAAY,gBAAgB;IAC1B,6DAA6D;IAC7D,IAAI,sBAAsB;IAC1B,gCAAgC;IAChC,MAAM,wBAAwB;IAC9B,gEAAgE;IAChE,MAAM,wBAAwB;IAC9B,kCAAkC;IAClC,YAAY,gCAAgC;CAC7C;
|
|
1
|
+
{"version":3,"file":"overlay-styles.d.ts","sourceRoot":"","sources":["../../../src/lib/internal/overlay-styles.ts"],"names":[],"mappings":"AAIA,iFAAiF;AACjF,oBAAY,gBAAgB;IAC1B,6DAA6D;IAC7D,IAAI,sBAAsB;IAC1B,gCAAgC;IAChC,MAAM,wBAAwB;IAC9B,gEAAgE;IAChE,MAAM,wBAAwB;IAC9B,kCAAkC;IAClC,YAAY,gCAAgC;CAC7C;AAkDD,oFAAoF;AACpF,eAAO,MAAM,2BAA2B,QAAO,IAE9C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-chat-overlay",
|
|
3
3
|
"description": "Embeddable postMessage-based ChatOverlay/ChatOverlayManager widget for hosting a DIAL Chat instance inside a third-party page",
|
|
4
|
-
"version": "1.1.0-dev.
|
|
4
|
+
"version": "1.1.0-dev.479",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -203,6 +203,30 @@ export interface OverlayRequestError {
|
|
|
203
203
|
/** Human-readable explanation suitable for logs and diagnostics. */
|
|
204
204
|
message: string;
|
|
205
205
|
}
|
|
206
|
+
/** Settled outcome of an agent execution stage carried over the protocol. */
|
|
207
|
+
export declare enum OverlayStageStatus {
|
|
208
|
+
/** The stage completed successfully. */
|
|
209
|
+
Completed = "completed",
|
|
210
|
+
/** The stage encountered an error. */
|
|
211
|
+
Failed = "failed"
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* One agent execution stage (a tool call, retrieval step, or reasoning step)
|
|
215
|
+
* projected into the protocol. A host reads these to react to what an agent
|
|
216
|
+
* did — e.g. refreshing its own view when a particular tool has run.
|
|
217
|
+
*/
|
|
218
|
+
export interface OverlayMessageStage {
|
|
219
|
+
/** Zero-based ordering key, stable across updates to the same stage. */
|
|
220
|
+
index: number;
|
|
221
|
+
/** Human-readable stage label, e.g. `'Lookup available terms'`. */
|
|
222
|
+
name: string;
|
|
223
|
+
/** `null` while the stage is still running; a settled value once it finishes. */
|
|
224
|
+
status: OverlayStageStatus | null;
|
|
225
|
+
/** Text content accumulated for this stage, when the agent produced any. */
|
|
226
|
+
content?: string;
|
|
227
|
+
/** Short source/category label shown beside the name, e.g. `'MCP'`. */
|
|
228
|
+
tag?: string;
|
|
229
|
+
}
|
|
206
230
|
/** Minimal message shape carried in overlay protocol payloads. */
|
|
207
231
|
export interface OverlayChatMessage {
|
|
208
232
|
/** Message id. */
|
|
@@ -211,6 +235,12 @@ export interface OverlayChatMessage {
|
|
|
211
235
|
role: string;
|
|
212
236
|
/** Message text content. */
|
|
213
237
|
content: string;
|
|
238
|
+
/**
|
|
239
|
+
* Agent execution stages attached to this message, omitted when it has
|
|
240
|
+
* none. Stage attachments are not carried — the protocol projects labels,
|
|
241
|
+
* status, and text only.
|
|
242
|
+
*/
|
|
243
|
+
stages?: OverlayMessageStage[];
|
|
214
244
|
}
|
|
215
245
|
/** Host-agnostic conversation projection for the overlay protocol. */
|
|
216
246
|
export interface OverlayConversation {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlay-protocol.d.ts","sourceRoot":"","sources":["../../src/protocol/overlay-protocol.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,eAAO,MAAM,sBAAsB,kBAAkB,CAAC;AAEtD,mEAAmE;AACnE,oBAAY,kBAAkB;IAC5B,gDAAgD;IAChD,WAAW,+BAA+B;IAC1C,qDAAqD;IACrD,WAAW,+BAA+B;IAC1C,yDAAyD;IACzD,eAAe,oCAAoC;IACnD,mDAAmD;IACnD,eAAe,oCAAoC;IACnD,iDAAiD;IACjD,cAAc,kCAAkC;IAChD,2EAA2E;IAC3E,iBAAiB,sCAAsC;IACvD,kDAAkD;IAClD,gBAAgB,oCAAoC;IACpD,8DAA8D;IAC9D,wBAAwB,6CAA6C;IACrE,0DAA0D;IAC1D,kBAAkB,sCAAsC;IACxD,qFAAqF;IACrF,kBAAkB,sCAAsC;IACxD,kEAAkE;IAClE,uBAAuB,4CAA4C;IACnE,mCAAmC;IACnC,kBAAkB,sCAAsC;IACxD,mCAAmC;IACnC,kBAAkB,sCAAsC;CACzD;AAED,8DAA8D;AAC9D,oBAAY,gBAAgB;IAC1B,iEAAiE;IACjE,SAAS,6BAA6B;IACtC,uDAAuD;IACvD,KAAK,wBAAwB;IAC7B,4FAA4F;I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AM,WAAW,kBAAkB;IACjC,kBAAkB;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,gEAAgE;IAChE,IAAI,EAAE,MAAM,CAAC;IACb,4BAA4B;IAC5B,OAAO,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"overlay-protocol.d.ts","sourceRoot":"","sources":["../../src/protocol/overlay-protocol.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,eAAO,MAAM,sBAAsB,kBAAkB,CAAC;AAEtD,mEAAmE;AACnE,oBAAY,kBAAkB;IAC5B,gDAAgD;IAChD,WAAW,+BAA+B;IAC1C,qDAAqD;IACrD,WAAW,+BAA+B;IAC1C,yDAAyD;IACzD,eAAe,oCAAoC;IACnD,mDAAmD;IACnD,eAAe,oCAAoC;IACnD,iDAAiD;IACjD,cAAc,kCAAkC;IAChD,2EAA2E;IAC3E,iBAAiB,sCAAsC;IACvD,kDAAkD;IAClD,gBAAgB,oCAAoC;IACpD,8DAA8D;IAC9D,wBAAwB,6CAA6C;IACrE,0DAA0D;IAC1D,kBAAkB,sCAAsC;IACxD,qFAAqF;IACrF,kBAAkB,sCAAsC;IACxD,kEAAkE;IAClE,uBAAuB,4CAA4C;IACnE,mCAAmC;IACnC,kBAAkB,sCAAsC;IACxD,mCAAmC;IACnC,kBAAkB,sCAAsC;CACzD;AAED,8DAA8D;AAC9D,oBAAY,gBAAgB;IAC1B,iEAAiE;IACjE,SAAS,6BAA6B;IACtC,uDAAuD;IACvD,KAAK,wBAAwB;IAC7B,4FAA4F;IAC5F,eAAe,oCAAoC;IACnD,0FAA0F;IAC1F,0BAA0B,+CAA+C;IACzE,iEAAiE;IACjE,kBAAkB,uCAAuC;IACzD,oEAAoE;IACpE,gBAAgB,qCAAqC;IACrD,gEAAgE;IAChE,cAAc,kCAAkC;IAChD,yDAAyD;IACzD,oBAAoB,wCAAwC;CAC7D;AAED,iGAAiG;AACjG,oBAAY,cAAc;IACxB,oDAAoD;IACpD,QAAQ,cAAc;IACtB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