@wallavi/widget 1.3.5 → 1.3.6
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/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -711,7 +711,7 @@ function ChatWidget({
|
|
|
711
711
|
);
|
|
712
712
|
}
|
|
713
713
|
var cn4 = (...inputs) => tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
714
|
-
var
|
|
714
|
+
var WALLAVI_PUBLIC_API = "https://wallavi-production.up.railway.app";
|
|
715
715
|
function DefaultIcon() {
|
|
716
716
|
return /* @__PURE__ */ jsxRuntime.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", style: { width: 26, height: 26 }, children: [
|
|
717
717
|
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "12", cy: "12", r: "12", fill: "currentColor", opacity: 0.12 }),
|
|
@@ -775,7 +775,7 @@ function BubbleWidget({
|
|
|
775
775
|
}, [positionProp]);
|
|
776
776
|
react.useEffect(() => {
|
|
777
777
|
if (!autoConfig) return;
|
|
778
|
-
fetch(`${
|
|
778
|
+
fetch(`${WALLAVI_PUBLIC_API}/api/public/widget/${chatProps.agentId}`).then((r) => r.json()).then((body) => {
|
|
779
779
|
const cfg = body?.data ?? {};
|
|
780
780
|
const remote = {};
|
|
781
781
|
if (cfg.profilePicture != null) remote.profilePicture = cfg.profilePicture;
|
package/dist/index.mjs
CHANGED
|
@@ -685,7 +685,7 @@ function ChatWidget({
|
|
|
685
685
|
);
|
|
686
686
|
}
|
|
687
687
|
var cn4 = (...inputs) => twMerge(clsx(inputs));
|
|
688
|
-
var
|
|
688
|
+
var WALLAVI_PUBLIC_API = "https://wallavi-production.up.railway.app";
|
|
689
689
|
function DefaultIcon() {
|
|
690
690
|
return /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", fill: "none", style: { width: 26, height: 26 }, children: [
|
|
691
691
|
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "12", fill: "currentColor", opacity: 0.12 }),
|
|
@@ -749,7 +749,7 @@ function BubbleWidget({
|
|
|
749
749
|
}, [positionProp]);
|
|
750
750
|
useEffect(() => {
|
|
751
751
|
if (!autoConfig) return;
|
|
752
|
-
fetch(`${
|
|
752
|
+
fetch(`${WALLAVI_PUBLIC_API}/api/public/widget/${chatProps.agentId}`).then((r) => r.json()).then((body) => {
|
|
753
753
|
const cfg = body?.data ?? {};
|
|
754
754
|
const remote = {};
|
|
755
755
|
if (cfg.profilePicture != null) remote.profilePicture = cfg.profilePicture;
|