@flowengage/react-chatbot 7.0.22 → 7.0.24
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.
|
@@ -17,7 +17,7 @@ var v = Object.defineProperty, y = Object.getOwnPropertyDescriptor, b = Object.g
|
|
|
17
17
|
}, w = (e) => x.call(e, "module.exports") ? e["module.exports"] : ee(v({}, "__esModule", { value: !0 }), e), T = (e) => {
|
|
18
18
|
if (!e || typeof e != "object") throw Error("FlowEngage config is required");
|
|
19
19
|
if (!e.siteId || typeof e.siteId != "string") throw Error("[FlowEngage] config.siteId is required. Pass it as <FlowEngageProvider siteId=\"your-site-id\" /> or config={{ siteId: 'your-site-id' }}.");
|
|
20
|
-
let t = (e.apiBaseUrl || "https://be-flowengage
|
|
20
|
+
let t = (e.apiBaseUrl || "https://be-flowengage.oslabs.app").replace(/\/+$/, "");
|
|
21
21
|
return {
|
|
22
22
|
siteId: e.siteId.trim(),
|
|
23
23
|
apiBaseUrl: t
|
|
@@ -29396,19 +29396,54 @@ function jO({ orbColors: e, onEnterChat: t, onEndChat: n, agentId: r, siteId: i,
|
|
|
29396
29396
|
]
|
|
29397
29397
|
});
|
|
29398
29398
|
}
|
|
29399
|
-
function MO({ orbColors: e }) {
|
|
29400
|
-
let
|
|
29399
|
+
function MO({ orbColors: e, size: t = 32 }) {
|
|
29400
|
+
let n = Array.isArray(e) && e.length > 0 ? e : [
|
|
29401
29401
|
"#135bd8",
|
|
29402
29402
|
"#ef334b",
|
|
29403
29403
|
"#ffbd2e"
|
|
29404
|
-
], n =
|
|
29405
|
-
|
|
29406
|
-
|
|
29407
|
-
|
|
29408
|
-
|
|
29409
|
-
|
|
29410
|
-
|
|
29411
|
-
|
|
29404
|
+
], r = n[0], i = n[1] || n[0], a = n[2] || n[0], o = {
|
|
29405
|
+
position: "absolute",
|
|
29406
|
+
inset: "-45%",
|
|
29407
|
+
willChange: "transform"
|
|
29408
|
+
};
|
|
29409
|
+
return /* @__PURE__ */ _("div", {
|
|
29410
|
+
style: {
|
|
29411
|
+
position: "relative",
|
|
29412
|
+
width: `${t}px`,
|
|
29413
|
+
height: `${t}px`,
|
|
29414
|
+
borderRadius: "50%",
|
|
29415
|
+
flexShrink: 0,
|
|
29416
|
+
overflow: "hidden",
|
|
29417
|
+
background: `radial-gradient(circle at 50% 50%, ${r}, ${i})`
|
|
29418
|
+
},
|
|
29419
|
+
children: [
|
|
29420
|
+
/* @__PURE__ */ g("div", { style: {
|
|
29421
|
+
...o,
|
|
29422
|
+
background: `
|
|
29423
|
+
radial-gradient(40% 40% at 30% 30%, ${r} 0%, transparent 62%),
|
|
29424
|
+
radial-gradient(44% 44% at 70% 35%, ${i} 0%, transparent 62%),
|
|
29425
|
+
radial-gradient(48% 48% at 50% 72%, ${a} 0%, transparent 62%)`,
|
|
29426
|
+
filter: "blur(1.5px)",
|
|
29427
|
+
animation: "fe-orb-drift 8s ease-in-out infinite"
|
|
29428
|
+
} }),
|
|
29429
|
+
/* @__PURE__ */ g("div", { style: {
|
|
29430
|
+
...o,
|
|
29431
|
+
background: `
|
|
29432
|
+
radial-gradient(42% 42% at 65% 65%, ${a} 0%, transparent 60%),
|
|
29433
|
+
radial-gradient(46% 46% at 35% 60%, ${r} 0%, transparent 60%)`,
|
|
29434
|
+
mixBlendMode: "screen",
|
|
29435
|
+
filter: "blur(1.5px)",
|
|
29436
|
+
animation: "fe-orb-drift-2 11s ease-in-out infinite"
|
|
29437
|
+
} }),
|
|
29438
|
+
/* @__PURE__ */ g("div", { style: {
|
|
29439
|
+
position: "absolute",
|
|
29440
|
+
inset: 0,
|
|
29441
|
+
borderRadius: "50%",
|
|
29442
|
+
background: "radial-gradient(circle at 32% 28%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 46%)",
|
|
29443
|
+
pointerEvents: "none"
|
|
29444
|
+
} })
|
|
29445
|
+
]
|
|
29446
|
+
});
|
|
29412
29447
|
}
|
|
29413
29448
|
var NO = () => /* @__PURE__ */ g("div", {
|
|
29414
29449
|
style: {
|
|
@@ -30206,7 +30241,7 @@ function FO() {
|
|
|
30206
30241
|
onEndConversation: de,
|
|
30207
30242
|
showPoweredBy: D
|
|
30208
30243
|
}),
|
|
30209
|
-
/* @__PURE__ */ g("style", { children: "\n /* Force any SVG (or img) inside LogoSlot to fill the container height\n regardless of whether the component forwards its style prop. */\n .fe-logo-slot svg,\n .fe-logo-slot img { height: 100%; width: auto; display: block; }\n\n @keyframes fe-orb-breathe { 0%,100%{transform:scale(1)} 50%{transform:scale(1.04)} }\n @keyframes fe-orb-breathe-subtle { 0%,100%{transform:scale(1)} 50%{transform:scale(1.025)} }\n @keyframes fe-orb-pulse { 0%{transform:scale(1);opacity:.65} 50%{transform:scale(1.28);opacity:.1} 100%{transform:scale(1);opacity:.65} }\n @keyframes fe-orb-glow { from{opacity:.35} to{opacity:.75} }\n @keyframes fe-orb-fade-in { from{opacity:0} to{opacity:1} }\n @keyframes fe-orb-slide-up { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:translateY(0)} }\n @keyframes fe-orb-bar-0 { from{height:6px} to{height:18px} }\n @keyframes fe-orb-bar-1 { from{height:10px} to{height:22px} }\n @keyframes fe-orb-bar-2 { from{height:14px} to{height:26px} }\n @keyframes fe-orb-bar-3 { from{height:8px} to{height:20px} }\n @keyframes fe-orb-bar-4 { from{height:6px} to{height:16px} }\n @keyframes fe-dot-bounce { 0%,80%,100%{transform:translateY(0);opacity:.5} 40%{transform:translateY(-5px);opacity:1} }\n " })
|
|
30244
|
+
/* @__PURE__ */ g("style", { children: "\n /* Force any SVG (or img) inside LogoSlot to fill the container height\n regardless of whether the component forwards its style prop. */\n .fe-logo-slot svg,\n .fe-logo-slot img { height: 100%; width: auto; display: block; }\n\n @keyframes fe-orb-breathe { 0%,100%{transform:scale(1)} 50%{transform:scale(1.04)} }\n @keyframes fe-orb-breathe-subtle { 0%,100%{transform:scale(1)} 50%{transform:scale(1.025)} }\n @keyframes fe-orb-pulse { 0%{transform:scale(1);opacity:.65} 50%{transform:scale(1.28);opacity:.1} 100%{transform:scale(1);opacity:.65} }\n @keyframes fe-orb-glow { from{opacity:.35} to{opacity:.75} }\n @keyframes fe-orb-fade-in { from{opacity:0} to{opacity:1} }\n @keyframes fe-orb-slide-up { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:translateY(0)} }\n @keyframes fe-orb-bar-0 { from{height:6px} to{height:18px} }\n @keyframes fe-orb-bar-1 { from{height:10px} to{height:22px} }\n @keyframes fe-orb-bar-2 { from{height:14px} to{height:26px} }\n @keyframes fe-orb-bar-3 { from{height:8px} to{height:20px} }\n @keyframes fe-orb-bar-4 { from{height:6px} to{height:16px} }\n @keyframes fe-dot-bounce { 0%,80%,100%{transform:translateY(0);opacity:.5} 40%{transform:translateY(-5px);opacity:1} }\n @keyframes fe-orb-drift { 0%,100%{transform:rotate(0deg) translate(0,0)} 33%{transform:rotate(120deg) translate(5%,-4%)} 66%{transform:rotate(240deg) translate(-4%,5%)} }\n @keyframes fe-orb-drift-2 { 0%,100%{transform:rotate(0deg) scale(1)} 50%{transform:rotate(-180deg) scale(1.15)} }\n " })
|
|
30210
30245
|
]
|
|
30211
30246
|
});
|
|
30212
30247
|
}
|