@epam/ai-dial-chat-overlay 1.3.0-dev.16 → 1.3.0-dev.160
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 +64 -78
- package/package.json +1 -1
- package/protocol/overlay-protocol.d.ts +18 -6
- package/protocol/overlay-protocol.d.ts.map +1 -1
package/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var e = "@DIAL_OVERLAY", t = /* @__PURE__ */ function(e) {
|
|
|
4
4
|
}({}), n = /* @__PURE__ */ function(e) {
|
|
5
5
|
return e.InitReady = "@DIAL_OVERLAY/INIT_READY", e.Ready = "@DIAL_OVERLAY/READY", e.ReadyToInteract = "@DIAL_OVERLAY/READY_TO_INTERACT", e.SelectedConversationLoaded = "@DIAL_OVERLAY/SELECTED_CONVERSATION_LOADED", e.GptStartGenerating = "@DIAL_OVERLAY/GPT_START_GENERATING", e.GptEndGenerating = "@DIAL_OVERLAY/GPT_END_GENERATING", e.StopGenerating = "@DIAL_OVERLAY/STOP_GENERATING", e.ConversationsUpdated = "@DIAL_OVERLAY/CONVERSATIONS_UPDATED", e;
|
|
6
6
|
}({}), r = /* @__PURE__ */ function(e) {
|
|
7
|
-
return e.CodeApps = "code-apps", e.SchemaApps = "schema-apps", e.HideCustomAppCreation = "hide-custom-app-creation", e.DisabledSend = "disabled-send", e.SkipFocusChatInputOnload = "skip-focus-chat-input-onload", e.ChatSettings = "chat-settings", e.RemovableTools = "removable-tools", e.DislikeComment = "dislike-comment", e.InputFiles = "input-files", e.Likes = "likes", e.LiveChatInteraction = "live-chat-interaction", e.DisallowChangeAgent = "disallow-change-agent", e.HideChangeAgent = "hide-change-agent", e.HideNewConversation = "hide-new-conversation", e.EmptyChatSettings = "empty-chat-settings", e.HideEmptyChatChangeAgent = "hide-empty-chat-change-agent", e.AttachmentsManager = "attachments-manager", e.ConversationsPanelToggle = "conversations-panel-toggle", e.ConversationsSection = "conversations-section", e.Header = "header", e.HideNavigationMenu = "hide-navigation-menu", e.ShowConversationsSectionByDefault = "showConversationsSectionByDefault", e.HideConversationsFilter = "hide-conversations-filter", e.Catalog = "catalog", e.CatalogHideMyApps = "catalog-hide-my-apps", e.CatalogTableView = "catalog-table-view", e.FileManager = "file-manager", e.HideDeleteUserMessage = "hide-delete-user-message", e.HideEditUserMessage = "hide-edit-user-message", e.HideRegenerateAssistantMessage = "hide-regenerate-assistant-message", e.ConversationsPublishing = "conversations-publishing", e.ApplicationsSharing = "applications-sharing", e.ConversationsSharing = "conversations-sharing", e.ToolsetsSharing = "toolsets-sharing", e.Toolsets = "toolsets", e.Prompts = "prompts", e.Skills = "skills", e.CustomApps = "custom-apps", e.HideUserMenu = "hide-user-menu", e.HideUserSettings = "hide-user-settings", e.HideKeyboardShortcuts = "hide-keyboard-shortcuts", e.VoiceInput = "voice-input", e.ShowAllStarters = "show-all-starters", e.StartersBelowGreeting = "starters-below-greeting", e.HideGreeting = "hide-greeting", e.HideFooterVersion = "hide-footer-version", e.ShowAgentDescription = "show-agent-description", e.DisableInputHistoryNavigation = "disable-input-history-navigation", e.HideConversationExport = "hide-conversation-export", e.HideSettingsPage = "hide-settings-page", e.ShowHeaderLogo = "show-header-logo", e;
|
|
7
|
+
return e.CodeApps = "code-apps", e.SchemaApps = "schema-apps", e.HideCustomAppCreation = "hide-custom-app-creation", e.DisabledSend = "disabled-send", e.SkipFocusChatInputOnload = "skip-focus-chat-input-onload", e.ChatSettings = "chat-settings", e.RemovableTools = "removable-tools", e.DislikeComment = "dislike-comment", e.InputFiles = "input-files", e.Likes = "likes", e.LiveChatInteraction = "live-chat-interaction", e.DisallowChangeAgent = "disallow-change-agent", e.HideChangeAgent = "hide-change-agent", e.HideNewConversation = "hide-new-conversation", e.EmptyChatSettings = "empty-chat-settings", e.HideEmptyChatChangeAgent = "hide-empty-chat-change-agent", e.AttachmentsManager = "attachments-manager", e.ConversationsPanelToggle = "conversations-panel-toggle", e.ConversationsSection = "conversations-section", e.Header = "header", e.HideNavigationMenu = "hide-navigation-menu", e.ShowConversationsSectionByDefault = "showConversationsSectionByDefault", e.HideConversationsFilter = "hide-conversations-filter", e.Catalog = "catalog", e.CatalogHideMyApps = "catalog-hide-my-apps", e.CatalogTableView = "catalog-table-view", e.FileManager = "file-manager", e.HideDeleteUserMessage = "hide-delete-user-message", e.HideEditUserMessage = "hide-edit-user-message", e.HideRegenerateAssistantMessage = "hide-regenerate-assistant-message", e.ConversationsPublishing = "conversations-publishing", e.ApplicationsSharing = "applications-sharing", e.ConversationsSharing = "conversations-sharing", e.ToolsetsSharing = "toolsets-sharing", e.Toolsets = "toolsets", e.Prompts = "prompts", e.Skills = "skills", e.CustomApps = "custom-apps", e.HideUserMenu = "hide-user-menu", e.HideUserSettings = "hide-user-settings", e.HideKeyboardShortcuts = "hide-keyboard-shortcuts", e.VoiceInput = "voice-input", e.ShowAllStarters = "show-all-starters", e.StartersBelowGreeting = "starters-below-greeting", e.HideGreeting = "hide-greeting", e.HideFooterVersion = "hide-footer-version", e.ShowAgentDescription = "show-agent-description", e.DisableInputHistoryNavigation = "disable-input-history-navigation", e.HideConversationExport = "hide-conversation-export", e.HideSettingsPage = "hide-settings-page", e.ShowHeaderLogo = "show-header-logo", e.ConversationDrafts = "conversation-drafts", e.HideStarterIcon = "hide-starter-icon", e;
|
|
8
8
|
}({}), i = { "custom-applications": "schema-apps" }, a = new Set(Object.values(r)), o = (e) => a.has(e) ? e : i[e], s = /* @__PURE__ */ function(e) {
|
|
9
9
|
return e.External = "external", e.SameWindow = "sameWindow", e;
|
|
10
10
|
}({}), c = /* @__PURE__ */ function(e) {
|
|
@@ -26,7 +26,7 @@ var e = "@DIAL_OVERLAY", t = /* @__PURE__ */ function(e) {
|
|
|
26
26
|
if (typeof e != "object" || !e) return !1;
|
|
27
27
|
let t = e;
|
|
28
28
|
return typeof t.type == "string" && Object.values(n).includes(t.type) && !("requestId" in t);
|
|
29
|
-
}, p =
|
|
29
|
+
}, p = 0, m = () => (p += 1, `dial-overlay-${Date.now()}-${p}`), h = class {
|
|
30
30
|
requestType;
|
|
31
31
|
requestId;
|
|
32
32
|
responseType;
|
|
@@ -36,7 +36,7 @@ var e = "@DIAL_OVERLAY", t = /* @__PURE__ */ function(e) {
|
|
|
36
36
|
settled = !1;
|
|
37
37
|
timeoutHandle;
|
|
38
38
|
constructor(e, t) {
|
|
39
|
-
this.requestType = e, this.requestId =
|
|
39
|
+
this.requestType = e, this.requestId = m(), this.responseType = `${e}/RESPONSE`, this.promise = new Promise((e, t) => {
|
|
40
40
|
this.resolveFn = e, this.rejectFn = t;
|
|
41
41
|
}), this.timeoutHandle = setTimeout(() => {
|
|
42
42
|
this.reject(/* @__PURE__ */ Error(`ChatOverlay: request "${e}" timed out after ${t}ms`));
|
|
@@ -51,13 +51,13 @@ var e = "@DIAL_OVERLAY", t = /* @__PURE__ */ function(e) {
|
|
|
51
51
|
reject(e) {
|
|
52
52
|
this.settled || (this.settled = !0, clearTimeout(this.timeoutHandle), this.rejectFn(e));
|
|
53
53
|
}
|
|
54
|
-
},
|
|
54
|
+
}, g = (e, t) => {
|
|
55
55
|
Object.assign(e.style, t);
|
|
56
|
-
},
|
|
56
|
+
}, _ = (e, t) => {
|
|
57
57
|
if (document.getElementById(e)) return;
|
|
58
58
|
let n = document.createElement("style");
|
|
59
59
|
n.id = e, n.textContent = t, document.head.appendChild(n);
|
|
60
|
-
},
|
|
60
|
+
}, v = (e) => {
|
|
61
61
|
let { auth: t, signInOptions: n } = e, r = n?.signInProvider?.trim();
|
|
62
62
|
if (n?.autoSignIn !== !0 || !r || t?.autoSignInProvider?.trim()) return t;
|
|
63
63
|
let i = n.signInInNewWindow ? s.External : s.SameWindow;
|
|
@@ -69,11 +69,11 @@ var e = "@DIAL_OVERLAY", t = /* @__PURE__ */ function(e) {
|
|
|
69
69
|
},
|
|
70
70
|
autoSignInProvider: r
|
|
71
71
|
};
|
|
72
|
-
},
|
|
72
|
+
}, y = "dial-overlay-styles", b = /* @__PURE__ */ function(e) {
|
|
73
73
|
return e.Root = "dial-overlay-root", e.Iframe = "dial-overlay-iframe", e.Loader = "dial-overlay-loader", e.LoaderHidden = "dial-overlay-loader--hidden", e;
|
|
74
|
-
}({}),
|
|
75
|
-
|
|
76
|
-
},
|
|
74
|
+
}({}), 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 = () => {
|
|
75
|
+
_(y, x);
|
|
76
|
+
}, C = class {
|
|
77
77
|
promise;
|
|
78
78
|
resolveFn;
|
|
79
79
|
rejectFn;
|
|
@@ -89,32 +89,32 @@ var e = "@DIAL_OVERLAY", t = /* @__PURE__ */ function(e) {
|
|
|
89
89
|
reject(e) {
|
|
90
90
|
this.settled || (this.settled = !0, this.rejectFn(e));
|
|
91
91
|
}
|
|
92
|
-
},
|
|
92
|
+
}, w = 1e4, T = "data-dial-overlay-loader", E = class extends Error {
|
|
93
93
|
code;
|
|
94
94
|
requestType;
|
|
95
95
|
constructor(e, t) {
|
|
96
96
|
super(`ChatOverlay: request "${e}" failed [${t.code}]: ${t.message}`), this.name = "ChatOverlayRequestError", this.code = t.code, this.requestType = e;
|
|
97
97
|
}
|
|
98
|
-
},
|
|
98
|
+
}, D = (e) => {
|
|
99
99
|
if (typeof e != "string") return e;
|
|
100
100
|
let t = document.querySelector(e);
|
|
101
101
|
if (!t) throw Error(`ChatOverlay: no element matches selector "${e}"`);
|
|
102
102
|
return t;
|
|
103
|
-
},
|
|
103
|
+
}, O = (e) => {
|
|
104
104
|
let t = document.createElement("iframe");
|
|
105
105
|
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");
|
|
106
106
|
let n = ["clipboard-write"];
|
|
107
|
-
return e.enabledFeatures?.includes(r.VoiceInput) && n.push("microphone"), t.setAttribute("allow", n.join("; ")), t.className =
|
|
108
|
-
},
|
|
107
|
+
return e.enabledFeatures?.includes(r.VoiceInput) && n.push("microphone"), t.setAttribute("allow", n.join("; ")), t.className = b.Iframe, t;
|
|
108
|
+
}, k = (e) => {
|
|
109
109
|
let t = document.createElement("div");
|
|
110
|
-
return t.setAttribute(
|
|
111
|
-
},
|
|
110
|
+
return t.setAttribute(T, ""), t.innerHTML = e.loaderInnerHTML ?? "<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>", t.className = [b.Loader, e.loaderClass].filter(Boolean).join(" "), e.loaderStyles && g(t, e.loaderStyles), t;
|
|
111
|
+
}, A = class {
|
|
112
112
|
root;
|
|
113
113
|
iframe;
|
|
114
114
|
loader;
|
|
115
115
|
options;
|
|
116
116
|
targetOrigin;
|
|
117
|
-
readyGate = new
|
|
117
|
+
readyGate = new C();
|
|
118
118
|
pendingRequests = /* @__PURE__ */ new Map();
|
|
119
119
|
eventSubscribers = /* @__PURE__ */ new Map();
|
|
120
120
|
messageListener = (e) => {
|
|
@@ -122,9 +122,9 @@ var e = "@DIAL_OVERLAY", t = /* @__PURE__ */ function(e) {
|
|
|
122
122
|
};
|
|
123
123
|
isDestroyed = !1;
|
|
124
124
|
constructor(e, t) {
|
|
125
|
-
this.root =
|
|
125
|
+
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);
|
|
126
126
|
let n = window.getComputedStyle(this.root).position;
|
|
127
|
-
(n === "static" || n === "") && this.root.classList.add(
|
|
127
|
+
(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);
|
|
128
128
|
}
|
|
129
129
|
ready() {
|
|
130
130
|
return this.readyGate.promise;
|
|
@@ -201,7 +201,7 @@ var e = "@DIAL_OVERLAY", t = /* @__PURE__ */ function(e) {
|
|
|
201
201
|
sendCurrentOverlayOptions() {
|
|
202
202
|
let e = { hostDomain: window.location.origin };
|
|
203
203
|
this.options.theme !== void 0 && (e.theme = this.options.theme), this.options.modelId !== void 0 && (e.modelId = this.options.modelId), this.options.overlayConversationId !== void 0 && (e.overlayConversationId = this.options.overlayConversationId), this.options.enabledFeatures !== void 0 && (e.enabledFeatures = this.options.enabledFeatures);
|
|
204
|
-
let n =
|
|
204
|
+
let n = v(this.options), r = n?.providerUiModes;
|
|
205
205
|
r !== void 0 && Object.keys(r).length > 0 && (e.authProviderUiModes = r);
|
|
206
206
|
let i = n?.autoSignInProvider?.trim();
|
|
207
207
|
return i && (e.authAutoSignInProvider = i), this.send(t.SetOverlayOptions, e, { bypassReadyGate: !0 });
|
|
@@ -211,7 +211,7 @@ var e = "@DIAL_OVERLAY", t = /* @__PURE__ */ function(e) {
|
|
|
211
211
|
}
|
|
212
212
|
dispatchRequest(e, t) {
|
|
213
213
|
if (this.isDestroyed) return Promise.reject(/* @__PURE__ */ Error("ChatOverlay: instance was destroyed"));
|
|
214
|
-
let n = this.options.requestTimeout ??
|
|
214
|
+
let n = this.options.requestTimeout ?? w, r = new h(e, n);
|
|
215
215
|
this.pendingRequests.set(r.requestId, r), r.promise.finally(() => {
|
|
216
216
|
this.pendingRequests.delete(r.requestId);
|
|
217
217
|
}).catch(() => void 0);
|
|
@@ -226,65 +226,55 @@ var e = "@DIAL_OVERLAY", t = /* @__PURE__ */ function(e) {
|
|
|
226
226
|
handleMessage(e) {
|
|
227
227
|
if (e.source !== this.iframe.contentWindow) return;
|
|
228
228
|
let t = e.data;
|
|
229
|
-
|
|
230
|
-
this.handleResponse(t);
|
|
231
|
-
return;
|
|
232
|
-
}
|
|
233
|
-
f(t) && this.handleEvent(t);
|
|
229
|
+
d(t) ? this.handleResponse(t) : f(t) && this.handleEvent(t);
|
|
234
230
|
}
|
|
235
231
|
handleResponse(e) {
|
|
236
232
|
let t = this.pendingRequests.get(e.requestId);
|
|
237
|
-
|
|
238
|
-
if (this.pendingRequests.delete(e.requestId), e.error) {
|
|
239
|
-
t.reject(new D(t.requestType, e.error));
|
|
240
|
-
return;
|
|
241
|
-
}
|
|
242
|
-
t.resolve(e.payload);
|
|
243
|
-
}
|
|
233
|
+
t && t.matches(e.type, e.requestId) && (this.pendingRequests.delete(e.requestId), e.error ? t.reject(new E(t.requestType, e.error)) : t.resolve(e.payload));
|
|
244
234
|
}
|
|
245
235
|
handleEvent(e) {
|
|
246
236
|
let t = e.type;
|
|
247
237
|
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);
|
|
248
238
|
}
|
|
249
239
|
hideLoader() {
|
|
250
|
-
this.loader.classList.add(
|
|
240
|
+
this.loader.classList.add(b.LoaderHidden), this.loader.style.removeProperty("display");
|
|
251
241
|
}
|
|
252
242
|
notifySubscribers(e, t) {
|
|
253
243
|
this.eventSubscribers.get(e)?.forEach((e) => e(t));
|
|
254
244
|
}
|
|
255
|
-
},
|
|
256
|
-
|
|
257
|
-
},
|
|
245
|
+
}, 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 = () => {
|
|
246
|
+
_(z, B);
|
|
247
|
+
}, H = (e, t) => {
|
|
258
248
|
let n = document.createElement("button");
|
|
259
249
|
return n.type = "button", n.className = "dial-overlay-btn", n.setAttribute("aria-label", e), n.innerHTML = t, n;
|
|
260
|
-
},
|
|
250
|
+
}, U = (e) => typeof e == "number" ? `${e}px` : e, W = /* @__PURE__ */ function(e) {
|
|
261
251
|
return e.LeftBottom = "left-bottom", e.LeftTop = "left-top", e.RightBottom = "right-bottom", e.RightTop = "right-top", e;
|
|
262
|
-
}({}),
|
|
252
|
+
}({}), G = {
|
|
263
253
|
"right-bottom": {
|
|
264
|
-
insetInlineEnd:
|
|
265
|
-
insetBlockEnd:
|
|
254
|
+
insetInlineEnd: F,
|
|
255
|
+
insetBlockEnd: F,
|
|
266
256
|
insetInlineStart: "auto",
|
|
267
257
|
insetBlockStart: "auto"
|
|
268
258
|
},
|
|
269
259
|
"right-top": {
|
|
270
|
-
insetInlineEnd:
|
|
271
|
-
insetBlockStart:
|
|
260
|
+
insetInlineEnd: F,
|
|
261
|
+
insetBlockStart: F,
|
|
272
262
|
insetInlineStart: "auto",
|
|
273
263
|
insetBlockEnd: "auto"
|
|
274
264
|
},
|
|
275
265
|
"left-bottom": {
|
|
276
|
-
insetInlineStart:
|
|
277
|
-
insetBlockEnd:
|
|
266
|
+
insetInlineStart: F,
|
|
267
|
+
insetBlockEnd: F,
|
|
278
268
|
insetInlineEnd: "auto",
|
|
279
269
|
insetBlockStart: "auto"
|
|
280
270
|
},
|
|
281
271
|
"left-top": {
|
|
282
|
-
insetInlineStart:
|
|
283
|
-
insetBlockStart:
|
|
272
|
+
insetInlineStart: F,
|
|
273
|
+
insetBlockStart: F,
|
|
284
274
|
insetInlineEnd: "auto",
|
|
285
275
|
insetBlockEnd: "auto"
|
|
286
276
|
}
|
|
287
|
-
},
|
|
277
|
+
}, K = class {
|
|
288
278
|
overlays = /* @__PURE__ */ new Map();
|
|
289
279
|
abortController = new AbortController();
|
|
290
280
|
isDestroyed = !1;
|
|
@@ -296,9 +286,9 @@ var e = "@DIAL_OVERLAY", t = /* @__PURE__ */ function(e) {
|
|
|
296
286
|
}
|
|
297
287
|
createOverlay(e) {
|
|
298
288
|
if (this.overlays.has(e.overlayId)) throw Error(`ChatOverlayManager: overlay "${e.overlayId}" already exists`);
|
|
299
|
-
|
|
289
|
+
V();
|
|
300
290
|
let t = document.createElement("div");
|
|
301
|
-
t.setAttribute("data-dial-overlay-container", e.overlayId),
|
|
291
|
+
t.setAttribute("data-dial-overlay-container", e.overlayId), g(t, {
|
|
302
292
|
display: "flex",
|
|
303
293
|
flexDirection: "column",
|
|
304
294
|
overflow: "hidden",
|
|
@@ -307,24 +297,24 @@ var e = "@DIAL_OVERLAY", t = /* @__PURE__ */ function(e) {
|
|
|
307
297
|
background: "#ffffff"
|
|
308
298
|
});
|
|
309
299
|
let n = document.createElement("div");
|
|
310
|
-
|
|
300
|
+
g(n, {
|
|
311
301
|
display: "flex",
|
|
312
302
|
justifyContent: "flex-end",
|
|
313
303
|
gap: "8px",
|
|
314
304
|
padding: "8px"
|
|
315
305
|
});
|
|
316
|
-
let r =
|
|
306
|
+
let r = H(e.closeButtonAriaLabel ?? "Collapse", L);
|
|
317
307
|
n.appendChild(r);
|
|
318
308
|
let i;
|
|
319
|
-
e.allowFullscreen && (i =
|
|
309
|
+
e.allowFullscreen && (i = H(e.fullscreenButtonAriaLabel ?? "Open full screen", R), n.appendChild(i));
|
|
320
310
|
let a = document.createElement("div");
|
|
321
|
-
|
|
311
|
+
g(a, {
|
|
322
312
|
flex: "1",
|
|
323
313
|
minHeight: "0"
|
|
324
314
|
}), t.appendChild(n), t.appendChild(a), document.body.appendChild(t);
|
|
325
|
-
let o = new
|
|
315
|
+
let o = new A(a, e);
|
|
326
316
|
e.allowFullscreen && o.allowFullscreen();
|
|
327
|
-
let s =
|
|
317
|
+
let s = H(e.toggleButtonAriaLabel ?? "Open chat", I);
|
|
328
318
|
document.body.appendChild(s);
|
|
329
319
|
let c = {
|
|
330
320
|
overlay: o,
|
|
@@ -409,32 +399,28 @@ var e = "@DIAL_OVERLAY", t = /* @__PURE__ */ function(e) {
|
|
|
409
399
|
return t;
|
|
410
400
|
}
|
|
411
401
|
applyLayout(e) {
|
|
412
|
-
let { options: t, container: n, toggleButton: r } = e, i = t.position ?? "right-bottom", a = String(t.zIndex ??
|
|
413
|
-
|
|
402
|
+
let { options: t, container: n, toggleButton: r } = e, i = t.position ?? "right-bottom", a = String(t.zIndex ?? P);
|
|
403
|
+
g(r, {
|
|
414
404
|
position: "fixed",
|
|
415
405
|
zIndex: a,
|
|
416
|
-
...
|
|
417
|
-
}),
|
|
406
|
+
...G[i]
|
|
407
|
+
}), g(n, {
|
|
418
408
|
position: "fixed",
|
|
419
409
|
zIndex: a
|
|
420
|
-
}), window.innerWidth <=
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
_(n, {
|
|
433
|
-
width: W(t.width ?? N),
|
|
434
|
-
height: W(t.height ?? P),
|
|
435
|
-
...K[i]
|
|
410
|
+
}), window.innerWidth <= j ? g(n, {
|
|
411
|
+
insetInlineStart: "0",
|
|
412
|
+
insetInlineEnd: "0",
|
|
413
|
+
insetBlockStart: "0",
|
|
414
|
+
insetBlockEnd: "0",
|
|
415
|
+
width: "100%",
|
|
416
|
+
height: "100%",
|
|
417
|
+
borderRadius: "0"
|
|
418
|
+
}) : g(n, {
|
|
419
|
+
width: U(t.width ?? M),
|
|
420
|
+
height: U(t.height ?? N),
|
|
421
|
+
...G[i]
|
|
436
422
|
});
|
|
437
423
|
}
|
|
438
424
|
};
|
|
439
425
|
//#endregion
|
|
440
|
-
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 };
|
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.3.0-dev.
|
|
4
|
+
"version": "1.3.0-dev.160",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -112,9 +112,9 @@ export declare enum OverlayFeature {
|
|
|
112
112
|
/** Enables the app header. */
|
|
113
113
|
Header = "header",
|
|
114
114
|
/**
|
|
115
|
-
* Hides the
|
|
116
|
-
* the
|
|
117
|
-
*
|
|
115
|
+
* Hides the navigation part of the mobile sidebar drawer: its items, the
|
|
116
|
+
* user menu and the Usage link. The header toggle stays only while the
|
|
117
|
+
* conversation list is still reachable through it.
|
|
118
118
|
*/
|
|
119
119
|
HideNavigationMenu = "hide-navigation-menu",
|
|
120
120
|
/** Makes the conversations sidebar section open by default. */
|
|
@@ -155,11 +155,11 @@ export declare enum OverlayFeature {
|
|
|
155
155
|
* built on a schema are gated by `SchemaApps` instead.
|
|
156
156
|
*/
|
|
157
157
|
CustomApps = "custom-apps",
|
|
158
|
-
/** Hides the user
|
|
158
|
+
/** Hides the user menu in the sidebar and in the mobile drawer. */
|
|
159
159
|
HideUserMenu = "hide-user-menu",
|
|
160
160
|
/** Hides the settings entry in the user menu. */
|
|
161
161
|
HideUserSettings = "hide-user-settings",
|
|
162
|
-
/** Hides the keyboard-shortcuts entry in the user menu
|
|
162
|
+
/** Hides the keyboard-shortcuts entry in the mobile drawer's user menu. */
|
|
163
163
|
HideKeyboardShortcuts = "hide-keyboard-shortcuts",
|
|
164
164
|
/** Enables the `microphone` permission on the iframe's `allow` attribute for voice input. */
|
|
165
165
|
VoiceInput = "voice-input",
|
|
@@ -216,7 +216,19 @@ export declare enum OverlayFeature {
|
|
|
216
216
|
* logo whenever `Header` is on; with `Header` off, this key still renders
|
|
217
217
|
* the mobile header row carrying only the logo.
|
|
218
218
|
*/
|
|
219
|
-
ShowHeaderLogo = "show-header-logo"
|
|
219
|
+
ShowHeaderLogo = "show-header-logo",
|
|
220
|
+
/**
|
|
221
|
+
* Keeps the unsent text and skill mentions of each existing conversation's
|
|
222
|
+
* input for the tab session, restoring them when the conversation is opened
|
|
223
|
+
* again. Disabling it stops saving and restoring, and discards the drafts
|
|
224
|
+
* already stored. The New Chat screen never keeps a draft.
|
|
225
|
+
*/
|
|
226
|
+
ConversationDrafts = "conversation-drafts",
|
|
227
|
+
/**
|
|
228
|
+
* Hides the sparkles icon the UI kit renders by default on every
|
|
229
|
+
* conversation-starter pill, leaving a label-only button.
|
|
230
|
+
*/
|
|
231
|
+
HideStarterIcon = "hide-starter-icon"
|
|
220
232
|
}
|
|
221
233
|
/**
|
|
222
234
|
* Wire values a host may still be sending that were renamed, mapped to the
|
|
@@ -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;IAC5F,eAAe,oCAAoC;IACnD,0FAA0F;IAC1F,0BAA0B,+CAA+C;IACzE,iEAAiE;IACjE,kBAAkB,uCAAuC;IACzD,oEAAoE;IACpE,gBAAgB,qCAA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,uDAAuD;IACvD,uBAAuB,6BAA6B;IACpD,mDAAmD;IACnD,mBAAmB,yBAAyB;IAC5C,oDAAoD;IACpD,oBAAoB,0BAA0B;IAC9C,+CAA+C;IAC/C,eAAe,qBAAqB;IACpC,sCAAsC;IACtC,QAAQ,aAAa;IACrB,kGAAkG;IAClG,OAAO,YAAY;IACnB,4EAA4E;IAC5E,MAAM,WAAW;IACjB;;;;OAIG;IACH,UAAU,gBAAgB;IAC1B,
|
|
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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